您现在的位置是:网站首页> 编程资料编程资料
centos:/tmp不能运行导致的安装编译错误问题解决方法_RedHat/Centos_操作系统_
2023-03-24
729人已围观
简介 centos:/tmp不能运行导致的安装编译错误问题解决方法_RedHat/Centos_操作系统_
[root@web1 ~]# pecl install apc
downloading APC-3.1.9.tgz ...
Starting to download APC-3.1.9.tgz (155,540 bytes)
.................................done: 155,540 bytes
54 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
/usr/bin/phpize: /tmp/pear/temp/APC/build/shtool: /bin/sh: bad interpreter: Permission denied
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
ERROR: `phpize' failed
The problem is caused by the /tmp/ filesystem being mounted noexec, which keeps any programs on /tmp/ from being allowed to be executed, which breaks the install script.
To remount /tmp/ as executable, use:
[root@web1 ~]# mount -o remount,exec,suid /tmp
The it should install correctly.
After the install is done, remount the /tmp/ filesystem with the noexec permissions reset.
[root@web1 ~]# mount -o remount,noexec,nosuid /tmp
downloading APC-3.1.9.tgz ...
Starting to download APC-3.1.9.tgz (155,540 bytes)
.................................done: 155,540 bytes
54 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
/usr/bin/phpize: /tmp/pear/temp/APC/build/shtool: /bin/sh: bad interpreter: Permission denied
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
ERROR: `phpize' failed
The problem is caused by the /tmp/ filesystem being mounted noexec, which keeps any programs on /tmp/ from being allowed to be executed, which breaks the install script.
To remount /tmp/ as executable, use:
[root@web1 ~]# mount -o remount,exec,suid /tmp
The it should install correctly.
After the install is done, remount the /tmp/ filesystem with the noexec permissions reset.
[root@web1 ~]# mount -o remount,noexec,nosuid /tmp
相关内容
- CentOS6.8下非图形界面如何配置IP?非图形界面配置IP的教程_RedHat/Centos_操作系统_
- CentOS 常用系统命令_RedHat/Centos_操作系统_
- CentOS系统修改网卡em1为eth0的方法_RedHat/Centos_操作系统_
- CentOS7如何设置交换文件?CentOS7设置交换文件的方法_RedHat/Centos_操作系统_
- centos 安装与操作方法_RedHat/Centos_操作系统_
- RedHat服务器网卡阵列配置攻略_RedHat/Centos_操作系统_
- CentOS7扩展根目录空间操作步骤_RedHat/Centos_操作系统_
- 详解centos复制克隆改网卡_RedHat/Centos_操作系统_
- CentOS下安装使用FTP服务器端程序ProFTPd的教程_RedHat/Centos_操作系统_
- CentOS双向免密码登录教程_RedHat/Centos_操作系统_
