2012-12-29 4 views
1

콘솔에 서버에 대한 ssh 연결이 있습니다. 이제 git에서 내 프로젝트의 복제본을 얻었습니다.PHP Composer install

나는 다음과 같은 일을 수행하는 경우 : php composer.phar install 나는 다음 오류 얻을 :

Loading composer repositories with package information 
Installing dependencies from lock file 
Your requirements could not be resolved to an installable set of packages. 

    Problem 1 
    - Installation request for doctrine/doctrine-bundle dev-master -> satisfiable by doctrine/doctrine-bundle dev-master. 
    - doctrine/doctrine-bundle dev-master requires jdorn/sql-formatter >=1.1,<2.0 -> no matching package found. 
    Problem 2 
    - Installation request for doctrine/doctrine-bundle 1.0.x-dev -> satisfiable by doctrine/doctrine-bundle 1.0.x-dev. 
    - doctrine/doctrine-bundle 1.0.x-dev requires jdorn/sql-formatter >=1.1,<2.0 -> no matching package found. 
    Problem 3 
    - Installation request for zendframework/zend-i18n 2.0.5 -> satisfiable by zendframework/zend-i18n 2.0.5. 
    - zendframework/zend-i18n 2.0.5 requires ext-intl * -> the requested PHP extension intl is missing from your system. 
    Problem 4 
    - zendframework/zend-i18n 2.0.5 requires ext-intl * -> the requested PHP extension intl is missing from your system. 
    - zendframework/zend-validator 2.0.5 requires zendframework/zend-i18n 2.0.5 -> satisfiable by zendframework/zend-i18n 2.0.5. 
    - Installation request for zendframework/zend-validator 2.0.5 -> satisfiable by zendframework/zend-validator 2.0.5. 

Potential causes: 
- A typo in the package name 
- The package is not available in a stable-enough version according to your minimum-stability setting 
    see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details. 

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems. 

내 composer.js :

{ 
    "name": "symfony/framework-standard-edition", 
    "description": "The \"Symfony Standard Edition\" distribution", 
    "autoload": { 
     "psr-0": { "": "src/" } 
    }, 
    "require": { 
     "php": ">=5.3.3", 
     "symfony/symfony": "2.1.*", 
     "doctrine/orm": ">=2.2.3,<2.4-dev", 
     "doctrine/doctrine-bundle": "1.0.*", 
     "twig/extensions": "1.0.*", 
     "symfony/assetic-bundle": "2.1.*", 
     "symfony/swiftmailer-bundle": "2.1.*", 
     "symfony/monolog-bundle": "2.1.*", 
     "sensio/distribution-bundle": "2.1.*", 
     "sensio/framework-extra-bundle": "2.1.*", 
     "sensio/generator-bundle": "2.1.*", 
     "jms/security-extra-bundle": "1.2.*", 
     "jms/di-extra-bundle": "1.1.*", 
     "friendsofsymfony/user-bundle": "*", 
     "friendsofsymfony/jsrouting-bundle": "1.0.*", 
     "mv/name1-bundle" : "*", 
     "mv/name2-bundle" : "*", 
     "psliwa/pdf-bundle": "*" 
    }, 
    "scripts": { 
     "post-install-cmd": [ 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" 
     ], 
     "post-update-cmd": [ 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" 
     ] 
    }, 
    "repositories": [ 
     { 
      "type": "vcs", 
      "url": "[email protected]:name1/name1bundle.git" 
     }, 
     { 
      "type": "vcs", 
      "url": "[email protected]:name2/name2bundle.git" 
     }, 
     { 
      "type": "composer", 
      "url": "http://packages.zendframework.com/" 
     }, 
     { 
      "type": "composer", 
      "url": "http://packagist.org/" 
     } 
    ], 
    "minimum-stability": "dev", 
    "extra": { 
     "symfony-app-dir": "app", 
     "symfony-web-dir": "public_html", 
     "symfony-assets-install": "symlink" 
    } 
} 

이상한 것은입니다, 그것은 매력처럼 작동 지역! 하지만 서버에서 오류가 발생합니다. 문제점은 무엇이며이를 해결하는 방법은 무엇입니까?

아, 그리고 내가

Loading composer repositories with package information 
Updating dependencies         

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 71 bytes) in phar:///composer.phar/src/Composer/DependencyResolver/RuleWatchGraph.php on line 47 

Thnx을 php composer.phar update (통근 호스팅 서버) 할 수 없습니다.

+0

'composer.js'가 아니라 'composer.json'이어야합니다. – Fred

+0

아마도 1 년 전부터 .. 오타가 .. 내 실제 파일 이름이라면 나는 '작곡가 업데이트'를 할 수 없었다 –

답변

2

wget 최신 작곡가. 당신이 안전한쪽에 있는지 확인하십시오. 또는 더 잘 수행 할 수 있습니다.

문제 1과 2는 버전에 대해 불법적 인 표기법이있을 가능성이 큽니다. jdorn/sql-formatter 패키지를 특정 버전 번호로 직접 요구 사항에 추가하십시오.

문제 3과 4는 작곡가와 아무 관련이 없습니다. PHP 확장 intl은 시스템에 설치되어 있지 않지만 일부 ZF2 구성 요소의 필수 종속성입니다. 즉, 서버에 PHP를 설치하거나 컴파일해야합니다.

+0

''intl'' 확장자에 대해 이상한 점은 그것이 잘 작동한다는 것입니다 , 그리고 그 확장을 설치하지 않았다. 나는 심지어 그 연장을 사용하지 않는다. 이 메시지를 무시하고 계속할 수있는 방법이 있습니까? –

+0

저는 Zend Server CE 등 어떤 종류의 AMP 번들을 로컬에서 사용한다고 가정합니다. 그런 다음 해당 확장이 이미 번들로 제공됩니다. Zend-i18n은이 확장을 사용합니다. 그 때문에 종속성이 생깁니다. zend-i18n이 필요 없다면 설치하지 마십시오. – markus

+0

내가 말하고자하는 것은 공급 업체에게 FTP를 통해 서버에 수동으로 붙여 넣었습니다. 모든 것은 매력처럼 작동합니다! 그래서 그 확장을 사용하지 않는다는 의미입니다. 하지만 내 PDF 번들에 zend가 필요합니다. https://github.com/psliwa/PdfBundle –