我正在尝试在 Linux 上安装 PECL 包,但安装程序永远不会超过配置阶段。
我的托管服务提供商在 /var/tmp 上安装了一个文件系统,阻止文件执行,这导致了这个错误:
root@host [/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 在非默认文件夹中构建?