xecvp:./chk:权限被拒绝

我试图在Ubuntu 10.10上安装Xen 4.0.1。 当我运行“make world”的时候,最后会出现以下错误….

make -C check clean make[4]: Entering directory `/home/hirantha/xen-4.0.1/tools/check' ./chk clean make[4]: execvp: ./chk: Permission denied make[4]: *** [clean] Error 127 make[4]: Leaving directory `/home/hirantha/xen-4.0.1/tools/check' make[3]: *** [subdir-clean-check] Error 2 make[3]: Leaving directory `/home/hirantha/xen-4.0.1/tools' make[2]: *** [subdirs-clean] Error 2 make[2]: Leaving directory `/home/hirantha/xen-4.0.1/tools' make[1]: *** [clean] Error 2 make[1]: Leaving directory `/home/hirantha/xen-4.0.1' make: *** [world] Error 2 

为什么是这样?

该线

 make[4]: execvp: ./chk: Permission denied 

似乎表明您有权限问题。 你是否将make命令作为解开分发的同一个用户运行? ls -la /home/hirantha/xen-4.0.1/tools/check/chk说什么? 我怀疑它会显示该文件是由不同的用户(而不是hirantha )拥有,它不能由hirantha执行。

您可以通过运行来解决这个问题

 cd /home/hirantha/xen-4.0.1 sudo make 

以root身份而不是hirantha运行make命令。

作为参考:我遇到了这个错误,由于尝试从NTFS分区造成的权限错误。 解开/ tmp /解决了这个问题。