I came from a Windows background whern it comes to development environments. I'm used to run .exe's from everything I need to run and just forget.
Now, I have to use Linux at my work, in a non changeable Ubuntu 8.04, with permissions to upgrade my system using company's repositories only.
I need to install Python 2.4.3 to start coding in an old legacy system. I had Python 2.5. I downloaded Python 2.4.3 tarballs, ran ./configure make and such. Everything worked out, but now the "default" installation is my system is Python2.4 instead of of Python2.5.
I want help from you to change it back, and if possible, some material to read about symlinks, multiple Python installations, virtualenvs and such: everything I need to know before installing/upgrading Python modules. I installed for example the ElementTree package and don't even know in which Python installation it was installed.
Thanks in advance!
Duplicate file descriptor after popen
1:what is required to get intellisense for Gtkmm using editor Geany!
I don't have too enough experience with ubuntu, although i guess it shouldn't brake anything.. What C headers for directory traversal are process safe in Linux? To learn more around
sudid mv /usr/bin/python /usr/bin/python2.4 sudid ln -s /usr/bin/python25 /usr/bin/python
man ln.. Is there a workaround for Linux mono's refusal to acknowledge that I have resized the columns of my VirtualMode ListView?
2:Consolidate multiple site files into single location
/usr/local/bin, which, in turn, may come in your
/usr/binwhere 2.5 lives. There are various possible remediations, if this is the case: simplest is probably to
rmthe link named
/usr/local/bin/python(leaving only the "system" one named
/usr/bin/python). You will then have to use explicitly
python2.4to invoke the 2.4 installation, while just
pythonwill go to the system-installed Python 2.5 installation..
pythoncommand you will have to manually change the symlink this
/usr/bin/pythonpoints to, although this won't change what the packaging system considers the "default version of Python" and means you will still have to install version-specific libraries if they are different for a specific version. Luckily, those packages have an easy naming convention, instead of just
python2.4-<foo>and installing those will put them in the right path (specifically the right
site-packagesdirectory).. EDIT: apparently
pythonisn't managed by the alternatives system, silly Debian/Ubuntu.
should restore the default Python installation.. Unlike Windows Ubuntu comes with quite a lot of software packaged by the distrialthough or, and it is a good idea to stay with this packages if possible instead of downloading software from the net. Ubuntu 8.04 has Python 2.4.5 (package python2.4), maybe this works for you.. If you need to install Python from source use.
sudid apt-receive install --reinstall python-minimal python python2.5
instead of a plain ./configure. This makes python to be install at /usr/local/ so it doesn't overwrite the distrialthough ion's files.
Seems to have worked..
sudid ln -s /usr/bin/python2.5 /usr/bin/python