cannot find -lboost_python after upgrade to Ubuntu 9.10

View: New views
3 Messages — Rating Filter:   Alert me  

cannot find -lboost_python after upgrade to Ubuntu 9.10

by Anders Wallin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This example from the tutorial
http://pastebin.ca/1652154

used to compile on my 9.04 system with this makefile:
http://pastebin.ca/1652155

now after the 9.10 upgrade I get:
/usr/bin/ld: cannot find -lboost_python


what could be wrong?
I do have 'libboost-python-dev' installed as well as
'libboost-python1.38.0' and 'libboost1.38-dev'
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@...
http://mail.python.org/mailman/listinfo/cplusplus-sig

Re: cannot find -lboost_python after upgrade to Ubuntu 9.10

by Dane Springmeyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think that recent boost packages on ubuntu have added a '-py25' or '-
py26' at the end of the library, essentially providing two libraries  
linked to each of the python versions available on ubuntu.

Dane

On Nov 1, 2009, at 2:28 PM, Anders Wallin wrote:

> This example from the tutorial
> http://pastebin.ca/1652154
>
> used to compile on my 9.04 system with this makefile:
> http://pastebin.ca/1652155
>
> now after the 9.10 upgrade I get:
> /usr/bin/ld: cannot find -lboost_python
>
>
> what could be wrong?
> I do have 'libboost-python-dev' installed as well as
> 'libboost-python1.38.0' and 'libboost1.38-dev'
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig@...
> http://mail.python.org/mailman/listinfo/cplusplus-sig

_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@...
http://mail.python.org/mailman/listinfo/cplusplus-sig

Re: cannot find -lboost_python after upgrade to Ubuntu 9.10

by Anders Wallin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I think that recent boost packages on ubuntu have added a '-py25' or '-py26'
> at the end of the library, essentially providing two libraries linked to
> each of the python versions available on ubuntu.

looking in usr/lib I have at least these, but changing the makefile to
one of these names does not seem to help:
/usr/lib/libboost_python-mt.a
/usr/lib/libboost_python-mt.so
/usr/lib/libboost_python-mt-py25.a
/usr/lib/libboost_python-mt-py25.so
/usr/lib/libboost_python-mt-py25.so.1.38.0
/usr/lib/libboost_python-mt-py26.a
/usr/lib/libboost_python-mt-py26.so
/usr/lib/libboost_python-mt-py26.so.1.38.0

AW
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@...
http://mail.python.org/mailman/listinfo/cplusplus-sig