From mboxrd@z Thu Jan 1 00:00:00 1970 From: Li Wang Subject: Re: /usr/bin/ld: cannot find -lboost_program_options Date: Mon, 02 Dec 2013 10:18:33 +0800 Message-ID: <529BEDF9.8050009@ubuntukylin.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from m59-178.qiye.163.com ([123.58.178.59]:38522 "EHLO m59-178.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752341Ab3LBCSg (ORCPT ); Sun, 1 Dec 2013 21:18:36 -0500 In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: charles L Cc: "ceph-devel@vger.kernel.org" Please install libboost-program-options-dev package before compiling for example, for Ubuntu, sudo apt-get install libboost-program-options-dev On 12/02/2013 09:57 AM, charles L wrote: > Pls can some1 help? Im compiling ceph...i did the make -j2 command and got this "cannot find -lboost_program_options" many times ..so i tried to run make in verbose mode...and got this... > > root@ubuntuserver:/home/ceph# V=1 make > Making all in . > make[1]: Entering directory `/home/ceph' > make[1]: Nothing to be done for `all-am'. > make[1]: Leaving directory `/home/ceph' > Making all in src > make[1]: Entering directory `/home/ceph/src' > make all-recursive > make[2]: Entering directory `/home/ceph/src' > Making all in ocf > make[3]: Entering directory `/home/ceph/src/ocf' > make[3]: Nothing to be done for `all'. > make[3]: Leaving directory `/home/ceph/src/ocf' > Making all in java > make[3]: Entering directory `/home/ceph/src/java' > make all-am > make[4]: Entering directory `/home/ceph/src/java' > make[4]: Nothing to be done for `all-am'. > make[4]: Leaving directory `/home/ceph/src/java' > make[3]: Leaving directory `/home/ceph/src/java' > make[3]: Entering directory `/home/ceph/src' > ./check_version ./.git_version > ./.git_version is up to date. > /bin/bash ../libtool --tag=CXX --mode=link g++ -Wall -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith -Werror=format-security -fno-strict-aliasing -fsigned-char -rdynamic -Wnon-virtual-dtor -Wno-invalid-offsetof -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wstrict-null-sentinel -g -Wl,--as-needed -latomic_ops -o ceph_filestore_tool tools/ceph-filestore-tool.o libosd.la libosdc.la libos.la -laio -lleveldb -lsnappy libperfglue.la -ltcmalloc libos.la -laio -lleveldb -lsnappy libglobal.la -lpthread -lm -lcrypto++ -luuid -lm -lkeyutils -lrt -lboost_program_options -ldl -lboost_thread -lboost_system -lleveldb -lsnappy > libtool: link: g++ -Wall -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith -Werror=format-security -fno-strict-aliasing -fsigned-char -rdynamic -Wnon-virtual-dtor -Wno-invalid-offsetof -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wstrict-null-sentinel -g -Wl,--as-needed -o ceph_filestore_tool tools/ceph-filestore-tool.o /usr/lib/libatomic_ops.a ./.libs/libosd.a ./.libs/libosdc.a ./.libs/libperfglue.a -ltcmalloc ./.libs/libos.a -laio ./.libs/libglobal.a -lpthread -lcrypto++ -luuid -lm -lkeyutils -lrt -lboost_program_options -ldl -lboost_thread -lboost_system -lleveldb -lsnappy > /usr/bin/ld: cannot find -lboost_program_options > collect2: error: ld returned 1 exit status > make[3]: *** [ceph_filestore_tool] Error 1 > make[3]: Leaving directory `/home/ceph/src' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/ceph/src' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/home/ceph/src' > make: *** [all-recursive] Error 1 -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >