我在RHEL 6.2上安装snort
我正在尝试安装DAQ。
我正在运行
make install
并低于错误:
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):对.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: relink
daq_ipq.la'重新定位R_X86_64_32
安装之前的上述命令
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: * [install-recursive]错误1
请帮忙
答案 0 :(得分: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
答案 1 :(得分:-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