我正在尝试编译一个 C 程序,它告诉我
user@cu-cs-vm:~/Downloads/pa5$ make
gcc -c -g -Wall -Wextra `pkg-config fuse --cflags` fusehello.c
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
fusehello.c:21:18: fatal error: fuse.h: No such file or directory
compilation terminated.
当我尝试安装保险丝时,它只是告诉我它已经安装了。
sudo apt-get install fuse
我进去一看usr/lib/pkgconfig
,fuse.pc
没发现。它应该在那里吗?
答案1
我不知道您使用的是哪个发行版,但您可能需要安装libfuse-dev
.保险丝头文件丢失。