Locked History Actions

FreeWRL

FreeWRL

  • 64 bit の Schientific Linux 6.4 で yum を使って freewml (version: 1.22.12-0.4.pre2.el6) をインストールしても以下のエラーが出る。
  • $ freewrl
    freewrl: symbol lookup error: /usr/lib64/libFreeWRL.so.1: undefined symbol: JS_FinalizeStub
  • よくわからないので、ソースからインストールする。
  • http://sourceforge.net/projects/freewrl/ のダウンロードのボタンを押すと、5秒後くらいにダウンロードが始まる。

  • $ cd <FreeWRL を ダウンロードしたディレクトリ>
    $ ls
    freewrl-1.22.13.1.tar.bz2
    $ tar jxvf freewrl-1.22.13.1.tar.bz2
    $ cd freewrl-1.22.13
    $ ./configure 
    $ make
    $ su
    パスワード: ルートのパスワードを打つ
    # make install

エラー

  • コンパイラの問題?

    • コンパイラがないと .configure の時に以下のエラーが出る。
    • $ ./configure 
      checking build system type... Invalid configuration `x86_64-unknown-linux-': machine `x86_64-unknown-linux' not recognized
      configure: error: /bin/sh config/config.sub x86_64-unknown-linux- failed
    • 以下のようにビルドオプションを変えても、メッセージが変わるだけ。
    • $ ./configure --build=x86_64-unknown-linux-gnu
      checking build system type... x86_64-unknown-linux-gnu
      checking host system type... x86_64-unknown-linux-gnu
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for a thread-safe mkdir -p... /bin/mkdir -p
      checking for gawk... gawk
      checking whether make sets $(MAKE)... yes
      checking how to print strings... printf
      checking for style of include used by make... GNU
      checking for gcc... no
      checking for cc... no
      checking for cl.exe... no
      configure: error: in `/home/koba/cern/freewrl-1.22.13':
      configure: error: no acceptable C compiler found in $PATH
      See `config.log' for more details
      $
    • 対処

    • 以下のコマンドでコンパイラをインストール。
    • $ su
      パスワード: ルートのパスワードを打つ
      # yum install gcc gcc-c++
    •  

  • ヘッダファイルの問題

    • zlib.h がないと .configure の時に以下のエラーが出る。
    • $ ./configure 
      ...
      checking for zlib.h... no
      configure: error: Can't find zlib.h. Please install zlib.
    • 対処

    • 以下のコマンドで zlib-devel というパッケージをインストール。
    • $ su
      パスワード: ルートのパスワードを打つ
      # yum install zlib-devel
    •  

  • FREETYPE の問題?

    • FREETYPE のパッケージ?がないと .configure の時に以下のエラーが出る。
    • $ ./configure 
      ...
      checking for pkg-config... /usr/bin/pkg-config
      checking pkg-config is at least version 0.9.0... yes
      checking for FREETYPE... no
      configure: error: Package requirements (freetype2) were not met:
      
      No package 'freetype2' found
      
      Consider adjusting the PKG_CONFIG_PATH environment variable if you
      installed software in a non-standard prefix.
      
      Alternatively, you may set the environment variables FREETYPE_CFLAGS
      and FREETYPE_LIBS to avoid the need to call pkg-config.
      See the pkg-config man page for more details.
    • 対処

    • 以下のコマンドで freetype-devel というパッケージをインストール。
    • $ su
      パスワード: ルートのパスワードを打つ
      # yum install zlib-devel
    •  

  • JavaScript のエンジンの問題?

    • JavaScript のエンジン? がないと .configure の時に以下のエラーが出る。

    • $ ./configure 
      ...
      checking whether to enable libcurl (could be used instead of wget)... no
      configure: Determining Javascript engine to build against
      checking for mozjs185 while ... checking for JAVASCRIPT_ENGINE... no
      checking for mozilla-js >= 1.9 while ... checking for JAVASCRIPT_ENGINE... no
      checking for xulrunner-js >= 1.8 while ... checking for JAVASCRIPT_ENGINE... no
      checking for seamonkey-js while ... checking for JAVASCRIPT_ENGINE... no
      checking for firefox-js while ... checking for JAVASCRIPT_ENGINE... no
      checking for firefox2-js while ... checking for JAVASCRIPT_ENGINE... no
      configure: error: Unable to find an appropriate javascript engine
    • 対処

    • 以下のコマンドで xulrunner-devel というパッケージをインストール。
    • $ su
      パスワード: ルートのパスワードを打つ
      # yum install xulrunner-devel
    •  

  • expat.h がない

    • expat.h がないと .configure の時に以下のエラーが出る。
    • $ ./configure 
      ...
      checking for mozilla-js >= 1.9 while ... checking for JAVASCRIPT_ENGINE... yes
      configure: Using mozilla-js for Javascript engine library
      checking for XML... yes
      checking expat.h usability... no
      checking expat.h presence... no
      checking for expat.h... no
      configure: error: Can't find expat.h. Please install expat.
    • 対処

    • 以下のコマンドで expat-devel というパッケージをインストールインストール。
    • $ su
      パスワード: ルートのパスワードを打つ
      # yum install expat-devel
    •  

  • X関連のヘッダファイルがない

    • X関連のヘッダファイルがないと .configure の時に以下のエラーが出る。
    • $ ./configure 
      ...
      checking for XAW... configure: error: Package requirements (xproto x11 xt xmu xaw7) were not met:
      
      No package 'xmu' found
      No package 'xaw7' found
      
      Consider adjusting the PKG_CONFIG_PATH environment variable if you
      installed software in a non-standard prefix.
      
      Alternatively, you may set the environment variables XAW_CFLAGS
      and XAW_LIBS to avoid the need to call pkg-config.
      See the pkg-config man page for more details.
    • 対処

    • 以下のコマンドで libXmu-devel, libXaw-devel というパッケージをインストールインストール。
    • $ su
      パスワード: ルートのパスワードを打つ
      # yum install libXmu-devel libXaw-devel
    •  

  • imlib2がない

    • imlib2がないと ./configure の時に以下のエラーが出る。
    • $ ./configure
      ...
      checking for IMLIB2... no
      configure: error: Package requirements (imlib2) were not met:
      
      No package 'imlib2' found
      
      Consider adjusting the PKG_CONFIG_PATH environment variable if you
      installed software in a non-standard prefix.
      
      Alternatively, you may set the environment variables IMLIB2_CFLAGS
      and IMLIB2_LIBS to avoid the need to call pkg-config.
      See the pkg-config man page for more details.
    • 対処

    • 以下のコマンドで imlib2-devel というパッケージをインストールインストール。
    • $ su
      パスワード: ルートのパスワードを打つ
      # yum install imlib2-devel
    •  

  • OpenGL 関連のヘッダファイルがない

    • OpenGL 関連のヘッダファイルがないと make の時に以下のエラーが出る。
    • $ make 
      ...
       gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -Wundef -Wunused-macros -I/usr/include/freetype2 -DXP_UNIX -DJS_THREADSAFE -I/usr/include/xulrunner-17.0.8 -I/usr/include/nspr4 -I/usr/include/libxml2 -I/usr/include/libpng12 -DTARGET_X11 -Wall -Wundef -Wunused-macros -fno-strict-aliasing -g -O2 -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c  -fPIC -DPIC -o .libs/main.o
      main.c:13 から include されたファイル中:
      ./display.h:100:20: error: GL/gl.h: そのようなファイルやディレクトリはありません
      ./display.h:101:21: error: GL/glu.h: そのようなファイルやディレクトリはありません
      ./display.h:107:21: error: GL/glx.h: そのようなファイルやディレクトリはありません
      ./display.h:108:23: error: GL/glext.h: そのようなファイルやディレクトリはありません
      In file included from main.c:13:
      ./display.h:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLcx’
      ./display.h:134:6: 警告: "HAVE_XF86_VMODE" は定義されていません
      make[3]: *** [main.lo] エラー 1
      make[3]: ディレクトリ `/home/koba/cern/freewrl-1.22.3/src/lib' から出ます
      make[2]: *** [all-recursive] エラー 1
      make[2]: ディレクトリ `/home/koba/cern/freewrl-1.22.3/src' から出ます
      make[1]: *** [all-recursive] エラー 1
      make[1]: ディレクトリ `/home/koba/cern/freewrl-1.22.3' から出ます
      make: *** [all] エラー 2
    • 対処

    • 以下のコマンドで mesa-libGL-devel, mesa-libGLU-devel というパッケージをインストールインストール。
    • $ su
      パスワード: ルートのパスワードを打つ
      # yum install mesa-libGL-devel  mesa-libGLU-devel