From: Li Wang <liwang@ubuntukylin.com>
To: charles L <charlesboy009@hotmail.com>
Cc: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: /usr/bin/ld: cannot find -lboost_program_options
Date: Mon, 02 Dec 2013 10:18:33 +0800 [thread overview]
Message-ID: <529BEDF9.8050009@ubuntukylin.com> (raw)
In-Reply-To: <DUB116-W1392EBBBE3792703D625FEFE0EA0@phx.gbl>
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
>
next prev parent reply other threads:[~2013-12-02 2:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-02 1:57 /usr/bin/ld: cannot find -lboost_program_options charles L
2013-12-02 2:18 ` Li Wang [this message]
2013-12-02 3:08 ` charles L
2013-12-02 4:40 ` Noah Watkins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=529BEDF9.8050009@ubuntukylin.com \
--to=liwang@ubuntukylin.com \
--cc=ceph-devel@vger.kernel.org \
--cc=charlesboy009@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.