Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Shiva's avatar

Failed to execute git clone

I'm trying to install something that I created on git and I keep getting this error when I hit composer update I have git version 2.0.1 and my mac is version 10.8.5

[RuntimeException]                                                                                                                                                                                                                       
  Failed to execute 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  
   remote add composer 'git@bitbucket.org:PATH-TO-REPO.git' && git fetch composer                                                                                                                                                    
  dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk                                                                                                                                                                       
    Referenced from: /usr/local/git/bin/git                                                                                                                                                                                                
    Expected in: /usr/lib/libSystem.B.dylib                                                                                                                                                                                                
  dyld: Symbol not found: ___strlcpy_chk                                                                                                                                                                                                   
    Referenced from: /usr/local/git/bin/git                                                                                                                                                                                                
    Expected in: /usr/lib/libSystem.B.dylib                                                                                                                                                                                                
  sh: line 1:   504 Trace/BPT trap: 5       git clone --no-checkout 'git@bitbucket.org:PATH-TO-REPO.git' '/Applications/MAMP/htdocs/test-modules/vendor/test/tinymce' 

In my composer.json I have

{
    "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"
        }
    ]
}

and in my 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"
                }
            }
        }
    }
}
0 likes
3 replies
xingfucoder's avatar

Hi, I'm having right now some errors accesing to github I don't know if you are using this service but the repository creation process fails to me.

Shiva's avatar

I'm using bit bucket. I think that it does use github, but I've been having this problem since yesterday.

Shiva's avatar

When I typed in composer update --vvv this is what I got

- Installing test/tinymce (dev-master master)
    Cloning master
Executing command (CWD): 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 remote add composer 'git@bitbucket.org:PATH-TO-REPO.git' && git fetch composer
Executing command (CWD): git --version
Failed: [RuntimeException] Failed to execute 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 remote add composer 'git@bitbucket.org:PATH-TO-REPO.git' && git fetch composer

dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk
  Referenced from: /usr/local/git/bin/git
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ___strlcpy_chk
  Referenced from: /usr/local/git/bin/git
  Expected in: /usr/lib/libSystem.B.dylib

sh: line 1: 14235 Trace/BPT trap: 5       git clone --no-checkout 'git@bitbucket.org:PATH-TO-REPO.git' '/Applications/MAMP/htdocs/test-modules/vendor/test/tinymce'




  [RuntimeException]                                                                                                                                                                                                                       
  Failed to execute 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  
   remote add composer 'git@bitbucket.org:PATH-TO-REPO.git' && git fetch composer                                                                                                                                                    
  dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk                                                                                                                                                                       
    Referenced from: /usr/local/git/bin/git                                                                                                                                                                                                
    Expected in: /usr/lib/libSystem.B.dylib                                                                                                                                                                                                
  dyld: Symbol not found: ___strlcpy_chk                                                                                                                                                                                                   
    Referenced from: /usr/local/git/bin/git                                                                                                                                                                                                
    Expected in: /usr/lib/libSystem.B.dylib                                                                                                                                                                                                
  sh: line 1: 14235 Trace/BPT trap: 5       git clone --no-checkout 'git@bitbucket.org:PATH-TO-REPO.git' '/Applications/MAMP/htdocs/test-modules/vendor/test/tinymce'                                                          



Exception trace:
 () at phar:///usr/local/bin/composer/src/Composer/Util/Git.php:193
 Composer\Util\Git->throwException() at phar:///usr/local/bin/composer/src/Composer/Util/Git.php:150
 Composer\Util\Git->runCommand() at phar:///usr/local/bin/composer/src/Composer/Downloader/GitDownloader.php:54
 Composer\Downloader\GitDownloader->doDownload() at phar:///usr/local/bin/composer/src/Composer/Downloader/VcsDownloader.php:66
 Composer\Downloader\VcsDownloader->download() at phar:///usr/local/bin/composer/src/Composer/Downloader/DownloadManager.php:201
 Composer\Downloader\DownloadManager->download() at phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:156
 Composer\Installer\LibraryInstaller->installCode() at phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:87
 Composer\Installer\LibraryInstaller->install() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:152
 Composer\Installer\InstallationManager->install() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:139
 Composer\Installer\InstallationManager->execute() at phar:///usr/local/bin/composer/src/Composer/Installer.php:578
 Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:225
 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:136
 Composer\Command\UpdateCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:874
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:195
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:146
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:126
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:83
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:43
 require() at /usr/local/bin/composer:25


update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [packages1] ... [packagesN]

Please or to participate in this conversation.