Page 1 of 1
build error: can't locate -lboost_filesystem-mt
Posted: Fri Feb 15, 2008 4:16 pm
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?
Re: build error: can't locate -lboost_filesystem-mt
Posted: Sun Feb 17, 2008 7:59 am
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
Re: build error: can't locate -lboost_filesystem-mt
Posted: Sun Feb 17, 2008 6:22 pm
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.

Re: build error: can't locate -lboost_filesystem-mt
Posted: Mon Feb 18, 2008 4:12 pm
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
Re: build error: can't locate -lboost_filesystem-mt
Posted: Mon Feb 18, 2008 10:52 pm
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

!
Re: build error: can't locate -lboost_filesystem-mt
Posted: Tue Feb 19, 2008 8:53 am
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.
Re: build error: can't locate -lboost_filesystem-mt
Posted: Tue Feb 19, 2008 6:33 pm
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
Re: build error: can't locate -lboost_filesystem-mt
Posted: Wed Feb 20, 2008 1:44 am
by dex
That worked perfectly!!! Thank you so much!
Re: build error: can't locate -lboost_filesystem-mt
Posted: Fri Feb 22, 2008 10:17 am
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