我是设置php服务器的新手,我曾经去过其他相关帖子,似乎没有人像我一样有错误.我正在使用MAMP 2.0.2,并运行PHP 5.3.6,我试图使用以下命令在我的本地MAMP上安装oAuth:
$ cd /Applications/MAMP/bin/php/php5.3.6/bin
$ ./pecl install oauth
Run Code Online (Sandbox Code Playgroud)
但是,它会返回这样的错误:
Notice: unserialize(): Error at offset 276 of 1133 bytes in Config.php on line 1050
ERROR: The default config file is not a valid config file or is corrupted.
Run Code Online (Sandbox Code Playgroud)
怎么了?PECL捆绑在MAMP中,应该开箱即用....
更新:
我在其他地方读了一篇帖子,建议配置文件的数据,它保存安装路径是不正确的,所以我在以下文件中更改了一些值:
/Applications/MAMP/bin/php/php5.3.6/conf/pear.conf
Run Code Online (Sandbox Code Playgroud)
然后,我使用命令:
$ ./pecl install oauth
Run Code Online (Sandbox Code Playgroud)
它开始下载和解压缩,但当它尝试安装时,它给出:
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /private/tmp/pear/temp/pear-build-user1RU5EZA/oauth-1.2.2/libtool --mode=compile cc -I. -I/private/tmp/pear/temp/oauth -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-user1RU5EZA/oauth-1.2.2/include -I/private/tmp/pear/temp/pear-build-user1RU5EZA/oauth-1.2.2/main -I/private/tmp/pear/temp/oauth -I/Applications/MAMP/bin/php/php5.3.6/include/php -I/Applications/MAMP/bin/php/php5.3.6/include/php/main -I/Applications/MAMP/bin/php/php5.3.6/include/php/TSRM -I/Applications/MAMP/bin/php/php5.3.6/include/php/Zend -I/Applications/MAMP/bin/php/php5.3.6/include/php/ext …
Run Code Online (Sandbox Code Playgroud)