build error: can't locate -lboost_filesystem-mt

Support for Deluge on Apple Mac OS
Post Reply
jva
New User
New User
Posts: 4
Joined: Tue Dec 04, 2007 10:28 am

build error: can't locate -lboost_filesystem-mt

Post by jva »

I'm trying to install deluge on my MacBook Pro (Mac OS 10.4.11) since version 0.5.8.1, but I keep getting the following error:

Code: Select all

/usr/bin/ld: can't locate file for: -lboost_filesystem-mt
collect2: ld returned 1 exit status
error: command '/usr/bin/g++-4.0' failed with exit status 1

Warning: the following items did not execute (for deluge): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
Running port selfupdate doesn't help (building 0.5.8.4 fails with the same error message).

Any suggestions?
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: build error: can't locate -lboost_filesystem-mt

Post by markybob »

jva wrote:I'm trying to install deluge on my MacBook Pro (Mac OS 10.4.11) since version 0.5.8.1, but I keep getting the following error:

Code: Select all

/usr/bin/ld: can't locate file for: -lboost_filesystem-mt
collect2: ld returned 1 exit status
error: command '/usr/bin/g++-4.0' failed with exit status 1

Warning: the following items did not execute (for deluge): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
Running port selfupdate doesn't help (building 0.5.8.4 fails with the same error message).

Any suggestions?
you could try replacing boost_filesystem-mt with boost_filesystem in setup.py
jva
New User
New User
Posts: 4
Joined: Tue Dec 04, 2007 10:28 am

Re: build error: can't locate -lboost_filesystem-mt

Post by jva »

markybob wrote:you could try replacing boost_filesystem-mt with boost_filesystem in setup.py
Thanks for your reply.

I tried it, but the build fails again with the same message except now it reads just boost_filesystem. :(
abetam

Re: build error: can't locate -lboost_filesystem-mt

Post by abetam »

check the files in /opt/local/lib
boost installs wrong symbolic link

libboost_filesystem-d.a -> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/destroot/opt/local/lib/libboost_filesystem-d-1_34_1.a

instead of

libboost_filesystem-d.a -> /opt/local/lib/libboost_filesystem-d-1_34_1.a

fixing the symbolic link solve the compilation problem
jva
New User
New User
Posts: 4
Joined: Tue Dec 04, 2007 10:28 am

Re: build error: can't locate -lboost_filesystem-mt

Post by jva »

Thanks
abetam wrote:check the files in /opt/local/lib
boost installs wrong symbolic link

libboost_filesystem-d.a -> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/destroot/opt/local/lib/libboost_filesystem-d-1_34_1.a

instead of

libboost_filesystem-d.a -> /opt/local/lib/libboost_filesystem-d-1_34_1.a

fixing the symbolic link solve the compilation problem
Thanks a lot!
I had to fix the symbolic links for:
- libboost_filesystem-mt.a
- libboost_date_time-mt.a
- libboost_thread-mt.a
in the way you said (not 'libboost_thread-d' by the way) and it's working now :)!
dex

Re: build error: can't locate -lboost_filesystem-mt

Post by dex »

jva wrote:Thanks
abetam wrote:check the files in /opt/local/lib
boost installs wrong symbolic link

libboost_filesystem-d.a -> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/destroot/opt/local/lib/libboost_filesystem-d-1_34_1.a

instead of

libboost_filesystem-d.a -> /opt/local/lib/libboost_filesystem-d-1_34_1.a

fixing the symbolic link solve the compilation problem
Thanks a lot!
I had to fix the symbolic links for:
- libboost_filesystem-mt.a
- libboost_date_time-mt.a
- libboost_thread-mt.a
in the way you said (not 'libboost_thread-d' by the way) and it's working now :)!
I was wondering if somebody could clarify what was meant by "fixing the symbolic links"...Sorry for the noob question I really want to get deluge working on leopard.
jva
New User
New User
Posts: 4
Joined: Tue Dec 04, 2007 10:28 am

Re: build error: can't locate -lboost_filesystem-mt

Post by jva »

dex wrote:I was wondering if somebody could clarify what was meant by "fixing the symbolic links"...Sorry for the noob question I really want to get deluge working on leopard.
I'm no expert either, but as far as I know a symbolic link is what Mac OS X calls an alias and it needs fixing because it's pointing to a file that doesn't exist.

I'm not sure if it is same for Leopard, but this worked for me on Tiger. Open terminal and type:

Code: Select all

cd /opt/local/lib
sudo rm libboost_filesystem-mt.a
sudo ln -s libboost_filesystem-mt-1_34_1.a libboost_filesystem-mt.a
sudo rm libboost_thread-mt.a
sudo ln -s libboost_thread-mt-1_34_1.a libboost_thread-mt.a
sudo rm libboost_date_time-mt.a
sudo ln -s libboost_date_time-mt-1_34_1.a libboost_date_time-mt.a
sudo port install deluge
'cd' changes directory (to /opt/local/lib)
'sudo rm' removes the old symbolic link (which requires administrator access, thus sudo, super user do)
'sudo ln -s' creates the new link
dex

Re: build error: can't locate -lboost_filesystem-mt

Post by dex »

That worked perfectly!!! Thank you so much!
guido
New User
New User
Posts: 3
Joined: Tue Sep 25, 2007 9:14 am

Re: build error: can't locate -lboost_filesystem-mt

Post by guido »

This issue has been solved with the new revision 2 of boost 1.34.1:
http://trac.macports.org/projects/macpo ... eset/34338
Post Reply