解決Package fuse was not found in the pkg-config search path.
阿新 • • 發佈:2019-02-19
gcc -Wall `pkg-config fuse --cflags --libs` -D_FILE_OFFSET_BITS=64 fusexmp.c -o fusexmp
Package fuse was not found in the pkg-config search path.
Perhaps you should add the directory containing `fuse.pc'to the PKG_CONFIG_PATH environment variable
No package 'fuse' found
/tmp/ccPbq501.o: In function `main':
fusexmp.c:(.text+0x73b): undefined reference to `fuse_main_real'
collect2: ld 返回 1
解決辦法:
1)拷貝缺失庫檔案到/usr/lib/pkgconfig路徑下,未指定安裝目錄
cp /usr/local/lib/pkgconfig/fuse.pc /usr/lib/pkgconfig/
參考連結:http://blog.sina.com.cn/s/blog_77ed43e301018iuu.html
結果:未解決
2)解除安裝fuse重新編譯安裝,安裝到指定目錄/usr下
參考連結:http://www.cnblogs.com/dengke/archive/2010/02/15/1668325.html
結果:未解決
3) 匯入 PKG_CONFIG_PATH(在2)的前提下)
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/:/usr/local/lib/pkgconfig/
ldconfig
參考連結:http://www.linuxquestions.org/questions/linux-software-2/pkg_config_path-environment-variable-129278/
結果:已解決
fuse使用:
http://blog.csdn.net/langeldep/article/details/6221112