4
respostas

Erro ao executar o comando composer install

Oi pessoal,

Ao iniciar o curso de php e tentar executar o comando COMPOSER INSTALL, aparece a seguinte mensagem. Alguém já passou por algo parecido??

You are running Composer with SSL/TLS protection disabled.
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 15 installs, 0 updates, 0 removals
    Failed to download doctrine/inflector from dist: You must enable the openssl extension to download files via https
    Now trying to download from source
  - Syncing doctrine/inflector (v1.3.0) into cache
    Failed to download doctrine/lexer from dist: You must enable the openssl extension to download files via https
    Now trying to download from source
4 respostas

Outro erro que fica aparecendo é esse:

[Composer\Downloader\TransportException] curl error 60 while downloading https://repo.packagist.org/p2/doctrine/dbal.json: SSL certificate problem: unable to get local issuer certificate

a instalação pelo composer install não instala tudo, apresenta problema no certificado SSL

Rodrigo, tudo bem contigo?

Você já tentou editar o arquivo php.ini? Vá para o diretório onde esta instalado a PHP na tua máquina, abra o arquivo php.ini e procure a linha:

;extension=openssl

Remova o ponto e virgula para habilitar a extensão openssl

extension=openssl

Salve o arquivo. Depois tente novamente executar o composer install.

Fala Marco,

Cara, eu já tentei um monte de coisa, to lendo ainda várias dicas e tentando executar... Mas não vai de jeito nenhum até agora, no curso de Laravel tbm não consegui iniciar devido a alguma falha na instalação...

Tinha esquecido que php dava uns problemas assim =X

Ainda não instalou todos os pacotes...

Ele não instala todos os pacotes necessários...

Press Ctrl-C to quit. [Thu Feb 11 15:43:02 2021] PHP Fatal error: Uncaught PDOException: could not find driver in C:\Users\rodri\Projects\alura\php\iniciando-com-mvc\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:27 Stack trace:

#0 C:\Users\rodri\Projects\alura\php\iniciando-com-mvc\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php(27): PDO->__construct('sqlite:C:\Users...', NULL, NULL, Array)

#1 C:\Users\rodri\Projects\alura\php\iniciando-com-mvc\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOSqlite\Driver.php(39): Doctrine\DBAL\Driver\PDOConnection->__construct('sqlite:C:\Users...', NULL, NULL, Array)

#2 C:\Users\rodri\Projects\alura\php\iniciando-com-mvc\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php(356): Doctrine\DBAL\Driver\PDOSqlite\Driver->connect(Array, NULL, NULL, Array)

#3 C:\Users\rodri\Projects\alura\php\iniciando-com-mvc\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php(889): Doctrine\DBAL\Connection->connect()#4 C:\Users\rodri\Projects\alura\php\iniciando-com-mvc\vendor\doctrine\orm\lib\Doctrine\ORM\Persisters\En in C:\Users\rodri\Projects\alura\php\iniciando-com-mvc\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\AbstractSQLiteDriver.php on line 70 [Thu Feb 11 15:43:02 2021] [::1]:52819 [500]: /listar-cursos.php - Uncaught PDOException: could not find driver in C:\Users\rodri\Projects\alura\php\iniciando-com-mvc\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:27 Stack trace:

#0 C:\Users\rodri\Projects\alura\php\iniciando-com-mvc\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php(27): PDO->__construct('sqlite:C:\Users...', NULL, NULL, Array)

#1 C:\Users\rodri\Projects\alura\php\iniciando-com-mvc\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOSqlite\Driver.php(39): Doctrine\DBAL\Driver\PDOConnection->__construct('sqlite:C:\Users...', NULL, NULL, Array)

#2 C:\Users\rodri\Projects\alura\php\iniciando-com-mvc\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php(356): Doctrine\DBAL\Driver\PDOSqlite\Driver->connect(Array, NULL, NULL, Array)

#3 C:\Users\rodri\Projects\alura\php\iniciando-com-mvc\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php(889): Doctrine\DBAL\Connection->connect()#4 C:\Users\rodri\Projects\alura\php\iniciando-com-mvc\vendor\doctrine\orm\lib\Doctrine\ORM\Persisters\En in C:\Users\rodri\Projects\alura\php\iniciando-com-mvc\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\AbstractSQLiteDriver.php on line 70