脚本宝典收集整理的这篇文章主要介绍了php – pecl install pecl_http没有提供任何版本,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
$pecl install pecl_http No releases available for package "pecl.PHP.net/pecl_http" install Failed
我究竟做错了什么?
编辑:Pecl配置
Configuration (channel pecl.PHP.net): ===================================== Auto-discover new Channels auto_discover <not set> Default Channel default_channel pecl.PHP.net HTTP Proxy Server Address http_proxy <not set> PEAR server [DEPRECATED] master_server pear.PHP.net Default Channel Mirror preferred_mirror pecl.PHP.net Remote Configuration File remote_config <not set> PEAR executables directory bin_dir /usr/local/bin PEAR documentation directory doc_dir /usr/local/lib/PHP/doc PHP extension directory ext_dir ./ PEAR directory PHP_dir /usr/local/lib/PHP PEAR Installer cache directory cache_dir /tmp/pear/cache PEAR configuration file CFg_dir /usr/local/lib/PHP/cfg directory PEAR data directory data_dir /usr/local/lib/PHP/data PEAR Installer download download_dir /tmp/pear/download directory PHP CLI/CGI binary PHP_bin /usr/local/bin/PHP PHP.ini location PHP_ini <not set> --program-prefix passed to PHP_prefix <not set> PHP's ./configure --program-suffix passed to PHP_suffix <not set> PHP's ./configure PEAR Installer temp directory temp_dir /tmp/pear/temp PEAR test directory test_dir /usr/local/lib/PHP/test PEAR www files directory www_dir /usr/local/lib/PHP/htdocs Cache TimeToLive cache_TTL 3600 Preferred Package state preferred_state stable Unix file mask umask 22 Debug LOG Level verbose 1 PEAR password (for password <not set> maintainers) Signature Handling Program sig_bin /usr/bin/gpg Signature Key Directory sig_keydir /usr/local/etc/pearkeys Signature Key Id sig_keyid <not set> Package Signature Type sig_type gpg PEAR username (for username <not set> maintainers) User Configuration File Filename /home/onsboek/.pearrc System Configuration File Filename /usr/local/etc/pear.conf
file:/usr/local/lib/PHP/PEAR/REST.PHP
行~405
$request .= "AcceptEncoding:\r\n"; //<---original line $request .= "AcceptEncoding: \r\n"; //<--changed to this (added space)
…或简单的脚本可以执行更改:
#!/usr/bin/env bash target=`pecl config-get PHP_dir`/PEAR/REST.PHP [ -f "$target" ] || { echo file $target not found; exIT; } sed -i 's/Accept-Encoding:\\r\\n/AcceptEncoding: \\r\\n/g' $target
以上是脚本宝典为你收集整理的php – pecl install pecl_http没有提供任何版本全部内容,希望文章能够帮你解决php – pecl install pecl_http没有提供任何版本所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。