您好我正在尝试安装ETHNOS,这是一个用于设计由不同机器人,设备和外部监控或控制站组成的实时控制系统的编程环境。 安装说明很简单: cd源码 使 make install
但是当我使用make install时它会说:
cp *.h /usr/include
cp: cannot create regular file `/usr/include/broadrx.h': Permission denied
cp: cannot create regular file `/usr/include/broadtx.h': Permission denied
cp: cannot create regular file `/usr/include/etconst.h': Permission denied
cp: cannot create regular file `/usr/include/etctlmsg.h': Permission denied
cp: cannot create regular file `/usr/include/etexpert.h': Permission denied
cp: cannot create regular file `/usr/include/etkernel.h': Permission denied
cp: cannot create regular file `/usr/include/etmasks.h': Permission denied
cp: cannot create regular file `/usr/include/etmemory.h': Permission denied
cp: cannot create regular file `/usr/include/etmsg.h': Permission denied
cp: cannot create regular file `/usr/include/etmsgbmb.h': Permission denied
cp: cannot create regular file `/usr/include/etsubsched.h': Permission denied
cp: cannot create regular file `/usr/include/ettimer.h': Permission denied
cp: cannot create regular file `/usr/include/exception.h': Permission denied
cp: cannot create regular file `/usr/include/libsock.h': Permission denied
cp: cannot create regular file `/usr/include/mastersocket.h': Permission denied
cp: cannot create regular file `/usr/include/sockexrx.h': Permission denied
cp: cannot create regular file `/usr/include/sockextx.h': Permission denied
cp: cannot create regular file `/usr/include/trace.h': Permission denied
cp: cannot create regular file `/usr/include/trace_generic.h': Permission denied
make: *** [install] Error 1
答案 0 :(得分:3)
您无权在/ usr / include中创建文件。通常这意味着您需要成为root用户。安装时,您通常需要运行make; make test; sudo make install
。 sudo运行作为超级用户(也称为root)的参数提供的命令。
答案 1 :(得分:2)
您是否尝试过以root身份运行命令?
sudo make install
答案 2 :(得分:2)
以root身份运行make install
sudo make install