You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by SVNL <pi...@yahoo.com> on 2006/06/04 08:27:01 UTC

Make swig-py does not work

Hello, everyone.

I tried to make python bindings installed with Subversion 1.3.2. But I ran
into errors  below. Basically, make swig-py said it can't find certain
files.
I have SWIG Version 1.3.29 installed at /usr/local/bin/swig and its lib
/usr/local/share/swig/1.3.29/

What am I doing wrong?
My platform is Centos 4.3 x86

Please help!

Thanks.

[root@linux.xxx subversion-1.3.2]# make swig-py
/usr/local/bin/swig -I/tmp/subversion-1.3.2/subversion/bindings/swig
-I/tmp/subversion-1.3.2/subversion/bindings/swig/include
-I/tmp/subversion-1.3.2/subversion/bindings/swig/proxy
-I/tmp/subversion-1.3.2/subversion/bindings/swig/proxy
-I/tmp/subversion-1.3.2/subversion/include
-I/tmp/subversion-1.3.2/apr/include 
-I/tmp/subversion-1.3.2/apr-util/include  -python -classic -w451 -w305 -o
subversion/bindings/swig/python/core.c
/tmp/subversion-1.3.2/subversion/bindings/swig/core.i
/tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:46: Error:
Unable to find 'pyswigtype.swg'
/tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:47: Error:
Unable to find 'pyinout.swg'
/tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:48: Error:
Unable to find 'pyvoid.swg'
/tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:49: Error:
Unable to find 'pyobject.swg'
/tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:50: Error:
Unable to find 'pystrbase.swg'
/tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:52: Error:
Unable to find 'pyvaltypes.swg'
/tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:53: Error:
Unable to find 'pyptrtypes.swg'
/tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:55: Error:
Unable to find 'pymisctypes.swg'
/tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:56: Error:
Unable to find 'pyenum.swg'
make: *** [subversion/bindings/swig/python/core.c] Error 1

--
View this message in context: http://www.nabble.com/Make-swig-py-does-not-work-t1730040.html#a4700624
Sent from the Subversion Users forum at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Make swig-py does not work

Posted by decimus <nt...@rit.edu>.
I ran into this same problem today.  

I ended up having to go back and install swig-1.3.27 instead of swig-1.3.29
in order to get the missing files.  After that, make swig-py and make
swig-py install worked fine.
--
View this message in context: http://www.nabble.com/Make-swig-py-does-not-work-t1730040.html#a4760366
Sent from the Subversion Users forum at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Make swig-py does not work

Posted by SVNL <pi...@yahoo.com>.
Ah hah.
Thank you gentlemen.
That might be problem. I ran autogen.sh every time. It gave the same error.
Very consistent indeed.

I will give it another try later without running the autogen.sh.

Thanks. 
--
View this message in context: http://www.nabble.com/Make-swig-py-does-not-work-t1730040.html#a4725572
Sent from the Subversion Users forum at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Make swig-py does not work

Posted by o....@cs.ucc.ie.
Sorry to here you are still in trouble.
I built svn 1.3.1 and SWIG both from src all into /usr/local/bin
and then configured the system python to see the new libs as I previously 
described.
All this was on SuSE 9.3 I never used Centos but it cant be too diff.
I have not yet tried 1.3.2
I never used the autogen.py script that might be screwing things up.
Are you sure your system library PATH is up to date?
regaards
oliver

On Sun, 4 Jun 2006, SVNL wrote:


> 
> Thanks Olivier for the advice.
> 
> After install swig from source, I ran ./autogen.py , configure
> --with-apxs=/usr/sbin/apxs --enable-ssl ( saw swig ok) , make , make install
> 
> I can't still see /usr/local/lib/svn-python with libsvn, svn in existence.
> 
> I gave up on installing from source for now.
> 
> Since I am using Centos, I just yummed trac from dag repo which includes
> subversion 1.2.
> Finally, i got subversion running with trac , but not really happy with it
> because of running an older version of subversion.
> 
> I found this instruction from Trac
> http://projects.edgewall.com/trac/attachment/wiki/TracInstall/trac.install.txt
> 
> I might try that later to use the latest Subversion 1.3.2.
> 
> I still need to figure out how to run subversion as service in Centos.
> Anyone with a script to take care of that, please post it here. 
> 
> Thanks again.
> --
> View this message in context: http://www.nabble.com/Make-swig-py-does-not-work-t1730040.html#a4708144
> Sent from the Subversion Users forum at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 

--
Oliver Nash
Computer Systems Support Group
Department of Computer Science
University College Cork
Ireland
EMAIL:o.nash@cs.ucc.ie
PHONE:+35321 4902972

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Make swig-py does not work

Posted by SVNL <pi...@yahoo.com>.
Thanks Olivier for the advice.

After install swig from source, I ran ./autogen.py , configure
--with-apxs=/usr/sbin/apxs --enable-ssl ( saw swig ok) , make , make install

I can't still see /usr/local/lib/svn-python with libsvn, svn in existence.

I gave up on installing from source for now.

Since I am using Centos, I just yummed trac from dag repo which includes
subversion 1.2.
Finally, i got subversion running with trac , but not really happy with it
because of running an older version of subversion.

I found this instruction from Trac
http://projects.edgewall.com/trac/attachment/wiki/TracInstall/trac.install.txt

I might try that later to use the latest Subversion 1.3.2.

I still need to figure out how to run subversion as service in Centos.
Anyone with a script to take care of that, please post it here. 

Thanks again.
--
View this message in context: http://www.nabble.com/Make-swig-py-does-not-work-t1730040.html#a4708144
Sent from the Subversion Users forum at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Make swig-py does not work

Posted by o....@cs.ucc.ie.
You might need to [linux example]:
add svn-python to the system library PATH by editing /etc/ld.so.conf
with these lines
/usr/local/lib/svn-python
/usr/local/lib/svn-python/libsvn
/usr/local/lib/svn-python/svn
Then run /sbin/ldconfig.

Also add symbolic links into the system Python site-packages dir, 
pointing to the new binaries you just installed.
In /usr/lib/python2.4/site-packages create:-
libsvn -> /usr/local/lib/svn-python/libsvn/
libsvn_swig_py-1.so -> /usr/local/lib/libsvn_swig_py-1.so
libsvn_swig_py-1.so.0 -> /usr/local/lib/libsvn_swig_py-1.so.0
svn -> /usr/local/lib/svn-python/svn

Youp exact paths might differ
hope this helps
rgds
Oliver

On Sun, 4 Jun 2006, SVNL wrote:

> 
> Hello, everyone.
> 
> I tried to make python bindings installed with Subversion 1.3.2. But I ran
> into errors  below. Basically, make swig-py said it can't find certain
> files.
> I have SWIG Version 1.3.29 installed at /usr/local/bin/swig and its lib
> /usr/local/share/swig/1.3.29/
> 
> What am I doing wrong?
> My platform is Centos 4.3 x86
> 
> Please help!
> 
> Thanks.
> 
> [root@linux.xxx subversion-1.3.2]# make swig-py
> /usr/local/bin/swig -I/tmp/subversion-1.3.2/subversion/bindings/swig
> -I/tmp/subversion-1.3.2/subversion/bindings/swig/include
> -I/tmp/subversion-1.3.2/subversion/bindings/swig/proxy
> -I/tmp/subversion-1.3.2/subversion/bindings/swig/proxy
> -I/tmp/subversion-1.3.2/subversion/include
> -I/tmp/subversion-1.3.2/apr/include 
> -I/tmp/subversion-1.3.2/apr-util/include  -python -classic -w451 -w305 -o
> subversion/bindings/swig/python/core.c
> /tmp/subversion-1.3.2/subversion/bindings/swig/core.i
> /tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:46: Error:
> Unable to find 'pyswigtype.swg'
> /tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:47: Error:
> Unable to find 'pyinout.swg'
> /tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:48: Error:
> Unable to find 'pyvoid.swg'
> /tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:49: Error:
> Unable to find 'pyobject.swg'
> /tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:50: Error:
> Unable to find 'pystrbase.swg'
> /tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:52: Error:
> Unable to find 'pyvaltypes.swg'
> /tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:53: Error:
> Unable to find 'pyptrtypes.swg'
> /tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:55: Error:
> Unable to find 'pymisctypes.swg'
> /tmp/subversion-1.3.2/subversion/bindings/swig/proxy/python.swg:56: Error:
> Unable to find 'pyenum.swg'
> make: *** [subversion/bindings/swig/python/core.c] Error 1
> 
> --
> View this message in context: http://www.nabble.com/Make-swig-py-does-not-work-t1730040.html#a4700624
> Sent from the Subversion Users forum at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 

--
Oliver Nash
Computer Systems Support Group
Department of Computer Science
University College Cork
Ireland
EMAIL:o.nash@cs.ucc.ie
PHONE:+35321 4902972

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org