Ruby 1.9 migration problem on Windows

Discussion in 'Ruby' started by Andreas Warberg, May 30, 2008.

  1. Hi,

    I have an application, which currently runs under ruby 1.8.6. I want to
    adopt the new interpreter to get the syntax improvements and speed.

    I downloaded the ruby 1.9 zip-archive and unpacked to c:\ruby1.9. Then I
    changed the path entry for ruby from c:\ruby\bin to c:\ruby1.9\bin.

    When running IRB I get an error concerning missing readline.dll. I found
    readline.dll in the bin folder of a zip file at
    http://jarp.does.notwork.org/win32/. Now IRB runs fine.

    Next I do gem install sequel, which apparently completes with success
    (no error messages) though I need to get zlib.dll from the same site.

    However when loading it up I get:

    C:\>irb -r sequel
    c:/ruby1.9/lib/ruby/1.9.0/irb/init.rb:250:in `require': no such file to
    load --
    sequel (LoadError)
    from c:/ruby1.9/lib/ruby/1.9.0/irb/init.rb:250:in `block in
    load_modules
    '
    from c:/ruby1.9/lib/ruby/1.9.0/irb/init.rb:248:in `each'
    from c:/ruby1.9/lib/ruby/1.9.0/irb/init.rb:248:in `load_modules'
    from c:/ruby1.9/lib/ruby/1.9.0/irb/init.rb:21:in `setup'
    from c:/ruby1.9/lib/ruby/1.9.0/irb.rb:54:in `start'
    from c:/ruby1.9/bin/irb.bat:21:in `<main>'

    I noticed that a folder appeared c:\LAN, which looks like:
    C:\LAN
    └───ruby-1.9.0-0
    ├───bin
    └───lib
    └───ruby
    ├───gems
    │ └───1.9.0

    A bit puzzled (gems should be installed under c:\ruby1.9 right?) I try
    to update rubygems using gem update --system, only to get:
    C:\>gem update --system
    Updating RubyGems...
    Attempting remote update of rubygems-update
    Successfully installed rubygems-update-1.1.1
    1 gem installed
    Updating version of RubyGems to 1.1.1
    Installing RubyGems 1.1.1
    'C:/LAN/ruby-1.9.0-0/bin/ruby.exe' is not recognized as an internal or
    external
    command,
    operable program or batch file.

    Here is my path:
    C:\>path
    PATH=C:\Program Files\MiKTeX
    2.7\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WI
    NDOWS\System32\Wbem;C:\Program Files\Subversion\bin;C:\Program
    Files\TortoiseSVN
    \bin;c:\ruby1.9\bin;C:\Program Files\jEdit;C:\Program
    Files\Java\jdk1.6.0_05\bin

    Can you please give me a hint here? :)

    Kind regards
    Andreas Warberg
    --
    Posted via http://www.ruby-forum.com/.
     
    Andreas Warberg, May 30, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. cat_dog_ass
    Replies:
    32
    Views:
    1,033
    Rob Williscroft
    Mar 6, 2005
  2. cat_dog_ass
    Replies:
    1
    Views:
    317
    Lionel B
    Mar 2, 2005
  3. python_tsp
    Replies:
    2
    Views:
    614
  4. Michael G. Schneider
    Replies:
    3
    Views:
    158
    Michael G. Schneider
    Nov 26, 2003
  5. Boni Satani
    Replies:
    0
    Views:
    194
    Boni Satani
    Jan 9, 2014
Loading...

Share This Page