さかもとのブログ

つらつらと

CentOS5.3にgauche-glをインストール

とりあえずgauche-glを取ってきて, freeglutを入れて,./configureをしたら,

checking GL/glx.h usability... yes
checking GL/glx.h presence... yes
checking for GL/glx.h... yes
checking GLUT/glut.h usability... no
checking GLUT/glut.h presence... no
checking for GLUT/glut.h... no

となっている.
Fedora Core5でのGauche-glのインストールを参考にconfigure.inの69行目

AC_CHECK_HEADERS(GLUT/glut.h, [

AC_CHECK_HEADERS(GL/glut.h, [

へ書き換え,configureスクリプトへ反映させるために,

autoconf

を実行した.
これでmakeが!と思ったら,やっぱりエラー.なぜ?

/usr/bin/ld: cannot find -lXext
collect2: ld はステータス 1 で終了しました
*** ERROR: command execution failed: gcc -std=gnu99  -L/usr/local/lib/gauche/0.8.14/x86_64-unknown-linux-gnu   -shared -o libgauche-gl.so 'libgauche-gl_head.o' 'gauche-gl.o' 'gl-syms.o' 'gl-lib.o' 'glu-lib.o' 'glext-lib.o' 'libgauche-gl_tail.o' -lgauche -ldl -lcrypt -lutil -lm  -lpthread -lGLU -lGL -lX11 -lXext   -L/usr/lib64    -L/usr/lib64
Stack Trace:
_______________________________________
  0  args

  1  (usage)
        At line 101 of "/usr/local/bin/gauche-package"
make[1]: *** [libgauche-gl.so] エラー 70
make[1]: ディレクトリ `/home/rsakamot/workspace/Gauche-gl-0.4.4/src' から出ます
make: *** [all] エラー 2

libXextは入っているんだけどな..
どうしたらいいんでしょう.

sudo yum install libXext-devel libXmu-devle libXi-devel 

でこの辺のエラーはなくなった.
無事make & make install完了!

ってか,gauche-gl入れるのに時間かけすぎ