+ Reply to Thread
Results 1 to 2 of 2

Thread: having trouble installing rubygems

  1. #1
    Join Date
    Jan 2009
    Posts
    2

    Default having trouble installing rubygems

    To warn: I am new to Ruby, I have installed ruby-1.8.7 in /usr/local/bin on a linux box running centos, but get the following error(s) after attempting to install rubygems per published instructions:

    /usr/local/lib/ruby/1.8/yaml.rb:9:in `require': no such file to load -- stringio (LoadError)
    from /usr/local/lib/ruby/1.8/yaml.rb:9
    from /home/nhammet/rubygems-1.3.1/lib/rubygems/config_file.rb:7:in `require'
    from /home/nhammet/rubygems-1.3.1/lib/rubygems/config_file.rb:7
    from /home/nhammet/rubygems-1.3.1/lib/rubygems.rb:882:in `require'
    from /home/nhammet/rubygems-1.3.1/lib/rubygems.rb:882
    from setup.rb:22:in `require'
    from setup.rb:22

    I looked at line22 and it says that it requires 'rubygems' but I know that and it isn't installed yet. Is there some missing step here? Something in my unix env? Do I need a LOAD_PATH env variable set?

    Any help at all or pointers would be appreciated.
    FYI -
    I installed ruby
    with ./configure
    make test
    sudo make install #(since not root and needed this in /usr/local)

    Thanks
    Newton

  2. #2
    Join Date
    Jan 2009
    Posts
    2

    Default

    Hello Everyone,

    Sometimes just askiing a question helps... motivates me to finally find it.

    to solve my problem I did 2 things.

    1. revisit my install of zlib (ala zlib-1.2.3)
    and use the following to install zlib in /usr/local/lib:

    ./configure -s
    make
    sudo make install

    (the above makes sure the shared libraries are installed... I didn't figure it out, it was thanks to 'google')

    2. in ext subdirectory from ruby-root directory, in Setup, uncommented everything except apparent Windows-centric items, and re-installed ruby-1.8.7.

    ./configure
    make
    make test
    sudo make install.

    Then I was finally able to run :

    ruby setup.rb # (in my rubygems-1.3.1 root directory)

    Viola!

    Hope this helps others...

    -Newton

+ Reply to Thread

Posting Permissions

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