码迷,mamicode.com
首页 > 其他好文 > 详细

centos 6.5 x86_64 justniffer安装

时间:2015-01-13 01:37:43      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:against   error   

  1. 下载justniffer_0.5.11.tar.gz

  2. 解压后运行./configure,提示依赖包,依次安装。其在官网上也给了依赖关系,如下


  3. patch
    tar
    autotools
    make
    libc6
    libpcap0.8
    g++                         
    gcc 
    libboost-iostreams          
    libboost-program-options
    libboost-regex

3.还要安装boost-devel

4.configure: error: Could not link against  ! 因为boost库不在标准库中

  

解决方法:来自 http://stackoverflow.com/questions/9132335/configure-error-could-not-link-against-boost-system
对于64位机:./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnu
对于32位机:./configure --with-boost-libdir=/usr/lib/i386-linux-gnu(测试可用)


另一说法:来自https://baoz.net/%E8%A7%A3%E5%86%B3configure-error-could-not-link-against-%E9%97%AE%E9%A2%98boost%E7%9B%B8%E5%85%B3/

在64位里编译boost相关程序的时候,会遇到configure: error: Could not link against  !错误。

解决方法是用–with-boost-libdir=/usr/lib64 指定库文件位置即可解决。

  

centos 6.5 x86_64 justniffer安装

标签:against   error   

原文地址:http://1992zhong.blog.51cto.com/3963309/1602599

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!