www.question-defense.com | Engage: Visit :: Login :: Register

I was working on one of the subversion servers to trying to get email alerts every time a commit was made. I managed to get it going but that will be a new article. This article details a error I received on a Ubuntu server while trying to install pysvn .

The exact error is I got was when running the configure script for pysvn:

root@redmine:/usr/local/pysvn-1.7.2/Source# python setup.py configure
Info: Found  PyCXX include in /usr/local/pysvn-1.7.2/Import/pycxx-6.1.1
Info: Found   PyCXX Source in /usr/local/pysvn-1.7.2/Import/pycxx-6.1.1/Src
Info: Found Python include in /usr/local/pysvn-1.7.2/Import/pycxx-6.1.1 /usr/local/pysvn-1.7.2/Import/pycxx-6.1.1/Src /usr/include/python2.6
('Error:', 'cannot find SVN include svn_client.h - use --svn-inc-dir')

From the error messages it appears that the pysvn cant find some of the required subversion files. This was odd because I know I have subversion installed.

After a little work I determined that I needed some of the development packages for svn in order to get this to work.

In Ubuntu the packages were named libsvn1 & libsvn-dev:

apt-get install libsvn1 libsvn-dev

Once I got these installed I ran the setup.py again and this time it built just fine:

root@redmine:/usr/local/pysvn-1.7.2/Source# python setup.py configure
Info: Found  PyCXX include in /usr/local/pysvn-1.7.2/Import/pycxx-6.1.1
Info: Found   PyCXX Source in /usr/local/pysvn-1.7.2/Import/pycxx-6.1.1/Src
Info: Found Python include in /usr/local/pysvn-1.7.2/Import/pycxx-6.1.1 /usr/local/pysvn-1.7.2/Import/pycxx-6.1.1/Src /usr/include/python2.6
Info: Found    SVN include in /usr/include/subversion-1
Info: Found    APR include in /usr/include/apr-1.0
Info: Found        SVN bin in /usr/bin
Info: Found    SVN library in /usr/lib
Info: Found    APR library in /usr/lib
Info: Creating Makefile for Source
Info: Building against SVN 1.5.4
Info: Creating Makefile for Tests

Version Control With Subversion for Subversion 1.6: The Official Guide And Reference Manual (Paperback)

By (author) Ben Collins-Sussman, Brian W. Fitzpatrick, C. Michael Pilato


List Price: $30.00 USD
New From: $23.75 In Stock
Used from: $19.76 In Stock

Version Control with Subversion (Paperback)

By (author) C. Michael Pilato, Ben Collins-Sussman, Brian W. Fitzpatrick


List Price: $39.99 USD
New From: $19.99 In Stock
Used from: $5.98 In Stock

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail

Related posts:

  1. Installation Error – configure: error: cannot find xml2-config If you receive the below error on a CentOS Linux...
  2. /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory When compiling an application called pyrit on a new CentOS...
  3. configure: error: Cannot find libmysqlclient under /usr I received the below error when compiling PHP to work as...
  4. Building CUDA-Multiforcer Error: /usr/bin/ld: cannot find -lcutil, collect2: ld returned 1 exit status While building the CUDA Multiforcer on CentOS Linux I ran...
  5. Windows TortoiseSVN SASL – sasl(-1): generic failure: unable to find a callback: 2 I beat my head on the wall for awhile with...
Tags: , , , , , , , ,
Leave a Reply

*Type the letter/number combination in the abvoe field before clicking submit.

*