Professional Web Applications Themes

Installing tk interface to ruby on RH9.0 GNU/LINUX - Ruby

Hello, I installed ruby 1.8.1 and it works fine. I also installed tk8.4 and tcl8.4 in /usr/local/ and they work fine too. However when I try to install the ruby extensions I get errors. /usr/local/lib/ruby/site_ruby/1.8/i686-linux/tcltklib.so: libtk8.4.so: cannot open shared object file: No such file or directory - /usr/local/lib/ruby/site_ruby/1.8/i686-linux/tcltklib.so (LoadError) from /usr/local/lib/ruby/site_ruby/1.8/tk.rb:7 from demo/lines1.rb:3:in `require' from demo/lines1.rb:3 Could you suggest what's wrong. The detailed command sequence for installation is given in the end of this mail. Thank You, Himanshu. P.S. I start with extconf.rb as follows:- [rootHimanshu-tcltklib]#CONFIGURE_ARGS='--with-tcl-include=/usr/local/include/ --with-tk-include=/usr/local/include --with-tcl-lib=/usr/local/lib/ --with-tk-lib=/usr/local/lib/ --enable-tcltk_stubs --with-tcllib=tcl8.4 --with-tklib=tk8.4' ruby extconf.rb checking for t_open() in -lnsl... no ...

  1. #1

    Default Installing tk interface to ruby on RH9.0 GNU/LINUX

    Hello,
    I installed ruby 1.8.1 and it works fine. I also installed tk8.4 and
    tcl8.4 in /usr/local/ and they work fine too. However when I try to
    install the ruby extensions I get errors.

    /usr/local/lib/ruby/site_ruby/1.8/i686-linux/tcltklib.so: libtk8.4.so:
    cannot open shared object file: No such file or directory -
    /usr/local/lib/ruby/site_ruby/1.8/i686-linux/tcltklib.so (LoadError)
    from /usr/local/lib/ruby/site_ruby/1.8/tk.rb:7
    from demo/lines1.rb:3:in `require'
    from demo/lines1.rb:3

    Could you suggest what's wrong. The detailed command sequence for
    installation is given in the end of this mail.

    Thank You,
    Himanshu.

    P.S.
    I start with extconf.rb as follows:-

    [rootHimanshu-tcltklib]#CONFIGURE_ARGS='--with-tcl-include=/usr/local/include/ --with-tk-include=/usr/local/include --with-tcl-lib=/usr/local/lib/ --with-tk-lib=/usr/local/lib/ --enable-tcltk_stubs --with-tcllib=tcl8.4 --with-tklib=tk8.4' ruby extconf.rb
    checking for t_open() in -lnsl... no
    checking for socket() in -lsocket... no
    checking for dlopen() in -ldl... yes
    checking for log() in -lm... yes
    checking for tcl.h... yes
    checking for tk.h... yes
    checking for XOpenDisplay() in -lX11... yes
    checking for Tcl_InitStubs() in -ltcl8.4... yes
    checking for Tk_InitStubs() in -ltk8.4... yes
    creating Makefile


    [rootHimanshu tcltklib]# make
    make: Nothing to be done for `all'.

    [rootHimanshu tcltklib]# make install
    install -c -p -m 0755 tcltklib.so
    /usr/local/lib/ruby/site_ruby/1.8/i686-linux
    install -c -p -m 0644 ./lib/tcltk.rb /usr/local/lib/ruby/site_ruby/1.8

    [rootHimanshu tcltklib]# ruby demo/
    lines0.tcl lines1.rb lines2.rb safeTk.rb

    [rootHimanshu tcltklib]# ruby demo/lines1.rb
    /usr/local/lib/ruby/site_ruby/1.8/i686-linux/tcltklib.so: libtk8.4.so:
    cannot open shared object file: No such file or directory -
    /usr/local/lib/ruby/site_ruby/1.8/i686-linux/tcltklib.so (LoadError)
    from /usr/local/lib/ruby/site_ruby/1.8/tk.rb:7
    from demo/lines1.rb:3:in `require'
    from demo/lines1.rb:3

    [rootHimanshu tcltklib]#




    Himanshu Guest

  2. #2

    Default Re: Installing tk interface to ruby on RH9.0 GNU/LINUX

    >>>>> "H" == Himanshu Garg <iiit.net> writes:

    H> /usr/local/lib/ruby/site_ruby/1.8/i686-linux/tcltklib.so: libtk8.4.so:
    H> cannot open shared object file: No such file or directory -

    It's trying to say that at runtime, it can't find libtk8.4.so

    This means that the directory where is located libtk8.4.so (probably
    /usr/local/lib) is not in /etc/ld.so.conf nor in the environmental
    variable LD_LIBRARY_PATH


    Guy Decoux





    ts Guest

  3. #3

    Default Re: Installing tk interface to ruby on RH9.0 GNU/LINUX

    On Fri, 2004-02-13 at 18:15, ts wrote: [/ref]
    >
    > H> /usr/local/lib/ruby/site_ruby/1.8/i686-linux/tcltklib.so: libtk8.4.so:
    > H> cannot open shared object file: No such file or directory -
    >
    > It's trying to say that at runtime, it can't find libtk8.4.so
    >
    > This means that the directory where is located libtk8.4.so (probably
    > /usr/local/lib) is not in /etc/ld.so.conf nor in the environmental
    > variable LD_LIBRARY_PATH
    >
    >
    > Guy Decoux
    >
    >[/ref]
    Thanks a lot for the surprisingly prompt and absolutely
    correct response. I added the entry to /etc/ld.so.conf and ran ldconfig
    and everything works fine.

    Thank You,
    Himanshu.



    Himanshu Guest

Similar Threads

  1. installing sdk & using sdk with Ruby
    By Farmer_Schlutzenberg@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 4
    Last Post: November 5th, 04:24 AM
  2. Installing ruby extensions
    By Thomas Sondergaard in forum Ruby
    Replies: 6
    Last Post: September 24th, 05:56 AM
  3. Replies: 2
    Last Post: August 9th, 04:08 PM
  4. Installing ruby under AIX 4.3.1
    By Ludwigi Beethoven in forum Ruby
    Replies: 0
    Last Post: July 26th, 12:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139