简体   繁体   English

用于预编译的boost库(Ubuntu)的包

[英]Package for pre-compiled boost libraries (Ubuntu)

I'm trying to find the right boost package that comes pre-compiled as well. 我正在尝试找到预先编译的正确的增强包。 (For Ubuntu Lucid 10.04) (对于Ubuntu Lucid 10.04)

I tried: 我试过了:

sudo apt-get install libboost-dev-all

I'm aware that most of boost is header only, but it looks like I don't have any lib files? 我知道大多数boost只是标题,但看起来我没有任何lib文件? I only got the files in /usr/include/boost/ 我只有/ usr / include / boost /中的文件

Which package gives me the library files as well? 哪个包给了我库文件? (such as /usr/lib/boost/ or /usr/include/boost/lib/) ? (例如/ usr / lib / boost /或/ usr / include / boost / lib /)? Or are they already installed and I just can't find them? 或者他们已经安装好了,我找不到它们? I would prefer to not have to compile it myself from source.. 我宁愿不必自己从源代码编译它。

Thanks 谢谢

在/ usr / lib中查找以“libboost”开头的文件。

libboost-dev packages include both the libraries and the headers necessary to develop using boost. libboost-dev软件包包括使用boost开发所需的库和头文件。 It is also split into different packages. 它也分为不同的包。 For instance libboost-thread-dev for the boost.thread library: It depends on libboost-thread1.42-dev (on my system), and: 例如, boost.thread库的libboost-thread-dev :它依赖于libboost-thread1.42-dev (在我的系统上),并且:

$ dpkg -L libboost-thread1.42-dev 
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libboost-thread1.42-dev
...
/usr/lib
/usr/lib/libboost_thread.a
/usr/lib/libboost_thread.so
/usr/lib/libboost_thread-mt.so
/usr/lib/libboost_thread-mt.a

There you have the libraries. 那里有图书馆。

sudo aptitude install libboost-all-dev

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM