如何在Fedora 26上安装auparse库?
$ gcc -lauparse me.c
/usr/bin/ld: cannot find -lauparse
我尝试了很多东西,包括这些。
$ sudo find / -name *auparse.so
/usr/lib64/python3.6/site-packages/auparse.so
$ export LD_LIBRARY_PATH=/usr/lib64/python3.6/site-packages/
didnt help :{
sudo ln -s /usr/lib64/python3.6/site-packages/auparse.so /usr/lib/gcc/x86_64-redhat-linux/7/auparse.so
didnt help :{
$ pkg-config --libs auparse
Package auparse was not found in the pkg-config search path.
我非常感谢帮助。
答案 0 :(得分:1)
您需要audit-libs-devel
。以下是我发现的方式:
$ sudo dnf install /usr/lib64/libauparse.so
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
audit-libs-devel x86_64 2.7.7-1.fc26 updates-testing 81 k
一般来说:
/usr/lib64
。-lsomething
表示要查找/usr/lib64/libsomething.so
audit-libs
,然后是一个devel包(audit-libs-devel
),它包含.so
符号链接,通常是头文件和东西