June 12, 2007
MacOSX 10.4(PowrPC)にRuby1.8.6
先週末 Ruby会議2007が開かれたそうだ、行きたかった。
こないだまでロボット製作に集中していたので、すっかり気がつかずにいた。
で、僕のiMacG5にRubyを入れてみることにした。
もちろん、MacOS X 10.4 にはデフォルトで入っているRubyは1.8.2だ。
最新版の1.8.6にしてみよう。
Fink や MacPorts のはRubyが最新でないはので、
ソースを入手しコンパイルする。
$ ./configure
$ make
・・・
*****************************************************************************
**
** PTHREAD SUPPORT MODE ERROR:
**
** Ruby is not compiled with --enable-pthread, but your Tcl/Tk
** library seems to be compiled with pthread support. This
** combination may cause frequent hang or segmentation fault
** errors when Ruby/Tk is working. We recommend that you NEVER
** create the library with such a combination of pthread support.
**
** Please recompile Ruby with the "--enable-pthread" configure option
** or recompile Tcl/Tk with the "--disable-threads" configure option.
**
*****************************************************************************
・・・
あれれ、ERRORか?
インストールされているtkと合わないので、コンパイルオプションをつけろとか言ってる。他にもwarninng が出るぞ!
はて?ググってみる。ココにヒントがあった
さくーしゃのブログ
そういうことね。
$ ./configure --enable-shared --enable-pthread
$ make
$ make test
$ sudo make install
でOK!
Comments
No comments yet
DISALLOWED (TrackBack)