LoginSignup
10
5

More than 5 years have passed since last update.

xdebug インストール時の error: no acceptable C compiler について

Last updated at Posted at 2017-10-15

問題が発生した環境 CentOS 7.3, PHP 7.1

pecl install xebug でコケる

[root@localhost ~]# pecl install xdebug
downloading xdebug-2.5.5.tgz ...
<<中略>>
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... no
checking for gcc... no
configure: error: in `/var/tmp/pear-build-root4oZ63I/xdebug-2.5.5':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ERROR: `/var/tmp/xdebug/configure --with-php-config=/usr/bin/php-config' failed

Cのコンパイラが無いことが原因
👇 以下を実行しましょう。

[root@localhost ~]# yum install gcc
10
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
5