0

我在 RHEL 6.2 上安装 snort

我正在尝试安装 DAQ。

我在跑步

进行安装

并得到以下错误:

RCE -module -export-dynamic -avoid-version -shared -L/usr/lib -ldnet -o daq_ipq.la -rpath /usr/local/lib/daq daq_ipq_la-daq_ipq.lo -lipq -L/usr/lib - ldnet ../sfbpf/libsfbpf.la ) libtool: relink: gcc -shared .libs/daq_ipq_la-daq_ipq.o -Wl,-rpath -Wl,/usr/local/lib -L/usr/lib -lipq -ldnet - l/usr/local/lib -lsfbpf -Wl,-soname -Wl,daq_ipq.so -o .libs/daq_ipq.so /usr/bin/ld: /usr/lib/libdnet.a(addr.o): 重定位R_X86_64_32 针对.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/lib/libdnet.a: could not read symbols: Bad value collect2: ld returned 1 exit status libtool: install: error: relinkdaq_ipq.la' 在安装之前使用上述命令 make[2]: * [install-pkglibLTLIBRARIES] 错误 1

make[2]: 离开目录`/usr/daq-0.6.2/os-daq-modules'

make[1]: * [install-am] 错误 2

make[1]: 离开目录`/usr/daq-0.6.2/os-daq-modules'

make: * [安装递归] 错误 1

请帮忙

4

2 回答 2

1

在此之后,它起作用了:

    $tar zxvf /root/snort-packages/libdnet-1.12.tgz
    $cd libdnet-1.12
    $ ./configure "CFLAGS=-fPIC -g -O2" --prefix=/usr
    $make
    $make install
    $ yum install libdnet-devel
    $ locate libdnet
    $ ln -s libdnet.1 libdnet.so.1
    $ cp /usr/lib64/libdnet.so.1 /usr/local/lib/libdnet.so.1
于 2012-06-17T17:16:14.583 回答
-2

试试这个:

$tar zxvf /root/snort-packages/libdnet-1.12.tgz
$cd libdnet-1.12
$ ./configure "CFLAGS=-fPIC -g -O2" --prefix=/usr
$make
$make install
$ yum install libdnet-devel
$ locate libdnet
$ ln -s libdnet.1 libdnet.so.1
$ cp /usr/lib64/libdnet.so.1 /usr/local/lib/libdnet.so.1
于 2014-04-17T05:55:20.853 回答