无法在composer中执行git clone

时间:2015-01-22 10:15:14

标签: json git laravel laravel-4 composer-php

我正在尝试在我的laravel网站上安装我在git上创建的东西,当我点击作曲家更新时我一直收到此错误我有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 composer
    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"
            }
        }
    }
}
}

1 个答案:

答案 0 :(得分:0)

  

dyld:未找到符号:___ strlcpy_chk

您需要重新安装Git。在macOS上,使用Brew,例如:git reinstall git。当您的程序指向错误或过时的库时,这通常是个问题。