Changes

From SME Server
Jump to navigationJump to search
m
add content
Line 6: Line 6:  
[[File:python.png|250px]]
 
[[File:python.png|250px]]
 
</blockquote>
 
</blockquote>
Placeholder.  
+
 
 +
'''Installing and running Python via [[Software collections]]'''
 +
 
 +
Software Collections has been introduced by Redhat as a safe way to run selective applications on Redhat based distributions in an isolated environment (separate directory), thus not effecting the base installation of the OS. This provides the possibility to e.g. test an application, install a higher version then the version installed by the base system (e.g. PHP), or temporarily use an application.
 +
 
 +
Software Collections applications can be started at boot as a system service, manually or in a specific shell.
 +
 
 +
==Python==
 +
===Installation===
 +
To be able to install an application from the Software Collections, one '''must''' install software collections first. Please see [[Software collections]] on how to install this.
 +
 
 +
 
 +
====Required repository====
 +
After installing Software Collections, the [http://wiki.contribs.org/Scl#tab=Python33 '''scl'''] repository for Python has to be added to the yum repositories. Please see [http://wiki.contribs.org/Scl#tab=Python33 '''here'''] on how the enable the [http://wiki.contribs.org/Scl#tab=Pyton33 '''scl-python33'''] repository.
 +
 
 +
 
 +
====Install application====
 +
After installing the scl-python33 repository, Python can be installed by issuing the following command:
 +
yum install python33 --enablrepo=scl-python33
 +
Once installed, the application is installed on your SME Server at '''/opt/rh/python33-''' as an isolated environment for the application.
 +
 
 +
 
 +
====Test installed application====
 +
Once Python has been installed, you can check if it is correctly installed by issuing:
 +
scl -l
 +
which will provide you a listing of all applications that are available on your system installed via Software Collections.
 +
 
 +
A simple man page about the installed application is now available via:
 +
scl enable python33 'man python33'
 +
press 'q' to leave the man page
 +
 
    
==Other articles in this category==
 
==Other articles in this category==

Navigation menu