[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Swig Python binding

From: Rida Al Barazi <ralbarazi_at_gmail.com>
Date: 2005-09-03 18:36:18 CEST

Hi David,

Thank you for your help, I thought that I installed SWIG correctly, but it
was a mistake I had to compile it in the another directory with another
prefix.
In Plesk swig1.1 will be installed in /usr/bin/swig so I had to specify the
prefix in ./configure before compiling it..
Now I'm getting anothor error in libtool:
[root@vps subversion-1.2.3]# make swig-py
/bin/sh /usr/local/src/subversion-1.2.3/libtool --silent --mode=compile
none -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
 -D_GNU_SOURCE -I/usr/local/src/subversion-1.2.3/subversion/bindings/swig -I/usr/local/src/subversion-1.2.3/subversion/include
 -I -DSVN_SWIG_VERSION=1001 -DSWIG_TABLE_TYPE=subversion -I/usr/local/src/subversion-1.2.3/apr/include
  -I/usr/local/src/subversion-1.2.3/apr-util/include -I/usr/local/src/subversion-1.2.3/subversion/bindings/swig/python/libsvn_swig_py
 -prefer-pic -c -o subversion/bindings/swig/python/svn_client.lo
subversion/bindings/swig/python/svn_client.c
/usr/local/src/subversion-1.2.3/libtool: line 1: none: command not found
make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1

just in case you need the same information in the other post:
  which python => /usr/local/bin/python
  which python2 => /usr/bin/python2
  python -V => Python 2.4.1
  python2 -V => Python 2.2.2
  python build/get-py-info.py --compile =>
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-fPIC
  python2 build/get-py-info.py --compile =>
USAGE: build/get-py-info.py WHAT
  Returns information about how to build Python extensions.
  WHAT may be one of:
    --includes : return -I include flags
    --compile : return a compile command
    --link : return a link command
    --libs : return just the library options for linking

I think I have to recompile swig with specifying python path
[/usr/local/bin/python] also... let me try it.

Tried to reconfigure/make/make install swig, and reconfigure subversion with
swig and python path and then make swig-py getting these warnings inside:
libtool: link: warning:
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libgdbm.la' seems to be
moved
libtool: link: warning:
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libdb-4.0.la' seems to
be moved
libtool: link: warning:
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libexpat.la' seems to be
moved
libtool: link: warning:
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libgdbm.la' seems to be
moved
libtool: link: warning:
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libdb-4.0.la' seems to
be moved
libtool: link: warning:
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libexpat.la' seems to be
moved
libtool: link: warning:
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libgdbm.la' seems to be
moved
libtool: link: warning:
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libdb-4.0.la' seems to
be moved
libtool: link: warning:
`/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libexpat.la' seems to be
moved

when I try after that make install-swig-py... it's showing the same errors
inside but with this at the end:
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib/svn-python/libsvn

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
./build/copy-swig-py.sh "/usr/bin/python2"
"/usr/local/src/subversion-1.2.3/ac-helpers/install-sh -c -m 644"
"/usr/local/src/subversion-1.2.3/subversion/bindings/swig/python"
"/usr/local/lib/svn-python/libsvn" ""; ./build/copy-swig-py.sh
"/usr/bin/python2"
"/usr/local/src/subversion-1.2.3/ac-helpers/install-sh -c -m 644"
"/usr/local/src/subversion-1.2.3/subversion/bindings/swig/python/svn"
"/usr/local/lib/svn-python/svn" ""; if test /usr/local/src/subversion-1.2.3
!= /usr/local/src/subversion-1.2.3; then ./build/copy-swig-py.sh
"/usr/bin/python2"
"/usr/local/src/subversion-1.2.3/ac-helpers/install-sh -c -m 644"
"/usr/local/src/subversion-1.2.3/subversion/bindings/swig/python"
"/usr/local/lib/svn-python/libsvn" ""; fi
Listing /usr/local/lib/svn-python/libsvn ...
Compiling /usr/local/lib/svn-python/libsvn/__init__.py ...
Compiling /usr/local/lib/svn-python/libsvn/client.py ...
Compiling /usr/local/lib/svn-python/libsvn/core.py ...
Compiling /usr/local/lib/svn-python/libsvn/delta.py ...
Compiling /usr/local/lib/svn-python/libsvn/fs.py ...
Compiling /usr/local/lib/svn-python/libsvn/ra.py ...
Compiling /usr/local/lib/svn-python/libsvn/repos.py ...
Compiling /usr/local/lib/svn-python/libsvn/wc.py ...
Listing /usr/local/lib/svn-python/svn ...
Compiling /usr/local/lib/svn-python/svn/__init__.py ...
Compiling /usr/local/lib/svn-python/svn/client.py ...
Compiling /usr/local/lib/svn-python/svn/core.py ...
Compiling /usr/local/lib/svn-python/svn/delta.py ...
Compiling /usr/local/lib/svn-python/svn/fs.py ...
Compiling /usr/local/lib/svn-python/svn/ra.py ...
Compiling /usr/local/lib/svn-python/svn/repos.py ...
Compiling /usr/local/lib/svn-python/svn/wc.py ...

Restarted my server tried "trac" again.. getting the same error:
Traceback (most recent call last):
  File "/usr/local/bin/trac-admin", line 34, in ?
    from trac import sync
  File "/usr/local/lib/python2.4/site-packages/trac/sync.py", line 22, in ?
    from svn import core, fs, delta, repos
ImportError: No module named svn

Any Thoughts?
Thanks in advance.
Rida

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Sep 3 18:38:22 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.