記一次 Valet 安裝失敗記錄
之前一直在 Window 10 / Homestead 環境學習 Laravel 。
這兩天剛好在 coding10.com 看到 Mac Laravel 開發環境的視訊。
遂拿出自己的 mba 練習一番(4g 小記憶體,太卡了,一直吃灰中)。
在 composer global require laravel/valet 時報錯了。
➤ composer global require laravel/valet -vvv
Changed current directory to /Users/venus/.composer
Reading ./composer.json
Loading config file /Users/venus/.composer/config.json
Loading config file /Users/venus/.composer/auth.json
Loading config file ./composer.json
Loading config file /Users/venus/.composer/auth.json
Reading /Users/venus/.composer/auth.json
Checked CA file /usr/local/etc/openssl@1.1/cert.pem: valid
Executing command (/Users/venus/.composer): git branch --no-color --no-abbrev -v
Executing command (/Users/venus/.composer): git describe --exact-match --tags
Executing command (/Users/venus/.composer): git log --pretty="%H" -n1 HEAD
Executing command (/Users/venus/.composer): hg branch
Executing command (/Users/venus/.composer): fossil branch list
Executing command (/Users/venus/.composer): fossil tag list
Executing command (/Users/venus/.composer): svn info --xml
[Symfony\Component\Process\Exception\RuntimeException]
The process has been signaled with signal "6".
Exception trace:
() at phar:///usr/local/Cellar/composer/1.10.6/bin/composer/vendor/symfony/process/Process.php:366
Symfony\Component\Process\Process->wait() at phar:///usr/local/Cellar/composer/1.10.6/bin/composer/vendor/symfony/process/Process.php:198
Symfony\Component\Process\Process->run() at phar:///usr/local/Cellar/composer/1.10.6/bin/composer/src/Composer/Util/ProcessExecutor.php:75
執行 svn info –xml 再看看
➤ svn info --xml
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/Cellar/subversion/1.12.0_2/libexec/serf/lib/libserf-1.dylib
Reason: image not found
fish: 'svn info --xml' terminated by signal SIGABRT (Abort)
原來是 openssl 版本問題。
解決方案是切換到當前安裝到版本
brew switch openssl 1.0.2p
再次執行 compser 命令成功。
本作品採用《CC 協議》,轉載必須註明作者和本文連結