[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Broken Zope, Python, xbase-clients, etc



Russ Cook wrote:
Hi Russell,
  I ran apt-get update, then apt-get install python.  I did
not specify a version.  The system stated I am already at
the latest version.  I then ran apt-get install --reinstall --fix-broken
zope.  The log looks the same.  If you still have a log of the
session I sent previously, please notice that the python routines
which are run seem to be from /usr/lib/python1.5, even though python2.3
is installed.  Does Zope explicitly look for version 1.5?  I'm really
at a loss as to what is going on here.

On my system:

whereis python

  python: /usr/bin/python /usr/bin/python2.2 /usr/bin/python2.1
          /etc/python2.1 /etc/python2.2 /usr/lib/python2.1
          /usr/lib/python2.2 /usr/include/python2.1 /usr/include/python2.2
          /usr/share/man/man1/python.1.gz

ls -l /usr/bin/python

  /usr/bin/python -> python2.2

Your system may have: /usr/bin/python -> python1.5

If so, symlink it to point to python2.2.

The other way is the debian alternatives system. You can have multiple
versions of a tool, such as gcc-2.95.4, gcc-3.3, etc, but one gets called
by the generic name of "gcc".

man update-alternatives

rm /usr/bin/python
rm /usr/share/man/man1/python.1.gz

ln -s /etc/alternatives/pythonbin /usr/bin/python
ln -s /etc/alternatives/pythonman.1.gz /usr/share/man/man1/python.1.gz

update-alternatives --install /usr/bin/python pythonbin /usr/bin/python2.2 20 \
                    --slave /usr/share/man/man1/python.1.gz pythonman.1.gz /usr/share/man/man1/python2.2.1.gz

Now check.

ls -l /usr/bin/python

  /usr/bin/python -> /etc/alternatives/pythonbin

ls -l /etc/alternatives/pythonbin

  /etc/alternatives/pythonbin -> /usr/bin/python2.2

ls -l /usr/share/man/man1/python.1.gz

  /usr/share/man/man1/python.1.gz -> /etc/alternatives/pythonman.1.gz

ls -l /etc/alternatives/pythonman.1.gz

  /etc/alternatives/pythonman.1.gz -> /usr/share/man/man1/python2.2.1.gz




Reply to: