/usr/bin/ld: cannot find -lboost_thread | when caffe, make all

4,094 views
Skip to first unread message

Xiang Li

unread,
Jan 12, 2015, 3:30:38 AM1/12/15
to caffe...@googlegroups.com
when I use " make all " to setup caffe in centos, this happens.

/usr/bin/ld: cannot find -lboost_thread
collect2: ld returned 1 exit status
make: *** [.build_release/lib/libcaffe.so] Error 1


seems like I have no boost library, but I type ' sudo yum install boost '

Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: ftp.sjtu.edu.cn
 * epel: ftp.sjtu.edu.cn
 * extras: ftp.sjtu.edu.cn
 * updates: ftp.sjtu.edu.cn
Setting up Install Process
Package boost-1.41.0-25.el6.x86_64 already installed and latest version
Nothing to do

I found boost has already been setup. How to solve this ? (/usr/bin/ld: cannot find -lboost_thread)

Thank you very much for helping.

Ben Kang

unread,
Jan 12, 2015, 10:25:38 AM1/12/15
to caffe...@googlegroups.com
You could try the following two ways

1. re-install the boost

2. find if there is libboost_thread-mt. If so, make an symbolic link named libboost_thread to it.

Both worked for me before.

Xiang Li

unread,
Jan 12, 2015, 8:08:19 PM1/12/15
to caffe...@googlegroups.com
thanks very much, I found libboost_thread-mt.so in lib64~

在 2015年1月12日星期一 UTC+8下午11:25:38,Ben Kang写道:

Quan Fang

unread,
Feb 10, 2015, 8:46:56 AM2/10/15
to caffe...@googlegroups.com
Hi Xiang, I have encountered the same problem on CentOS. How to make an symbolic link named libboost_thread to  libboost_thread-mt?
Message has been deleted

Eric Eiffel

unread,
Feb 17, 2015, 3:15:50 AM2/17/15
to caffe...@googlegroups.com
you can make a soft link direct to libboost_thread-mt.so,make libboost_thread.so link to libboost_thread-mt.so,then make it~~

在 2015年2月10日星期二 UTC+8下午9:46:56,Quan Fang写道:

Eric Eiffel

unread,
Feb 17, 2015, 3:22:36 AM2/17/15
to caffe...@googlegroups.com
Or you can try this,vi Makefile change LIBRARIES += boost_thread to LIBRARIES += boost_thread-mt

在 2015年2月17日星期二 UTC+8下午4:15:50,Eric Eiffel写道:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages