2012-03-13 79 views
2

我想今天我的服务器上安装pysvn,但下面遇到的一些问题:如何在Redhat Enterprise Linux 6.0上安装pysvn?

[[email protected] pysvn-1.7.6]# python setup.py install 
running install 
running bdist_egg 
running egg_info 
writing pysvn.egg-info/PKG-INFO 
writing top-level names to pysvn.egg-info/top_level.txt 
writing dependency_links to pysvn.egg-info/dependency_links.txt 
reading manifest file 'pysvn.egg-info/SOURCES.txt' 
writing manifest file 'pysvn.egg-info/SOURCES.txt' 
Info: Configure for python 2.6.5 in exec_prefix /usr 
Info: Found PyCXX include in /usr/local/src/pysvn-1.7.6/Import/pycxx-6.2.4 
Info: Found PyCXX include in /usr/local/src/pysvn-1.7.6/Import/pycxx-6.2.4 
Info: Found PyCXX Source in /usr/local/src/pysvn-1.7.6/Import/pycxx-6.2.4/Src 
('Error:', 'cannot find SVN include svn_client.h - use --svn-inc-dir') 
make: *** No rule to make target `clean'. Stop. 
make: *** No targets. Stop. 
make: *** No rule to make target `egg'. Stop. 
error: Not a URL, existing file, or requirement spec: 'dist/pysvn-1.7.6-py2.6-linux-  i686.egg' 

我也试图找到一个svn_client.h文件,并把它放在当前目录中,但没有奏效。建议下载颠覆客户端软件包。但是什么是颠覆客户端软件包?

我该如何解决这个问题。

回答

0

您是否安装了subversion和subversion-devel软件包?

subversion-devel.i686 : Development package for the Subversion libraries 
subversion.i686 : A Modern Concurrent Version Control System 

再见

2

似乎回答here

你没有提到Python版本,但可能,如果你有旧的Python版本可以轻松解决。我有python 2.6.6,答案适用于我。

安装说明在INSTALL.html

1

我有同样的问题。我发现这个解决方案,它正在工作。

下载从

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

最新EPEL释放转现:

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

安装EPEL释放转:

rpm -Uvh epel-release*rpm

安装pysvn rpm包:

yum install pysvn