Downgrading a version of Python in Slackware 13 64
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Downgrading a version of Python in Slackware 13 64
Hi Forum
This may sound a bit of an awkward question, but I have this app, Salome-Platform, http://www.salome-platform.org/, It requires Python 2.5 at most to be able to run... ( compiling it is waaaay to complex.. )
Since the Python of Slackware is 2.6, can it be downgraded to 2.5...?
The official release of slack64 came with python 2.6.2 so there is no downgrade. Compiling is not complex and now is a good time to start.
Download python 2.5 source and grab a slackware python build script for py 2.5.
Change the line
Code:
ARCH=${ARCH:-i486}
to
Code:
ARCH=${ARCH:-x86_64}
Run the build script and cross your fingers. Install py 2.5 and test your app. Post any problem you run into on this forum and I'm sure someone will be able to help with compiling.
The closest thing to Slackware in terms of package independence is Red Hat/CentOS... right...?
Alex
A little extract from LFS:
Quote:
Creating Package Archives
In this scheme, the package installation is faked into a separate tree as described in the Symlink style package
management. After the installation, a package archive is created using the installed files. This archive is then used to
install the package either on the local machine or can even be used to install the package on other machines.
This approach is used by most of the package managers found in the commercial distributions. Examples of
package managers that follow this approach are RPM (which, incidentally, is required by the Linux Standard Base
Specification), pkg-utils, Debian's apt, and Gentoo's Portage system. A hint describing how to adopt this style of
package management for LFS systems is located at http://www.linuxfromscratch.org/hint...files/fakeroot.
txt.
Creation of package files that include dependency information is complex and is beyond the scope of LFS.
Slackware uses a tar based system for package archives. This system purposely does not handle package dependencies
as more complex package managers do. For details of Slackware package management, see http://www.slackbook.org/html/package-management.html
This may sound a bit of an awkward question, but I have this app, Salome-Platform, http://www.salome-platform.org/, It requires Python 2.5 at most to be able to run... ( compiling it is waaaay to complex.. )
Since the Python of Slackware is 2.6, can it be downgraded to 2.5...?
If it can, how do I do it...?
Thanks in Advance
Alex
as add-on to what others said, i would add suffix to python su it will not config with system stock python package. check configure options for that, it's usually --suffix=$SUFFIX_YOU_WANT_USE.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
Quote:
You realise that doing this in a Debian/*buntu would be simply suicidal... :-)
Debian/*buntu ( + Redhat EL, Fedora, CentOS etc.)
uses python for ' admin tools ' . Slackware doesn't
use python for anything, you could remove it, if
you wanted to do so.
.....
The SALOME platform relies on a set of third-party softwares. The current version depends on the following list (versions given here are from Debian Sarge, except OpenCascade, VTK and MED, which are not Debian packages):
CAS-5.2.4 OpenCascade (try binaries,a source patch is needed)
VTK-4.2.6 VTK 3D-viewer
PyQt-3.13 Python-Qt Wrapper
Python-2.3.5 Python interpreter
SWIG-1.3.24 SWIG library
boost-1_32_0 C++ library (only include templates are used)
hdf5-1.6.2 Files Database library
med-2.2.2 MED Data Format support for file records
omniORB-4.0.5 ORB used in SALOME
qt-x11-free-3.3.3 Qt library
qwt-4.2 Graph components for Qt
sip4-4.1.1 langage binding software
And, in order to build the documentation:
doxygen-1.4.2
graphviz-2.2.1
Additionnal software may be installed for optional features:
netgen4.3 + patch
tix8.1.4
openpbs-2.3.16
lsf-???
The salome 5.1.2 Documentation pdf also describes compatibility with python 2.6 is provided. Which version of salome are you compiling?
Quote:
Summary: compatibility python 2.6 in import_hook
Change:
Compatibility with Python 2.6 has been provided
root@iskandhar:~/Desktop/InstallWizard_5.1.2_Debian_4.0_64bit# ./runInstall
0 entries
root@iskandhar:~/Desktop/InstallWizard_5.1.2_Debian_4.0_64bit# python runInstall
root@iskandhar:~/Desktop/InstallWizard_5.1.2_Debian_4.0_64bit# sh: ./bin/SALOME_InstallWizard: No such file or directory
root@iskandhar:~/Desktop/InstallWizard_5.1.2_Debian_4.0_64bit# ls bin
SALOME_InstallWizard* lib/
root@iskandhar:~/Desktop/InstallWizard_5.1.2_Debian_4.0_64bit#
I will try this, but I guess that there is a deeper problem... :-(
Thing is :
I have compiled brl-cad, and solved the MESA issue upgrading to <MESA current>, it works ok,
I creared a .bashrc file in ~ containing "export PATH=/usr/brlcad/bin:$PATH", as well as ". /usr/syrthes/syrthes-3.4.2/config-syrthes.sh" to source the environment of a thermal analysis program made by EDF called "Syrthes"...
Thing is that after logging as root, my .bashrc lives in /root, if I type mged ( which is the binary that lives in /usr/brlcad/bin ) and should call the CAD gui of BRL-CAD, it complains about unknown file or command... it does not "see" what i wrote in .bashrc, adding /usr/brlcad/bin to PATH,... but if i type "bash" it works then...
Trying to compile paraview with cmake yelds always the same stupid message that i must create a separate folder to build the binaries outsise paraview's directory...
but i DID this...
my paraview 3.6.1 folder lives in /root/Downloads/Paraview-3.6.1 and I #mkdir /root/home/build&&cd /root/home/build&&cmake /root/Downloads/Paraview-3.6.1/CMakeLists.txt...
It keeps saying that I should build in a folder separated of Paraview's source tree... which is what i am trying to do...
Seems that bash is not aware of the directory structure... but when I type pwd, it yelds the correct result...
I guess that all these things are somehow related... the install script of Salome not being able to find what it looks for, cmake not doing its job, bashrc not being initialized at login...
What do you think of this...?
What I am trying to do in Slackware works in Debian's/*buntu's/RHEL's/Fedora's/OPENSuse's
I guess i am just too n00b to use Slackware.... :-(
Somehow what used to work is not producing results...
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
Quote:
/root/Downloads/Paraview-3.6.1
/root/ is not supposed to be used for anything .. never !
Doing that ..and logging in as root is asking for trouble.
Always log in as 'username', use 'su' for admin tasks.
And building software : Only 'make install' should be done
as root. ( Use 'su' ).
The default build directory is /home/'user'/tmp/ ,
but you can have as many xxtmp as you wish.
.....
About cmake and build directory : A lot of applications,
also 'non cmake' requires an "outside" build directory.
.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.