尝试安装 jpeg 库时,sudo make install 说无法创建目录或文件

尝试安装 jpeg 库时,sudo make install 说无法创建目录或文件

我成功运行了 ./configure 脚本。然后 make 成功运行(尽管我必须手动编辑 Makefile 以删除 libtool 之前的 ./。然后 make 测试通过,sudo make -n install 没有问题,但 sudo make install 说

/usr/bin/install -c -m 644 jconfig.h /home/skh/jpeg/include/jconfig.h
/usr/bin/install: cannot create regular file '/home/skh/jpeg/include/jconfig.h': No such file or directory
Makefile:209: recipe for target 'install-headers' failed"
The jconfig.h file exists in the working directory.

相关内容