-1

您好我正在尝试安装 ETHNOS,这是一个用于设计由不同机器人、设备和外部监督或控制站组成的实时控制系统的编程环境。安装说明很简单: cd source make 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
4

3 回答 3

3

您无权在 /usr/include 中创建文件。通常这意味着您需要成为 root。安装时通常需要运行make; make test; sudo make install. sudo 以超级用户(又名 root)的身份运行作为其参数提供的命令。

于 2013-03-13T11:26:15.213 回答
2

您是否尝试过以 root 身份运行该命令?

sudo make install

于 2013-03-13T11:25:09.967 回答
2

以 root 身份运行 make install

须藤使安装

于 2013-03-13T11:25:15.203 回答