Php Pear远程安装";错误:远程安装需要任何一个选项;remoteconfig";设置或使用远程配置变量;

Php Pear远程安装";错误:远程安装需要任何一个选项;remoteconfig";设置或使用远程配置变量;,php,pear,Php,Pear,我正在本地服务器上设置PHP和Pear远程安装 按照此处的说明: 我已经用这个“设置”了远程配置,显然用我的FTP详细信息替换了详细信息 $ pear -c remote.conf config-set remote_config \ ftp://user:pass@myremotehost.com/.pearrc remote.conf a:13:{s:7:“php_dir”s:25:“/home/bentstuart/pear/php”;s:8:“data_dir”s:26:“/h

我正在本地服务器上设置PHP和Pear远程安装

按照此处的说明:

我已经用这个“设置”了远程配置,显然用我的FTP详细信息替换了详细信息

$ pear -c remote.conf config-set remote_config \
    ftp://user:pass@myremotehost.com/.pearrc
remote.conf

a:13:{s:7:“php_dir”s:25:“/home/bentstuart/pear/php”;s:8:“data_dir”s:26:“/home/bentstuart/pear/data”;s:7:“www_dir”s:25:“/home/bentstuart/pear/cfg”;s:7:“ext_dir”s:25:“/home/bentstuart/pear/ext”;s:7:“doc_dir”s:26:“/home/bentstuart/pear/pear/docs:”;s:27:“/bentstuart/pear/s:tests:tests:”;s:9:home:s:s:“cache_dir”s:27:“/home/bentstuart/pear/cache”s:12:“download_dir”s:30:“/home/bentstuart/pear/download”;s:8:“temp_dir”s:26:“/home/bentstuart/pear/temp”;s:7:“bin_dir”s:21:“/home/bentstuart/pear”s:10:“s:10:”;a:3:{s:12:“pecl.php.net”;a:0:{s:5:{uri”;a:0:{:0:{:s:11:“doc:php:”doc.net:{:s:{:IGZ0CDOVL3VZZXI6MTGNDC2MF9HZG1PBKB3AWTPCHJVMVJDC5TexByZXNZB25SAW5LLMNVBS9WZWFYLY5WZWFYCMM=“;”

然后通过终端
pear远程安装

我得到:

错误:远程安装要求选择“remoteconfig”选项之一 设置或使用远程配置变量

正如您所看到的,remote.conf已经配置好了,也许remote.conf需要放在pear查找它的特定文件夹中?关于远程安装的文档非常少

我很高兴收到任何成功安装pears remote install软件包的人的来信


我这样做显然是因为我没有SSH访问权限,需要pear软件包。

尝试将远程配置传递给install命令:

$ pear -c remote.conf remote-install ....