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




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

2022-07-20 21:04:46 网络知识 官方管理员
[root@web1~]#peclinstallapc
downloadingAPC-3.1.9.tgz...
StartingtodownloadAPC-3.1.9.tgz(155,540bytes)
.................................done:155,540bytes
54sourcefiles,building
running:phpize
Configuringfor:
PHPApiVersion:20041225
ZendModuleApiNo:20060613
ZendExtensionApiNo:220060519
/usr/bin/phpize:/tmp/pear/temp/APC/build/shtool:/bin/sh:badinterpreter:Permissiondenied
Cannotfindautoconf.Pleasecheckyourautoconfinstallationandthe
$PHP_AUTOCONFenvironmentvariable.Then,rerunthisscript.

ERROR:`phpize'failed

Theproblemiscausedbythe/tmp/filesystembeingmountednoexec,whichkeepsanyprogramson/tmp/frombeingallowedtobeexecuted,whichbreakstheinstallscript.

Toremount/tmp/asexecutable,use:

[root@web1~]#mount-oremount,exec,suid/tmp

Theitshouldinstallcorrectly.

Aftertheinstallisdone,remountthe/tmp/filesystemwiththenoexecpermissionsreset.

[root@web1~]#mount-oremount,noexec,nosuid/tmp

发表评论:

最近发表
网站分类
标签列表