Я создаю свою IDE для веб-разработки на Macos High Sierra 10.13.6 и следую этому учебнику .Я на этапе, когда мне нужно установить расширения PHP (особенно xDebug), но вот ошибка, которую я получаю всякий раз, когда я pecl любое расширение: checking whether the C compiler works... no
Весь журнал:
pecl install xdebug
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading xdebug-2.7.0.tgz ...
Starting to download xdebug-2.7.0.tgz (230,326 bytes)
.................................................done: 230,326 bytes
69 source files, building
running: phpize
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
building in /private/tmp/pear/temp/pear-build-fredericsBTF0Y/xdebug-2.7.0
running: /private/tmp/pear/temp/xdebug/configure --with-php-config=/Applications/MAMP/bin/php/php7.0.15/bin/php-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking whether the C compiler works... no
configure: error: in `/private/tmp/pear/temp/pear-build-fredericsBTF0Y/xdebug-2.7.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
ERROR: `/private/tmp/pear/temp/xdebug/configure --with-php-config=/Applications/MAMP/bin/php/php7.0.15/bin/php-config' failed
Я читаю везде, чтобы проверить команду, что инструменты линии установлены, действительно они есть (я даже удалил их и переустановил их).Теперь у меня Xcode версии 10.1 и: xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Gcc работает за пределами pecl:
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
which gcc
/usr/bin/gcc
Однако здесь есть кое-что странное: установленный каталог Clang находится в моем python-менеджере Conda !!
clang --version
clang version 4.0.1 (tags/RELEASE_401/final)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Users/frederic/miniconda3/bin
which clang
/Users/frederic/miniconda3/bin/clang
Хотя, когда я проверяю через Xcode:
xcodebuild -find gcc
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc
xcodebuild -find clang
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
Может ли миниконда вызвать проблемы со своим собственным лязгом?Или что-то еще ?Спасибо