首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Solaris上编译ruby 1.9.3时出错

在Solaris上编译ruby 1.9.3时出错
EN

Stack Overflow用户
提问于 2013-12-04 02:57:19
回答 1查看 106关注 0票数 0

我正在查看这个错误。我正在编译ruby的架构是Solaris-i386。

这个ruby版本在我的另一个机器ubuntu上编译得很好。我在想,我使用了错误的编译器和/或错误的选项?提到了一些关于c89和c99标志(-std=c99)的内容,有人能详细说明一下在执行./configure; make; make install时应该如何使用它们吗?

我在某个地方读到了这篇文章:它没有修复它,但我想把它作为潜在的有用信息包括在问题中

代码语言:javascript
复制
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...
EN

回答 1

Stack Overflow用户

发布于 2013-12-04 09:17:42

解决方案是在配置时启用64位架构。

CFLAGS=-m64 ./configure --prefix=/usr ...

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20359378

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档