我正在从其源代码“稳定源版本 2009.11.14”安装 ntfs-3g。在“./configure”、“make”之后,我调用了“checkinstall -D make install”。此时我收到错误:
Making install in libntfs-3g
make[1]: Entering directory `/home/ting/Desktop/ntfs-3g-2009.11.14/libntfs-3g'
make[2]: Entering directory `/home/ting/Desktop/ntfs-3g-2009.11.14/libntfs-3g'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
/bin/bash ../libtool --mode=install /usr/bin/install -c 'libntfs-3g.la' '/usr/local/lib/libntfs-3g.la'
/usr/bin/install -c .libs/libntfs-3g.so.71.0.0 /usr/local/lib/libntfs-3g.so.71.0.0
(cd /usr/local/lib && { ln -s -f libntfs-3g.so.71.0.0 libntfs-3g.so.71 || { rm -f libntfs-3g.so.71 && ln -s libntfs-3g.so.71.0.0 libntfs-3g.so.71; }; })
(cd /usr/local/lib && { ln -s -f libntfs-3g.so.71.0.0 libntfs-3g.so || { rm -f libntfs-3g.so && ln -s libntfs-3g.so.71.0.0 libntfs-3g.so; }; })
/usr/bin/install -c .libs/libntfs-3g.lai /usr/local/lib/libntfs-3g.la
/usr/bin/install -c .libs/libntfs-3g.a /usr/local/lib/libntfs-3g.a
chmod 644 /usr/local/lib/libntfs-3g.a
chmod: changing permissions of `/usr/local/lib/libntfs-3g.a': No such file or directory
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/ting/Desktop/ntfs-3g-2009.11.14/libntfs-3g'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/ting/Desktop/ntfs-3g-2009.11.14/libntfs-3g'
make: *** [install-recursive] Error 1
但是运行“make install”而不是“checkinstall -D make install”是成功的。运行“make install”后,使用其生成的“/usr/local/lib/libntfs-3g.a”,“checkinstall -D make install”也会成功。我只是想知道为什么“checkinstall -D make install”本身不起作用?
感谢致敬!
答案1
我注意到 checkinstall 要求将命令放在引号中,如下所示:
checkinstall -D "make install"