centos:/tmp不能運(yùn)行導(dǎo)致的安裝編譯錯(cuò)誤問題解決方法
發(fā)布時(shí)間:2016-08-25 19:30:04 作者:佚名
我要評(píng)論

這篇文章主要介紹了centos:/tmp不能運(yùn)行導(dǎo)致的安裝編譯錯(cuò)誤問題解決方法,需要的朋友可以參考下
[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
相關(guān)文章
如何解決centos下root運(yùn)行Elasticsearch異常
有些朋友在centos下root運(yùn)行Elasticsearch時(shí)發(fā)現(xiàn)異常;不知道該如何解決?下面小編就給大家?guī)?lái)解決centos下root運(yùn)行Elasticsearch異常的方法!有需要的朋友可以過(guò)來(lái)看看2016-11-28在CentOS下使用Munin來(lái)監(jiān)控服務(wù)器運(yùn)行的方法
這篇文章主要介紹了在CentOS下使用Munin來(lái)監(jiān)控服務(wù)器運(yùn)行的方法,Munin支持Nginx和Apache等服務(wù)器軟件,需要的朋友可以參考下2015-06-26在CentOS或Fedora上運(yùn)行Docker容器的方法與步驟
最近,炙手可熱Docker已儼然成為將應(yīng)用程序部署到云環(huán)境的一種關(guān)鍵技術(shù),在本教程中,我將介紹如何在CentOS或Fedora上創(chuàng)建和管理Docker容器,需要的朋友可以參考一下2014-10-15CentOS進(jìn)程和計(jì)劃任務(wù)管理的詳解
今天小編為大家?guī)?lái)的是CentOS進(jìn)程和計(jì)劃任務(wù)管理的詳解;希望會(huì)對(duì)大家有幫助;有需要的朋友可以過(guò)來(lái)看看2016-12-13Centos下如何為進(jìn)程綁定CPU?Centos下為進(jìn)程綁定CPU的方法
一些朋友還不知道Centos下如何為進(jìn)程綁定CPU?下面小編就為大家?guī)?lái)Centos下為進(jìn)程綁定CPU的方法;一起去看看吧2016-12-13- 今天,小編為大家分享的是Centos進(jìn)程狀態(tài)詳解;希望對(duì)大家的學(xué)習(xí)會(huì)有幫助;有需要的朋友可以過(guò)來(lái)看看2016-12-07
- 今天小編為大家?guī)?lái)的是CentOS下ACL權(quán)限控制詳解;希望對(duì)大家會(huì)有幫助,有需要的朋友一起去看看吧2016-12-16
CentOS系統(tǒng)上搭建Git版本控制服務(wù)器的教程
這篇文章主要介紹了CentOS系統(tǒng)上搭建Git版本控制服務(wù)器的教程,包括創(chuàng)建SSH key以及打開RSA認(rèn)證等遠(yuǎn)程連接的相關(guān)配置方法講解,需要的朋友可以參考下2016-04-26在CentOS系統(tǒng)中安裝SVN版本控制軟件的教程
這篇文章主要介紹了在CentOS系統(tǒng)中安裝SVN版本控制軟件的教程,盡管近年來(lái)被Git搶盡風(fēng)頭,但SVN簡(jiǎn)便的操作方式依然受到很多開發(fā)者的青睞,需要的朋友可以參考下2016-03-31CentOS系統(tǒng)安裝使用版本控制系統(tǒng)Subversion的方法
subversion是一個(gè)版本控制系統(tǒng),在CentOS系統(tǒng)中要如何使用subversion,下面為大家介紹下CentOS安裝使用subversion的方法,感興趣的朋友可以看看2015-03-31