我必须使用makefile编译ctorrent,但是我总是有相同的错误:
make[1]: Entering directory `/home/g507565/Downloads/ctorrent-dnh3.3.2'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/usr/bin/install -c 'ctorrent' '/usr/local/bin/ctorrent'
/usr/bin/install: cannot create regular file `/usr/local/bin/ctorrent': Permission denied
make[1]: *** [install-binPROGRAMS] Error 1
make[1]: Leaving directory `/home/g507565/Downloads/ctorrent-dnh3.3.2'
make: *** [install-am] Error 2
我不知道怎么做。有什么帮助吗。
发布于 2014-03-26 08:41:19
除非您对要安装的特定版本的ctorrent有问题,否则请打开终端并键入:
sudo apt-get install ctorrent
有关使用ctorrent的更多信息,请访问此链接。
否则,关于您的错误消息,如果使用sudo
,是否在make install
命令之前使用make install
?我搜索了互联网,找到了一个名为ctorrent-dnh3.3.2.tar.gz的文件,并在名为INSTALL的文件中找到了安装说明。安装文件中包含make install
命令,因此建议您在下载的文件中查找安装文件,然后在文本编辑器中打开安装文件并阅读安装说明。
发布于 2014-03-26 09:30:36
/usr/bin/install: cannot create regular file `/usr/local/bin/ctorrent': Permission denied
这表明您没有创建文件/usr/local/bin/ctorrent的权限
正如卡雷尔所写的,您很可能将作为普通用户使用。
所以要么使用sudo,要么用“前缀”值更改安装位置。
https://askubuntu.com/questions/439360
复制相似问题