相关疑难解决方法(0)

在 mac os 上安装 ruby​​ 2.6.7 时出错 - 如何解决?

尝试将 Ruby 升级到 2.6.7 时出现以下错误:

$ rbenv install 2.6.7

...


implicit declaration of function 'rb_native_mutex_destroy' is invalid in C99
vm.c:2489:34: warning: expression does not compute the number of elements in this array; element type is 'const int', not 'VALUE' (aka 'unsigned long') [-Wsizeof-array-div]
                             sizeof(ec->machine.regs) / sizeof(VALUE));
                                    ~~~~~~~~~~~~~~~~  ^
vm.c:2489:34: note: place parentheses around the 'sizeof(VALUE)' expression to silence this warning
Run Code Online (Sandbox Code Playgroud)

有解决办法吗?

ruby

17
推荐指数
1
解决办法
1461
查看次数

标签 统计

ruby ×1