CentOS 6.9 版(最终版):Linux 版本 2.6.32-696.10.2.el6.i686 (mockbuild@c1bl.rdu2.centos.org) (gcc 版本 4.4.7 20120313 (Red Hat 4.4.7 -18) (GCC) ) #1 SMP 2017 年 9 月 12 日星期二 13:54:13 UTC
安装命令:
wget https://www.python.org/ftp/python/3.5.4/Python-3.5.4.tgz tar -zxvf Python-3.5.4.tgz CD Python-3.5.4 mkdir/usr/local/python3.5 ./configure --prefix=/usr/local/python3.5
错误步骤:
制作
gcc -pthread -c -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Werror=declaration-after-statement -I. -I./包括-DPy_BUILD_CORE\ -DGITVERSION="\"
LC_ALL=C\""\ -DGITTAG="\"
LC_ALL=C\""\ -DGITBRANCH="\"
LC_ALL=C\""\ -o 模块/getbuildinfo.o ./Modules/getbuildinfo.c /bin/sh:/usr/bin/gcc: 权限被拒绝 make: *** [Modules/getbuildinfo.o] 错误 126
/bin/sh 和/usr/bin/gcc 的强大功能
[root@iZ2814clj1uZ Python-3.5.4]# ll/bin/sh lrwxrwxrwx 1 root root 4 May 11 2017/bin/sh -> bash [root@iZ2814clj1uZ Python-3.5.4]# ll/bin/bash -rwxr-xr-x 1 root root 872372 2017 年 3 月 23 日/bin/bash [root@iZ2814clj1uZ Python-3.5.4]# ll/usr/bin/gcc -rwxr-xr-x 2 root root 234948 2017 年 3 月 22 日/usr/bin/gcc
我试过 chmod 777/bin/sh 、/bin/bash 、/usr/bin/gcc 并重新启动系统,但它不起作用。还有其他人有这个问题吗? 感谢您提供任何帮助/建议。
2017-11-13 更新:selinux 审计日志
type=USER_AUTH msg=audit(1510502012.108:840): 用户 pid=4273 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:authentication acct="root"exe="/usr/sbin/sshd"hostname=[ip address1] addr=[ip address1] terminal=ssh res=success'
type=USER_ACCT msg=audit(1510502012.108:841): 用户 pid=4273 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:accounting acct="root"exe="/usr/sbin/sshd"hostname= [ip address1] addr=[ip address1] terminal=ssh res=success'
type=CRYPTO_KEY_USER msg=audit(1510502012.108:842): user pid=4273 uid=0 auid=4294967295 ses=4294967295 msg='op=destroy kind=session fp=? direction=both spid=4274 suid=74 rport=31432 laddr=[ip 地址] lport=5676 exe="/usr/sbin/sshd"hostname=?地址=[ip地址1]终端=?资源=成功'
type=USER_AUTH msg=audit(1510502012.108:843): 用户 pid=4273 uid=0 auid=4294967295 ses=4294967295 msg='op=success acct="root"exe="/usr/sbin/sshd"hostname=?地址=[ip地址1]终端=ssh res=成功'
type=CRED_ACQ msg=audit(1510502012.109:844): user pid=4273 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred acct="root"exe="/usr/sbin/sshd"hostname= [ip address1] addr=[ip address1] terminal=ssh res=success'
type=LOGIN msg=audit(1510502012.109:845): pid=4273 uid=0 old auid=4294967295 new auid=0 old ses=4294967295 new ses=106
type=USER_START msg=audit(1510502012.111:846): user pid=4273 uid=0 auid=0 ses=106 msg='op=PAM:session_open acct="root"exe="/usr/sbin/sshd"hostname= [ip address1] addr=[ip address1] terminal=ssh res=success'
type=USER_LOGIN msg=audit(1510502012.189:847): user pid=4273 uid=0 auid=0 ses=106 msg='op=login id=0 exe="/usr/sbin/sshd"hostname=[ip address1] addr=[ip address1] terminal=ssh res=success
最佳答案
今天,我找到了答案。我安装了一个安全软件,禁止在系统目录下创建和执行二进制文件。所以我卸载了它,我的系统恢复正常。
关于python - Centos6.9安装python3.5 make后显示error permission denied,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47248056/