小编Vit*_*tor的帖子

PHP 7.4.1 - PECL 不起作用(尝试访问第 181 行 PEAR/REST.php 中 bool 类型值的数组偏移量)

从 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)

存储库已经更新,但问题仍然存在

php pear

16
推荐指数
2
解决办法
9582
查看次数

在OSX Yosemite(或Sierra)中安装罗盘时出错

美好的一天,我有一台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

并且更新没有错误

ruby macos rubygems compass

4
推荐指数
1
解决办法
1770
查看次数

标签 统计

compass ×1

macos ×1

pear ×1

php ×1

ruby ×1

rubygems ×1