
我正在查看这个错误。我正在编译ruby的架构是Solaris-i386。
这个ruby版本在我的另一个机器ubuntu上编译得很好。我在想,我使用了错误的编译器和/或错误的选项?提到了一些关于c89和c99标志(-std=c99)的内容,有人能详细说明一下在执行./configure; make; make install时应该如何使用它们吗?
我在某个地方读到了这篇文章:它没有修复它,但我想把它作为潜在的有用信息包括在问题中
Solaris 8 requires #include <values.h> to get most of the system-dependent maths
values, and even then it doesn't have HUGE_VAL, despite this being referenced in the
math(3HEAD) man page.
By changing the reference to use MAXFLOAT instead and adding the #include above
math.h, the code compiles - whether it achieves the same end is an interesting question...发布于 2013-12-04 09:17:42
解决方案是在配置时启用64位架构。
CFLAGS=-m64 ./configure --prefix=/usr ...
https://stackoverflow.com/questions/20359378
复制相似问题