0

composer から TCPDF をインストールしようとしています。ここにパッケージのリンクがあります。composer.json に次の内容があります

{
        "name": "zendframework/skeleton-application",
        "description": "Skeleton Application for ZF2",
        "license": "BSD-3-Clause",
        "keywords": [
            "framework",
            "zf2"
        ],
        "homepage": "http://framework.zend.com/",
        "require": {
            "php": ">=5.3.3",
            "zendframework/zendframework": ">2.2.0rc1",
                    "zendframework/zftool": "dev-master",
                    "cgm/zf2-file-upload-examples": ">=1.0.0",
                    "zf-commons/zfc-user": "dev-master",
                    "gowsram/g-maps": "dev-master",
                    "ghislainf/zf2-whoops": "dev-master",
                    "nitecon/zf2-db-session": "1.*",
                    "ghislainf/geonames-server": "v0.9",
                    "aaron4m/zf2-static-pages": "dev-master",
                    "email-zf2/emailzf2": "dev-master",
                    "dkplus/crud": "dev-hotfix/6",

                    "doctrine/doctrine-orm-module": "0.*",
                    "zf-commons/zfc-admin": "dev-master",
                    "zendexperts/ze-theme": "dev-master",
                    "zendframework/zend-developer-tools": "dev-master",
                    "bjyoungblood/bjy-authorize": "dev-master",
                    "bjyoungblood/BjyProfiler": "dev-master",
                    "evandotpro/edp-module-layouts": "dev-master",
                    "doctrine/migrations": "dev-master",
                    "mwillbanks/zfc-twitter-bootstrap": "dev-master",

                    "twig/twig": "~1.0",
                    "leafo/lessphp": "0.3.*@dev",
                    "leafo/scssphp": "dev-master",
                    "leafo/scssphp-compass": "dev-master",
                    "ptachoire/cssembed": "dev-master",
                    "rwoverdijk/assetmanager": "1.*",
                    "hybridauth/hybridauth": "dev-master",
                    "socalnick/scn-social-auth": "dev-master",
                    "aws/aws-sdk-php": "2.*",
                    "doctrine/common": "2.4.*@dev",
                    "doctrine/annotations": "1.0.*@dev",
                    "ircmaxell/random-lib": "1.0.*@dev",
                    "ocramius/proxy-manager": "0.5.*@dev",
                    "zendframework/zendpdf": "2.0.*@dev",
                    "zendframework/zendservice-recaptcha": "2.0.*@dev",
                    "bjyoungblood/bjy-profiler": "dev-master",
                    "ocramius/ocra-service-manager": "dev-master",
                    "doctrine/data-fixtures": "1.0.*@dev",
                    "symfony/dependency-injection": "2.4.*@dev",
                    "symfony/http-kernel": "2.4.*@dev",
                    "doctrine/cache": "1.0.*@dev",
                    "monolog/monolog": "1.6.*@dev",
                    "danielss89/zfc-user-admin": "dev-master",
                    "zf-commons/zfc-user-doctrine-orm": "dev-master",
                    "darkmatus/roleuserbridge": "dev-master",
                    "neilime/zf2-twb-bundle": "1.0"
                    "tecnick.com/tcpdf": "dev-master"
        },
        "require-dev": {
            "phpunit/phpunit": "3.7.*"
        }        

}

php composer.phar update を実行すると、常に次のエラーが表示されます。

Loading composer repositories with package information

依存関係の更新 (require-dev を含む) - tecnick.com/tcpdf (dev-master 6b842db) のインストール

[Symfony\Component\Process\Exception\RuntimeException]
プロセスがタイムアウトしました。

このエラーを修正するにはどうすればよいですか? または、ZF2 プロジェクトに TCPDF を含める別の方法がある場合。はいの場合は、インストールと使用方法に関するドキュメントも提供してください。

ありがとう

4

2 に答える 2

-1

前のコードでは、"}" でパッケージを閉じる必要があります。

私の場合、次のようなリポジトリを追加して修正しました:

"repositories"     : {
    "sourceforge": {
        "type": "vcs",
        "url": "http://git.code.sf.net/p/tcpdf/code"
    }
}, 
"require": {
    "php": ">=5.3.3",
    "symfony/symfony": "~2.4",
    [...] Some others [...]
    "whiteoctober/tcpdf-bundle": "dev-master"
},
于 2014-07-08T15:05:31.210 に答える