Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
php composer.phar安装时出错_Php_Debian_Rabbitmq_Composer Php_Autoload - Fatal编程技术网

php composer.phar安装时出错

php composer.phar安装时出错,php,debian,rabbitmq,composer-php,autoload,Php,Debian,Rabbitmq,Composer Php,Autoload,我不熟悉php和rabbitmq。在Debian中,我在/bin direcoty中安装了composer.phar。现在我想运行下面的命令来获取本地项目定义的依赖项 php composer.phar install 但它使用红色背景抛出错误消息,如下所示 [Composer\Downloader\TransportException] The "https://packagist.org/packages.j

我不熟悉php和rabbitmq。在Debian中,我在/bin direcoty中安装了composer.phar。现在我想运行下面的命令来获取本地项目定义的依赖项

php composer.phar install
但它使用红色背景抛出错误消息,如下所示

  [Composer\Downloader\TransportException]                                     
  The "https://packagist.org/packages.json" file could not be downloaded: SSL  
   operation failed with code 1. OpenSSL Error messages:                       
  error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify   
  failed                                                                       
  Failed to enable crypto                                                      
  failed to open stream: operation failed  
请帮忙做什么? 在php.ini中启用openSSL时,会抛出以下警告

Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0

您必须启用openssl,否则无法建立ssl连接

如果已经安装了php.ini,则可以在php.ini中执行此操作。否则你必须先安装它


也许作为另一种解决方案,可以使用openssl安装php5 cli版本,而不使用LAMP堆栈。您可以使用apt get install php5 cli php5 openssl安装该命令。然后您应该使用内部包,它应该可以工作

谢谢你的回复,但是我正在使用Debian。我按照您的建议做了,并重新运行了命令,我发现了以下警告:警告:PHP启动:无法加载动态库“/opt/lampp/lib/PHP/extensions/no-debug-non-zts-20131226/PHP_openssl.dll”-/opt/lampp/lib/PHP/extensions/no-debug-non-zts-20131226/PHP_openssl.dll:无法打开共享对象文件:没有这样的文件或第0行中的未知目录是否将debian与lampp一起使用????为什么?你有这个星球上最好的仓库之一。你为什么不从那里安装PHP?那容易多了
apt get install php5 openssl
,通常默认安装。我发布了另一个解决方案。