LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   python 2.3 installed on RH 9 but 2.2.2 is active (https://www.linuxquestions.org/questions/linux-software-2/python-2-3-installed-on-rh-9-but-2-2-2-is-active-122730/)

Dominik 12-04-2003 02:38 PM

python 2.3 installed on RH 9 but 2.2.2 is active
 
Hello,

J've just installed the whole python rpm's package for redhat 9.

Installation done with a NOKEY warning for each pack.

The Python 2.3 directory is close to the 2.2 but my python active shell remains
the 2.2.2 version.

....Thanks

Dominik

Tinkster 12-04-2003 02:43 PM

How about removing the old package then?

And as for the install - did you do install or
upgrade??

man rpm
for details...


Cheers,
Tink

Dominik 12-04-2003 02:51 PM

Hi Tink,
I'm on linux since 2 weeks.

I typed in the shell rpm -i for all packs.

Don't know if system upgraded or installed,.

I thought the solution was to change a path but where??

Tinkster 12-04-2003 03:01 PM

Do you NEED to keep the older version?

The path's for executables will presumably be
set somewhere in /etc (if it's the paths, not symlinks).
The python shared libraries should be listed
in /etc/ld.so.conf

But then this all may be quite distro specific.

To find out whether python gets called through
a link, do both of these:
Code:

which python                  (will show you the path to the file)
ls -l `which python`          (will show whether it's an executable or a symlink to an executable)


Cheers,
Tink

Vincent_Vega 12-07-2003 12:42 AM

Maybe this will help you, straight from www.python.org:

If you're compiling from source on Red Hat 9, RH9 compiles Tcl/Tk as UCS-4, but Python still defaults to UCS-2. You can either use


./configure --enable-unicode=ucs4
with Python, or you can try Anthony Baxter's patched version of Tcl/Tk at http://www.interlink.com.au/anthony/tech/rh9-tcltk/. Note that some people have noticed that RH9's Tcl/Tk chews memory like crazy, so definitely try Anthony's patch if you have that problem.

jrpretz 12-07-2003 08:22 AM

I did this.
 
I think RH9 puts python in
/usr/bin and the python installer puts it in
/usr/local/bin. In my .cshrc at least it picked up the
/usr/bin first and never found the /usr/local/bin one.

I think I just moved all the python stuff in /usr/bin from /usr/bin/python to /usr/bin/python.old or whatever.


All times are GMT -5. The time now is 01:08 PM.