Форум сайта python.su
Видел похожую тему здесь, только шла речь про виндовс.
Итак есть Centos 4, на нём питон 2.3. Пакетов обновления в интернете не нашёл, решил скомпилить новую версию руками.
Скачал последнею версию, сделал
./configure –prefix=/usr/lib/python2.5
make
make install
ln -s /usr/lib/python2.5 /usr/lib/python
Подредактировал ~/.bash_profile у юзера которым пользуюсь и у рута на export PATH=/usr/lib/python/bin:$PATH
Запускаю easy_install trac
Оно смотрит что такое уже есть в /usr/lib/python2.3/site-packages и не хочет инсталить..
Что я делаю не правильно?
Офлайн
покажи
$ python -c 'import sys; print sys.path'
$ head -1 "`which easy_install`"
Отредактировано (Июнь 17, 2008 19:18:02)
Офлайн
[root@python ~]# python -c 'import sys; print sys.path'
['', '/usr/lib/python/lib/python25.zip', '/usr/lib/python/lib/python2.5', '/usr/lib/python/lib/python2.5/plat-linux2', '/usr/lib/python/lib/python2.5/lib-tk', '/usr/lib/python/lib/python2.5/lib-dynload', '/usr/lib/python/lib/python2.5/site-packages']
[root@python ~]# head -1 "`which easy_install`"
#!/usr/lib/python/bin/python
Офлайн
ну тогда покажи полный вывод от easy_install trac
Офлайн
Фантастика какая то..
[root@python ~]# which easy_install
/usr/lib/python/bin/easy_install
[root@python ~]# easy_install trac
Searching for trac
Best match: Trac 0.11rc2
Processing Trac-0.11rc2-py2.3.egg
Trac 0.11rc2 is already the active version in easy-install.pth
Installing trac-admin script to /usr/bin
Installing tracd script to /usr/bin
Using /usr/lib/python2.3/site-packages/Trac-0.11rc2-py2.3.egg
Processing dependencies for trac
Finished processing dependencies for trac
[root@python ~]# cd /usr/lib/python/bin
[root@python bin]# ./easy_install trac
Searching for trac
Reading http://pypi.python.org/simple/trac/
Couldn't find index page for 'trac' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Reading http://pypi.python.org/simple/Trac/
Reading http://trac.edgewall.org/
Reading http://trac.edgewall.org/wiki/TracDownload
Reading http://trac.edgewall.com/
Reading http://projects.edgewall.com/trac
Reading http://projects.edgewall.com/trac/wiki/TracDownload
Best match: Trac 0.11rc2
Downloading http://pypi.python.org/packages/2.5/T/Trac/Trac-0.11rc2-py2.5.egg#md5=e29b3564100d7276db5250f546f30d2b
Processing Trac-0.11rc2-py2.5.egg
creating /usr/lib/python2.5/lib/python2.5/site-packages/Trac-0.11rc2-py2.5.egg
Extracting Trac-0.11rc2-py2.5.egg to /usr/lib/python2.5/lib/python2.5/site-packages
Adding Trac 0.11rc2 to easy-install.pth file
Installing trac-admin script to /usr/lib/python/bin
Installing tracd script to /usr/lib/python/bin
Installed /usr/lib/python2.5/lib/python2.5/site-packages/Trac-0.11rc2-py2.5.egg
Processing dependencies for trac
Searching for Genshi>=0.5
Reading http://pypi.python.org/simple/Genshi/
Reading http://genshi.edgewall.org/
Reading http://genshi.edgewall.org/wiki/Download
Best match: Genshi 0.6dev
Downloading http://svn.edgewall.org/repos/genshi/trunk#egg=Genshi-0.6dev
Doing subversion checkout from http://svn.edgewall.org/repos/genshi/trunk to /tmp/easy_install-xUGju4/trunk
Processing trunk
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-xUGju4/trunk/egg-dist-tmp-EOennS
warning: no files found matching 'doc/api/*.*'
warning: no files found matching 'doc/*.html'
Adding Genshi 0.6dev-r888 to easy-install.pth file
Installed /usr/lib/python2.5/lib/python2.5/site-packages/Genshi-0.6dev_r888-py2.5-linux-x86_64.egg
Finished processing dependencies for trac
[root@python ~]# cd
[root@python ~]# easy_install trac
Searching for trac
Best match: Trac 0.11rc2
Processing Trac-0.11rc2-py2.5.egg
Trac 0.11rc2 is already the active version in easy-install.pth
Installing trac-admin script to /usr/lib/python/bin
Installing tracd script to /usr/lib/python/bin
Using /usr/lib/python2.5/lib/python2.5/site-packages/Trac-0.11rc2-py2.5.egg
Processing dependencies for trac
Finished processing dependencies for trac
Отредактировано (Июнь 17, 2008 20:50:49)
Офлайн