为什么我在尝试使用“make”时获得拒绝权限安装什么东西? [英] Why do I get permission denied when I try use "make" to install something?
问题描述
我试图安装的东西,它给我一个错误: Permission denied
当我尝试运行 make
上面。
我不太喜欢unix / linux的通用规则,也不太喜欢用户权限。我最好的猜测是,我登录的用户没有权限运行 make
命令,但希望这是不允许我安装的。 p>
为什么我得到权限被拒绝
,我应该检查或配置以试图获得授权?
EDIT
错误讯息:
gcc -I。 -O3 -o pp-inspector pp-inspector.c
make:execvp:gcc:Permission denied
make:[pp-inspector]错误127(忽略)
gcc -I。 -O3 -c tis-vnc.c -DLIBOPENSSL -DLIBOPENSSLNEW -DLIBIDN -DHAVE_PR29_H -DLIBMYSQLCLIENT -DLIBPOSTGRES -DHAVE_MATH_H -I / usr / include / mysql
make:execvp:gcc:Permission denied
make:* ** [tis-vnc.o]错误127
在许多源代码包(例如,对于大多数GNU软件),建筑系统可以知道 DESTDIR
变量,因此您可以经常: / p>
make install DESTDIR = / tmp / myinst /
sudo cp -va / tmp / myinst / /
这种方法的优点是 make install
需要以root身份运行,因此您不能以以root身份编译的文件(或构建树中的root用户拥有的文件)结束。
I'm trying to install something and it's throwing me an error: Permission denied
when I try to run make
on it.
I'm not too fond of the universal rules of unix/linux and not too fond of user rights either. My best guess is that the user I'm logged in as does not have the privileges to run make
commands, but hopefully it's something else that's not permitting me to install.
Why do I get Permission denied
and what should I check or configure in order to attempt permission be granted?
EDIT
Error Message:
gcc -I. -O3 -o pp-inspector pp-inspector.c
make: execvp: gcc: Permission denied
make: [pp-inspector] Error 127 (ignored)
gcc -I. -O3 -c tis-vnc.c -DLIBOPENSSL -DLIBOPENSSLNEW -DLIBIDN -DHAVE_PR29_H -DLIBMYSQLCLIENT -DLIBPOSTGRES -DHAVE_MATH_H -I/usr/include/mysql
make: execvp: gcc: Permission denied
make: *** [tis-vnc.o] Error 127
On many source packages (e.g. for most GNU software), the building system may know about the DESTDIR
make variable, so you can often do:
make install DESTDIR=/tmp/myinst/
sudo cp -va /tmp/myinst/ /
The advantage of this approach is that make install
don't need to run as root, so you cannot end up with files compiled as root (or root-owned files in your build tree).
这篇关于为什么我在尝试使用“make”时获得拒绝权限安装什么东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!