为了实现 Leach 协议,我需要安装 ns-allinone 2.34。我按照所有安装步骤操作后,./install
在终端中输入以下内容,结果如下:
Warning: tclStubInit.c may be out of date.
Developers may want to run "make genstubs" to regenerate.
This warning can be safely ignored, do not report as a bug!
Installing libtcl8.4.a to /home/rain/ns-allinone-2.34/lib/
cp: cannot create regular file '/home/rain/ns-allinone-2.34/lib/#inst.6373#': Permission denied
rm: cannot remove '/home/rain/ns-allinone-2.34/lib/libtcl8.4.a': Permission denied
mv: cannot stat '/home/rain/ns-allinone-2.34/lib/#inst.6373#': No such file or directory
ranlib: could not create temporary file whilst writing archive: No more archived files
make: *** [install-binaries] Error 1
tcl8.4.18 installation failed.
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
即使我进入“ns”结果:command not found
。
答案1
看起来包含“cp:无法创建常规文件”的行可能试图创建一个包含非法字符的文件名。我认为数字符号和冒号(# 和 :)不能同时用于文件名,而且看起来名称中的空格也可能会造成问题。如果可以通过某种安装配置来替代使用此文件名,我会先尝试一下。