簡體   English   中英

無法在作曲家中執行git clone

[英]Failed to execute git clone in composer

我正在嘗試在laravel網站上安裝在git上創建的某個東西,當我點擊composer update時我一直收到此錯誤,我的git版本為2.0.1,而我的mac版本為10.8.5

[RuntimeException的]
無法執行git clone --no-checkout'git@bitbucket.org:PATH-TO-REPO.git''/ Applications / MAMP / htdocs / test-modules / vendor / test / tinymce'&& cd'/ Applications / MAMP / htdocs / test-modules / vendor / test / tinymce'&& git
遠程添加作曲家'git@bitbucket.org:PATH-TO-REPO.git'&& git fetch作曲家
dyld:懶惰的符號綁定失敗:找不到符號:___strlcpy_chk
引用自:/ usr / local / git / bin / git
預期位於:/usr/lib/libSystem.B.dylib
dyld:找不到符號:___strlcpy_chk
引用自:/ usr / local / git / bin / git
預期位於:/usr/lib/libSystem.B.dylib
sh:第1行:504跟蹤/ BPT陷阱:5 git clone --no-checkout'git@bitbucket.org:PATH-TO-REPO.git''/ Applications / MAMP / htdocs / test-modules / vendor / test / TinyMCE的”

在我的composer.json中

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
    "laravel/framework": "4.2.6",
    "test/tinymce": "dev-master",
    "test/uploadify": "dev-master",
    "mews/captcha": "dev-master"
},
"require-dev": {
    "way/generators": "~2.0"
},
"autoload": {
    "classmap": [
        "app/commands",
        "app/controllers",
        "app/models",
        "app/database/migrations",
        "app/database/seeds",
        "app/tests/TestCase.php",
        "app/modules"
    ]
},
"scripts": {
    "post-install-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],
    "post-update-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],
    "post-create-project-cmd": [
        "php artisan key:generate"
    ]
},
"config": {
    "preferred-install": "dist"
},
"minimum-stability": "stable",
"repositories": [
    {
        "type": "composer",
        "url":  "http://localhost:8888/test-modules/packages.json"
    }
]
}

在我的packages.json中

{
"packages": {
    "test/tinymce": {
        "dev-master": {
            "name": "test/tinymce",
            "version": "dev-master",
            "source": {
                "url": "git@bitbucket.org:PATH-TO-REPO.git",
                "type": "git",
                "reference": "master"
            }
        }
    },
    "test/uploadify": {
        "dev-master": {
            "name": "test/uploadify",
            "version": "dev-master",
            "source": {
                "url": "git@bitbucket.org:PATH-TO-REPO.git",
                "type": "git",
                "reference": "master"
            }
        }
    }
}
}

dyld:找不到符號:___strlcpy_chk

您需要重新安裝Git。 在macOS上,使用Brew ,例如: git reinstall git 當您的程序指向錯誤或過時的庫時,通常會出現此問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM