Deepin Linux 12.06编译boost regex库
来源:互联网 发布:dc大事件 知乎 编辑:程序博客网 时间:2024/05/16 23:39
./configure --with-libraries=regex --prefix=/usr/local/boost --libdir=/usr/local/lib/boost --includedir=/usr/local/include
--libdir用于指定库文件的安装路径,--includedir用于指定头文件的安装路径。
然后: make 再make install
检查一下安装路径是否正确:发现/usr/local/lib/boost/下的文件没问题,而/usr/local/include/boost竟然不存在,安装程序生成的目录是/usr/local/include/boost-1_37/boost,于是只好:
cd /usr/local/include/boost-1_37
mv boost ..
cd ..
rm -rf boost-1_37
为保证以后每次ldconfig都可以加上boost库文件,修改/etc/ld.so.conf文件(或在/etc/ld.so.conf.d目录下增加一个文件),添加以下内容:
/usr/local/lib/boost
--libdir用于指定库文件的安装路径,--includedir用于指定头文件的安装路径。
然后: make 再make install
检查一下安装路径是否正确:发现/usr/local/lib/boost/下的文件没问题,而/usr/local/include/boost竟然不存在,安装程序生成的目录是/usr/local/include/boost-1_37/boost,于是只好:
cd /usr/local/include/boost-1_37
mv boost ..
cd ..
rm -rf boost-1_37
为保证以后每次ldconfig都可以加上boost库文件,修改/etc/ld.so.conf文件(或在/etc/ld.so.conf.d目录下增加一个文件),添加以下内容:
/usr/local/lib/boost
再运行一下ldconfig就ok了。
编译的时候会出现没有找到lboost_regex,那么就只要在/usr/lib添加一个libboost_regex.so的链接/usr/local/lib/boost/libboost_regex-gcc41-mt-1_37.so就好了。
- Deepin Linux 12.06编译boost regex库
- Boost.Regex库在linux上的编译安装,使用
- boost 1.47.0 linux/windows 编译库:regex与iostreams
- Boost.Regex库在linux上的编译安装,使用
- Deepin系统编译安装boost库
- vs2008编译 boost 1_35_0 regex 库
- linux下的Boost.Regex的编译和使用方法
- VC6.0下编译boost库的regex
- Windows下用Mingw编译Boost.Regex库
- VS2008编译boost正则表达式库Regex过程中的注意事项
- 关于boost.regex库的编译问题(C/C++)
- boost 库Regex使用
- 【Boost】regex库
- Boost库regex VS2008
- 【Boost库初探】Boost.Regex库编译、使用(32位/64位)
- VS2005(VC8)编译、配置Boost.regex
- wince下单独编译boost::regex
- boost库 -- regex正则表达式
- physx转换矩阵终于正确了,哈哈,就是TMD太累
- 制作生产yaffs映像文件的工具
- BNU 25589 ls【字符的分离与匹配——有待完善Orz】
- 两组数组之间复制容易出错地方
- xml--通过dom4j解析XML
- Deepin Linux 12.06编译boost regex库
- DICCX-5101单片机试验箱
- 证据表明:亚马逊在IaaS依然领先
- Struts2 学习笔记——struts.xml文件之Bean的配置
- ubuntu下用rename批量修改文件名
- Qt版本-塔防游戏实现一
- 【boost::smatr_ptr】scoped_ptr
- 屡试不爽--->马文和汤姆猫的暧昧
- JAVA之interface