/ usr / local / lib:文件无法识别:是目录

时间:2015-04-27 12:20:28

标签: centos6 justniffer

在CentOS 6.5上安装justniffer时,

./configure

工作正常,但make出现以下错误:

libtool: link: g++ -g -O2 -o justniffer justniffer-main.o justniffer-formatter.o justniffer-utilities.o justniffer-regex.o justniffer-prog_read_file.o /usr/local/lib  -L/root/justniffer/lib/libnids-1.21_patched/src -lnids2 -lpcap -L/usr/local/lib -lboost_regex-mt -lboost_program_options -lpython2.6
/usr/local/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
make[1]: *** [justniffer] Error 1
make[1]: Leaving directory `/root/justniffer/src'
make: *** [all-recursive] Error 1

解决方案是什么?

3 个答案:

答案 0 :(得分:1)

使用./configure LIBS="-I /usr/local/include -L/usr/local/lib",然后make,它的工作!

答案 1 :(得分:0)

没有编译程序很长时间,犯了同样的愚蠢错误:

  • LIBS一样,GTK_LIBS-Lpath等应为标志,例如LIBS="-L'c/program files/gtk+/lib'",而不是裸路径。我过去做的是将所有DIR重新定位到CFLAGS = / I / L另一种方式
  • 应引用或转发空格,如LIBS="-Lc/program\ files/gtk+/lib" import UIKit class ViewController: UIViewController { @IBOutlet var label: UILabel! override func viewDidLoad() { super.viewDidLoad() test().runTest() } func print() { label.text = "test123" } }

答案 2 :(得分:-2)

vi Makefile和src / Makefile

LIBS = -pthread -lm -lz -ldl -lutil

make& make install

成功!