2013-12-03 59 views
0

enter image description here在Solaris上編譯ruby 1.9.3時出錯

我正在看這個錯誤。我正在編譯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... 

回答

1

的解決方案是在配置時啓用64位架構。

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