media-scientific - IT Blog

the backend developers blog

FxRuby und Fox-Tools auf Linux installieren (Tutorial/ HowTo)

Vorlesen mit webReader

Wer versucht das Ruby Gem FXRUBY zu installieren, wird unter Ubuntu die folgende Fehlermeldung erhalten:

$ sudo gem install fxruby-1.6.16.gem
Password or swipe finger:
Building native extensions.  This could take a while...
ERROR:  Error installing fxruby-1.6.16.gem:
    ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb install fxruby-1.6.16.gem
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.
Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/bin/ruby1.8
    --with-fox-dir
    --without-fox-dir
    --with-fox-include
    --without-fox-include=${fox-dir}/include
    --with-fox-lib
    --without-fox-lib=${fox-dir}/lib
    --with-fxscintilla-dir
    --without-fxscintilla-dir
    --with-fxscintilla-include
    --without-fxscintilla-include=${fxscintilla-dir}/include
    --with-fxscintilla-lib
    --without-fxscintilla-lib=${fxscintilla-dir}/lib
extconf.rb:35:in `find_installed_fox_version': couldn't find FOX header files (RuntimeError)
    from extconf.rb:188
Gem files will remain installed in /var/lib/gems/1.8/gems/fxruby-1.6.16 for inspection.
Results logged to /var/lib/gems/1.8/gems/fxruby-1.6.16/ext/fox16/gem_make.out

Dies liegt daran, dass man zuerst libFox auf dem Rechner installieren muss.

sudo aptitude install libfox-1.6-dev sollte diese Problem lösen...

Leider entstehen bei der Installation von FX-Ruby weitere Probleme unter Ubuntu… Folgende Pakte werden benötigt:

ruby
libruby
irb
build-essential
xlibs-dev
libyaml-ruby
libzlib-ruby
libwebrick-ruby

die folgenden beiden Exports sind ebenfalls sinnvoll bzw. notwendig:

export LD_LIBRARY_PATH=/usr/local/lib
export RUBYOPT="-w -rubygems"

(sollte in der .profile eingetragen werden)

Bitte nicht die Installation von foxGUIb vergessen. Nachfolgend die Installationsanleitung, die auch in dem Verzeichnis des Tools zu finden ist:

installation:
1. install libGUIb:
   cd to libGUIb and run ruby install.rb (on linux
   this requires superuser privileges)
2. install foxGUIb:
   you can copy foxGUIb's directory where ever you want to.
3. you are done.

unter IRB sollte per reqire ‘fox16‘ nun ein TRUE gefangen werden können.

Anschließend lässt sich auch die FoxGUIlb verwenden…

Hoffe ich konnte jemandem Zeit sparen.

Leave a Reply

You must be logged in to post a comment.