IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Symfony PHP Discussion :

Impossible d'installer Composer


Sujet :

Symfony PHP

  1. #1
    Membre du Club
    Homme Profil pro
    Etudiant
    Inscrit en
    Novembre 2015
    Messages
    156
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 33
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Etudiant

    Informations forums :
    Inscription : Novembre 2015
    Messages : 156
    Points : 52
    Points
    52
    Par défaut Impossible d'installer Composer
    Bonjour !

    J'ai essayé d'installer Composer avec cette commande dans /var/www/ et dans le répertoire racine mais rien n(y fait j'ai toujours le même message d'erreur :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    :/var/www$ curl -s https://getcomposer.org/installer | php
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_openssl.dll' - /usr/lib/php/20151012/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
    Je ne sais pas pourquoi je ne suis pas capable d'accéder à cette librairie dynamique. En plus on m'a dit que .dll c'était pour windows.

    J'utilise PHP 7.0.15-0ubuntu0.16.04.4 (cli) ( NTS ) comme version :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    $php -v
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_openssl.dll' - /usr/lib/php/20151012/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP 7.0.15-0ubuntu0.16.04.4 (cli) ( NTS )
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
        with Zend OPcache v7.0.15-0ubuntu0.16.04.4, Copyright (c) 1999-2017, by Zend Technologies
    J'ai essayé de suivre l'installation donnée par le cours de developpez.com comme alternative mais même en utilisant une commande différente j'ai toujours le même problème :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    $ curl -sS https://getcomposer.org/installer | php
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_openssl.dll' - /usr/lib/php/20151012/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
    curl: (77) error setting certificate verify locations:
      CAfile: /etc/pki/tls/certs/ca-bundle.crt
      CApath: none

    A cause de ça je ne peux pas aller plus loin dans le cours pour le moment.

  2. #2
    Membre averti
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Août 2011
    Messages
    754
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 30
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Août 2011
    Messages : 754
    Points : 376
    Points
    376
    Par défaut
    Salut,

    Pour ma part je l'ai installé avec la commande suivante:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    php -r "eval('?>'.file_get_contents('http://getcomposer.org/installer'));"

  3. #3
    Membre du Club
    Homme Profil pro
    Etudiant
    Inscrit en
    Novembre 2015
    Messages
    156
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 33
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Etudiant

    Informations forums :
    Inscription : Novembre 2015
    Messages : 156
    Points : 52
    Points
    52
    Par défaut
    Dac, merci !

    (Juste pour préciser, je suis sur Ubuntu 16.04)

    l'installation semble se aire mais toujours avec le même message de warning :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    php -r "eval('?>'.file_get_contents('http://getcomposer.org/installer'));"
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_openssl.dll' - /usr/lib/php/20151012/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
    All settings correct for using Composer
    Downloading...
     
    Composer (version 1.4.1) successfully installed to: /home/antoine/composer.phar
    Use it: php composer.phar
    Je l'ai installé dans le home, mais aussi dans var/www/.

    Ensuite j'ai essay de télécharger un bundle : doctrine-fixtures-bundle version 2.3.0. En suivant le tutoriel j'ai modifié composer.json en rajoutant :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    "require": {
     
      "php": ">=5.5.9",
     
      // …
     
      "incenteev/composer-parameter-handler": "~2.0",
     
      "doctrine/doctrine-fixtures-bundle": "~2.3"
     
    },
    Puis j'ai fait la mise à jour :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    :/var/www/test$ php ../composer.phar update
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_openssl.dll' - /usr/lib/php/20151012/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Package operations: 37 installs, 0 updates, 0 removals
      - Installing doctrine/lexer (v1.0.1): Downloading (100%)         
      - Installing doctrine/inflector (v1.1.0): Downloading (100%)         
      - Installing doctrine/collections (v1.4.0): Downloading (100%)         
      - Installing doctrine/cache (v1.6.1): Downloading (100%)         
      - Installing doctrine/annotations (v1.4.0): Downloading (100%)         
      - Installing doctrine/common (v2.7.2): Downloading (100%)         
      - Installing doctrine/data-fixtures (v1.2.2): Downloading (100%)         
      - Installing symfony/polyfill-util (v1.3.0): Downloading (100%)         
      - Installing symfony/polyfill-php56 (v1.3.0): Downloading (100%)         
      - Installing symfony/security-core (v3.2.7): Downloading (100%)         
      - Installing paragonie/random_compat (v2.0.10): Downloading (100%)         
      - Installing symfony/polyfill-php70 (v1.3.0): Downloading (100%)         
      - Installing psr/log (1.0.2): Downloading (100%)         
      - Installing symfony/debug (v3.2.7): Downloading (100%)         
      - Installing symfony/http-foundation (v3.2.7): Downloading (100%)         
      - Installing symfony/event-dispatcher (v3.2.7): Downloading (100%)         
      - Installing symfony/doctrine-bridge (v3.2.7): Downloading (100%)         
      - Installing doctrine/doctrine-cache-bundle (1.3.0): Downloading (connecting..Downloading (100%)         
      - Installing jdorn/sql-formatter (v1.2.17): Downloading (100%)         
      - Installing doctrine/dbal (v2.5.12): Downloading (100%)         
      - Installing symfony/console (v3.2.7): Downloading (100%)         
      - Installing symfony/stopwatch (v3.2.7): Downloading (100%)         
      - Installing symfony/security-csrf (v3.2.7): Downloading (100%)         
      - Installing symfony/routing (v3.2.7): Downloading (100%)         
      - Installing symfony/http-kernel (v3.2.7): Downloading (100%)         
      - Installing symfony/finder (v3.2.7): Downloading (100%)         
      - Installing symfony/filesystem (v3.2.7): Downloading (100%)         
      - Installing symfony/dependency-injection (v3.2.7): Downloading (connecting...Downloading (100%)         
      - Installing symfony/config (v3.2.7): Downloading (100%)         
      - Installing symfony/class-loader (v3.2.7): Downloading (100%)         
      - Installing psr/cache (1.0.1): Downloading (100%)         
      - Installing symfony/cache (v3.2.7): Downloading (100%)         
      - Installing symfony/framework-bundle (v3.2.7): Downloading (100%)         
      - Installing doctrine/doctrine-bundle (1.6.7): Downloading (100%)         
      - Installing doctrine/doctrine-fixtures-bundle (2.3.0): Downloading (connectinDownloading (100%)         
      - Installing symfony/yaml (v3.2.7): Downloading (100%)         
      - Installing incenteev/composer-parameter-handler (v2.1.2): Downloading (conneDownloading (100%)         
    doctrine/data-fixtures suggests installing doctrine/orm (For loading ORM fixtures)
    doctrine/data-fixtures suggests installing doctrine/mongodb-odm (For loading MongoDB ODM fixtures)
    doctrine/data-fixtures suggests installing doctrine/phpcr-odm (For loading PHPCR ODM fixtures)
    symfony/security-core suggests installing symfony/expression-language (For using the expression voter)
    symfony/security-core suggests installing symfony/ldap (For using LDAP integration)
    symfony/security-core suggests installing symfony/validator (For using the user password constraint)
    paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
    symfony/doctrine-bridge suggests installing symfony/form ()
    symfony/doctrine-bridge suggests installing symfony/validator ()
    symfony/doctrine-bridge suggests installing symfony/property-info ()
    symfony/doctrine-bridge suggests installing doctrine/orm ()
    doctrine/doctrine-cache-bundle suggests installing symfony/security-acl (For using this bundle to cache ACLs)
    symfony/console suggests installing symfony/process ()
    symfony/routing suggests installing symfony/expression-language (For using expression matching)
    symfony/http-kernel suggests installing symfony/browser-kit ()
    symfony/http-kernel suggests installing symfony/var-dumper ()
    symfony/dependency-injection suggests installing symfony/expression-language (For using expressions in service container configuration)
    symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
    symfony/class-loader suggests installing symfony/polyfill-apcu (For using ApcClassLoader on HHVM)
    symfony/cache suggests installing symfony/polyfill-apcu (For using ApcuAdapter on HHVM)
    symfony/framework-bundle suggests installing ext-apcu (For best performance of the system caches)
    symfony/framework-bundle suggests installing symfony/form (For using forms)
    symfony/framework-bundle suggests installing symfony/process (For using the server:run, server:start, server:stop, and server:status commands)
    symfony/framework-bundle suggests installing symfony/property-info (For using the property_info service)
    symfony/framework-bundle suggests installing symfony/serializer (For using the serializer service)
    symfony/framework-bundle suggests installing symfony/validator (For using validation)
    doctrine/doctrine-bundle suggests installing symfony/web-profiler-bundle (To use the data collector.)
    doctrine/doctrine-bundle suggests installing doctrine/orm (The Doctrine ORM integration is optional in the bundle.)
    Writing lock file
    Generating autoload files
    Mais lorsque je vais ajouter dans app/AppFernle.php dans phpStorm :

    if (in_array($this->getEnvironment(), array('dev', 'test'))) {

    // ...

    $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle();

    }

    Il me met dr ouge autour de FixturesBundle... Pourquoi ? Pourtant il a bien téléchargé au dessus ?

Discussions similaires

  1. [Joomla!] Impossible d'installer un composant
    Par edzodzinam dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 4
    Dernier message: 03/06/2009, 18h12
  2. Réponses: 2
    Dernier message: 24/10/2007, 14h09
  3. Réponses: 6
    Dernier message: 15/01/2007, 18h20
  4. [Plugin][Tomcat]impossible d'installer le plugin tomcat
    Par LSL dans le forum Eclipse Java
    Réponses: 6
    Dernier message: 06/04/2005, 09h57
  5. Pb install composant TDLPortIO (piloter port //)
    Par blacknight dans le forum C++Builder
    Réponses: 3
    Dernier message: 19/01/2004, 21h07

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo