Ask a Question related to Ruby, Design and Development.

  1. #1

    Default Compiling tcltklib

    Ok I've got the compiling part of Ruby set. Ruby 1.8.1 is up and going.
    However I can't seem to get the Tcltklib to compile. What does the line look
    like when you are using the "--with" statements?

    I've tried things similar to:

    bcc32\configure --with...eetc...etc..

    when i ran the configure.bat for the ruby compile and i tried running it
    from the tcltklib directory. Any ideas what the command looks like from a
    windows command prompt? It gives me an error upon unknown "--with..."

    Any help appreciated. Thanks,

    Zach

    My development machine stats:

    Windows 2000 SP4
    Borland C/C++ Compiler 5.5
    Ruby 1.8.1
    ActiveTCL 8.4

    - The ruby source is in the D:\source\ruby1.8.1 directory.
    - The tcl source is in the D:\source\Tcl directory


    Zach Dennis Guest

  2. Similar Questions and Discussions

    1. tcltklib and not init'ing tk
      Hello, I'm using the tcltklib extension in ruby 1.8. It seems to be working well for my transition from tcl. There are a couple of stumbling...
    2. tcltklib not built with Ruby 1.8
      I just noticed that my build of Ruby 1.8 does not include tcltklib. Running the extconf.rb file in ext/tcltklib manually gives ... $ ruby...
    3. Ruby tcltklib includes a Tcl interpreter
      I just discovered something I didn't know that I think others might be interested in. Ruby tcltklib includes a tcl/tk interpreter. The interpreter...
    4. To run without compiling
      Hi there, Is there a way to run the app without recompiling each time? Every time when I need to run the app, I press F5 or click on the debug...
    5. 2.4.21 not compiling
      Hi all, I'm currently running Debian sarge with: syner@Zion:~$ apt-show-versions | grep gcc gcc-3.3/testing uptodate 1:3.3-2...
  3. #2

    Default Re: Compiling tcltklib

    Ok I got it to work by after the ruby compile by doing:

    I:\source\ruby\ext\tcltklib\> ruby extconf.rb --with-tcl-dir="I:\source\tcl"

    Does anyone know how to add this argument when doing the ruby compile
    instead of compiling ruby, then going back and redoing it?

    Thanks,

    Zach

    -----Original Message-----
    From: Zach Dennis [mailto:zdennis@mktec.com]
    Sent: Monday, November 17, 2003 10:31 AM
    To: ruby-talk ML
    Subject: Compiling tcltklib


    Ok I've got the compiling part of Ruby set. Ruby 1.8.1 is up and going.
    However I can't seem to get the Tcltklib to compile. What does the line look
    like when you are using the "--with" statements?

    I've tried things similar to:

    bcc32\configure --with...eetc...etc..

    when i ran the configure.bat for the ruby compile and i tried running it
    from the tcltklib directory. Any ideas what the command looks like from a
    windows command prompt? It gives me an error upon unknown "--with..."

    Any help appreciated. Thanks,

    Zach

    My development machine stats:

    Windows 2000 SP4
    Borland C/C++ Compiler 5.5
    Ruby 1.8.1
    ActiveTCL 8.4

    - The ruby source is in the D:\source\ruby1.8.1 directory.
    - The tcl source is in the D:\source\Tcl directory




    Zach Dennis Guest

  4. #3

    Default Re: compiling tcltklib


    Ok,

    I've got it compiling now and here is my next obstacle.

    I tried:
    ---------------------------------------------------------
    I:\source\languages\ruby\source\ruby-1.8.1\ext\tcltklib>nmake
    DESTDIR=I:\ruby install

    Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
    Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

    NMAKE : fatal error U1073: don't know how to make
    'I:/ruby/ruby/lib/ruby/1.8/i386-mswin32/ruby.h'
    Stop.
    ---------------------------------------------------------


    You can see my issue. However I thought I would do things the 'manual'. so I
    then did:
    ---------------------------------------------------------
    I:\source\languages\ruby\source\ruby-1.8.1\ext\tcltklib>nmake
    ---------------------------------------------------------

    and it worked. I got my tcltk.lib and tcltk.so file. I put them in:
    I:\ruby\lib
    I put the tcltk.rb file in: I:\ruby\lib\ruby\1.8

    I cannot say: require 'tk'

    it outputs:

    i:/ruby/lib/ruby/1.8/tk.rb:7:in `require': No such file to load -- tcltklib
    (LoadError)
    from i:/ruby/lib/ruby/1.8/tk.rb:7
    from deleteMe.rb:1:in `require'
    from deleteMe.rb:1
    >Exit code: 1
    Does anyone know of any other files i need in order to get tk to work.
    Everything is compiled from
    scratch so I am starting from the ground up.


    My Development Stats:
    -Windows 2000
    -Ruby 1.8.1preview2
    -Tcl/Tk 8.4.4
    -Microsoft Visual Studio 6(i couldn't get borland to find the tcl84.lib and
    tk84.lib files)



    Thanks,

    Zach



    Zach Dennis Guest

Posting Permissions

  • You may not post new threads
  • You may 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