我試圖在Linux上安裝PECL包,但安裝程序永遠不會超過配置階段。如何從/ var/tmp中更改默認的Pear/PECL構建文件夾?
我的託管服務提供商安裝的文件系統位於/ var/tmp中防止文件執行,這是造成此錯誤:
[email protected] [/usr/local/apache/conf/includes]# pecl install pdo
downloading PDO-1.0.3.tgz ...
Starting to download PDO-1.0.3.tgz (52,613 bytes)
.............done: 52,613 bytes
12 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
building in /var/tmp/pear-build-root/PDO-1.0.3
running: /root/tmp/pear/PDO/configure
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
ERROR: `/root/tmp/pear/PDO/configure' failed
我99%肯定的問題是,你不能執行/ var/tmp中的文件(我在這裏複製了一個可執行文件並試圖驗證)。我確信如果我在其他地方完成它的構建工作,我就可以完成PECL,但是我找不到合適的配置設置。
你如何告訴PECL建立一個非默認文件夾?
安裝/ tmp(或鏈接到它的那個)作爲noexec是錯誤的安全感。 'cd〜&&/bin/sh -c/tmp/badcode'。 ..太多的主機僱傭管理員,無論Google說什麼。 –
2010-06-22 21:41:02