4

我在 RHEL 6 上安装了 Python 2.7.3,当我尝试安装 pysvn-1.7.6 时,出现错误。我应该怎么办?

/search/python/pysvn-1.7.6/Import/pycxx-6.2.4/CXX/Python2/Objects.hxx:2912: warning: deprecated conversion from string constant to 'char*'
Compile: pysvn_svnenv.cpp into pysvn_svnenv.o
Compile: pysvn_profile.cpp into pysvn_profile.o
Compile: /search/python/pysvn-1.7.6/Import/pycxx-6.2.4/Src/cxxsupport.cxx into cxxsupport.o
Compile: /search/python/pysvn-1.7.6/Import/pycxx-6.2.4/Src/cxx_extensions.cxx into cxx_extensions.o
Compile: /search/python/pysvn-1.7.6/Import/pycxx-6.2.4/Src/cxxextensions.c into cxxextensions.o
Compile: /search/python/pysvn-1.7.6/Import/pycxx-6.2.4/Src/IndirectPythonInterface.cxx into IndirectPythonInterface.o
Link pysvn/_pysvn_2_7.so
make: *** No rule to make target `egg'.  Stop.
error: Not a URL, existing file, or requirement spec: 'dist/pysvn-1.7.6-py2.7-linux-x86_64.egg'
4

2 回答 2

6

我解决了这个问题,原因是我犯了一个错误。我刚刚执行了以下命令,它不在指令中。

python setup.py install

安装步骤是(Source是pysvn目录中的目录名):

cd Source
python setup.py configure
make
cd ../Tests
make
cd Source
mkdir [YOUR PYTHON LIBDIR]/site-packages/pysvn
cp pysvn/__init__.py [YOUR PYTHON LIBDIR]/site-packages/pysvn
cp pysvn/_pysvn*.so [YOUR PYTHON LIBDIR]/site-packages/pysvn
于 2012-09-21T05:48:05.543 回答
0

我有同样的问题。我找到了这个解决方案并且它正在工作。

下载最新的 epel-release rpm 从

http://dl.fedoraproject.org/pub/epel/6/x86_64/

目前 :

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

安装 epel-release rpm:

rpm -Uvh epel-release*rpm

安装 pysvn rpm 包:

yum install pysvn

于 2014-05-09T07:36:49.300 回答