您现在的位置是:网站首页> 编程资料编程资料
centos:/tmp不能运行导致的安装编译错误问题解决方法_RedHat/Centos_操作系统_
2024-02-28
194人已围观
简介 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_操作系统_
- 幻想神域手游战弓怎么玩 战弓技能连招及玩法介绍_手机游戏_游戏攻略_
- 第五人格魔术师怎么快速上分 第五人格魔术师快速上分技巧介绍_手机游戏_游戏攻略_
- 烈火如歌手游五大职业是什么 烈火如歌手游五大职业全面介绍_手机游戏_游戏攻略_
- 幻想神域手游小竖琴怎么玩 小竖琴技能连招及玩法介绍_手机游戏_游戏攻略_
- 第五人格花屏问题怎么解决 第五人格花屏解决办法分享_手机游戏_游戏攻略_
- 幻想神域手游太刀怎么玩 太刀技能连招及玩法介绍_手机游戏_游戏攻略_
