Compiling KLayout for Red Hat 5.8

kenken
edited February 2014 in KLayout Support
Hi

I am trying to compile KLayout from source on Red Hat. I have had to install my own version of qt (version qt-x11-opensource-src-4.5.3) and ruby (version 1.9.3-p484).
I have compiled them to a ~/usr folder.

When I compile KLayout-0.23 with the following options
./build.sh -qt ~/usr/qt -rbinc ~/usr/ruby/include/ruby-1.9.1/ruby -rbinc2 ~/ruby/include/ruby-1.9.1/x86_64-linux -bin ~/usr/bin

I get the following error
gmake[1]: *** No rule to make target 'ruby/missing.h', needed by 'rba.oa'. Stop

How do I solve this error or do I reference this header file in the build options.

Thanks
Ken

Comments

  • edited February 2014

    Hi Ken,

    for including Ruby it's typically sufficient to include the Ruby interpreter (i.e. from ~/usr/ruby/bin in your case) in the PATH. If you do so, the build script will determine all the configuration paths from that installation. You'll just have to point it to Qt:

    export PATH=~/usr/ruby/bin:$PATH
    # "which ruby" now should say you're using ~/usr/ruby/bin/ruby
    ./build.sh -qt ~/usr/qt
    

    I guess that in your case some Ruby installation exists and the library path as well as ruby version is not detected correctly.

    Matthias

Sign In or Register to comment.