从 PHP 7.4.1 开始,即使他们说它已修复,最新版本也存在梨形错误。
示例:如果您尝试使用“pecl”安装任何软件包,则会返回警告错误并显示以下消息:
Notice: Trying to access array offset on value of type bool in PEAR/REST.php on line 187
PHP Notice: Trying to access array offset on value of type bool in /usr/share/php/PEAR/REST.php on line 187
Run Code Online (Sandbox Code Playgroud)
存储库已经更新,但问题仍然存在
美好的一天,我有一台Mac OSX Yosemite我正在尝试使用命令安装指南针:
sudo gem install compass
但我收到以下错误:
Building native extensions. This could take a while...
ERROR: Error installing compass:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20151001-1122-1jqcu8r.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.10 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/ffi-1.9.10/gem_make.out
在尝试安装软件包之前,我使用命令更新了gem
sudo gem update --system
并且更新没有错误