服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|

centos:/tmp不能运行导致的安装编译错误问题解决方法

2019-07-16 20:27服务器之家 Centos

这篇文章主要介绍了centos:/tmp不能运行导致的安装编译错误问题解决方法,需要的朋友可以参考下

[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

延伸 · 阅读

精彩推荐
  • CentosCentOS7中无法找到pci find device函数的解决方法

    CentOS7中无法找到pci find device函数的解决方法

    这篇文章介绍了CentOS7中无法找到pci_find_device函数的解决方法,希望对大家会有帮助,下面就随小编一起去看看具体的操作吧...

    互联网1402019-05-23
  • CentosVirtualBOX给CentOS建共享文件夹的方法

    VirtualBOX给CentOS建共享文件夹的方法

    今天小编为大家带来的是VirtualBOX给CentOS建共享文件夹的方法;希望可以帮助到大家,感兴趣的朋友一起去看看吧...

    CentOS之家1492019-06-18
  • Centoscentos下如何安装twemproxy?

    centos下如何安装twemproxy?

    对于centos下安装twemproxy这个问题很多朋友都不知道如何操作?今天小编将为大家分享centos安装twemproxy的方法,希望对大家会有帮助,有需要的朋友一起去看看吧...

    脚本之家4612019-06-07
  • CentosCentOS下SWAP分区建立及释放内存详解

    CentOS下SWAP分区建立及释放内存详解

    今天小编为大家带来的是CentOS下SWAP分区建立及释放内存详解;有需要的朋友可以过来看看,希望可以帮助到大家...

    centos之家3442019-06-28
  • CentosCentOS6.5基本操作常用命令详解

    CentOS6.5基本操作常用命令详解

    今天小编为大家带来的是CentOS系统基本操作常用命令详解;希望对大家会有帮助,有需要的朋友一起去看看吧...

    服务器之家3372019-06-17
  • Centoscentos修改dhcpd日志如何可以不记入系统日志?

    centos修改dhcpd日志如何可以不记入系统日志?

    一些朋友对于centos修改dhcpd日志如何可以不记入系统日志不知道如何操作?今天小编将为大家带来centos修改dhcpd日志不记入系统日志的方法,感兴趣的朋友一起去看看吧...

    centos之家4772019-06-13
  • CentosCentOS 7实现DNS+DHCP动态更新详解

    CentOS 7实现DNS+DHCP动态更新详解

    今天小编将为大家带来的是CentOS 7实现DNS+DHCP动态更新详解;希望会对大家有帮助。有需要的朋友一起去看看吧...

    CentOS之家3432019-06-02
  • CentosCentOS下添加端口的方法

    CentOS下添加端口的方法

    很多朋友不知道CentOS下如何添加端口;今天小编为大家带来的是CentOS下添加端口的方法;希望可以帮助到大家!有需要的朋友一起去看看吧...

    CentOS之家2062019-06-27