Installing rubygems under Linux

I've recently started using Ruby under Linux as opposed to Windows. I
have Ruby 1.8.2 installed. I'm trying to install rubygems.

When I run "ruby setup.rb" I get "no such file to load -- rbconfig".

I think this is a LOAD_PATH problem. I didn't have a LOAD_PATH
environment variable defined (never needed it under Windows), so I
tried that.

LOAD_PATH=.:$RUBY_HOME:$RUBY_HOME/lib

Running "ruby setup.rb" gave the same result, so I tried "ruby -I
$LOAD_PATH setup.rb" and got "No such file to load -- syck".

Do I need to specify LOAD_PATH? What else could I be doing wrong?

···

--
R. Mark Volkmann
Partner, Object Computing, Inc.

Mark Volkmann wrote:

I've recently started using Ruby under Linux as opposed to Windows. I
have Ruby 1.8.2 installed. I'm trying to install rubygems.

When I run "ruby setup.rb" I get "no such file to load -- rbconfig".

I *think* this is an episode of "Setup: CSI"

ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install

But I'm going from memory

James

···

--

http://www.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys

Mark, rbconfig.rb is a standard part of the ruby distribution that
shouldn't be missing from your LOAD_PATH, so
it looks like something weird is going on. Can you do this successfully:
ruby -v -rpp -rrbconfig -e 'pp Config::CONFIG'
If so, the output (rather long) might help us see what's up.

···

On 9/17/05, Mark Volkmann <r.mark.volkmann@gmail.com> wrote:

I've recently started using Ruby under Linux as opposed to Windows. I
have Ruby 1.8.2 installed. I'm trying to install rubygems.

When I run "ruby setup.rb" I get "no such file to load -- rbconfig".

I think this is a LOAD_PATH problem. I didn't have a LOAD_PATH
environment variable defined (never needed it under Windows), so I
tried that.

LOAD_PATH=.:$RUBY_HOME:$RUBY_HOME/lib

Running "ruby setup.rb" gave the same result, so I tried "ruby -I
$LOAD_PATH setup.rb" and got "No such file to load -- syck".

Do I need to specify LOAD_PATH? What else could I be doing wrong?

--

--
Chad Fowler
http://chadfowler.com
http://rubycentral.org
http://rubygarden.org
http://rubygems.rubyforge.org (over one million gems served!)

The installation instructions just say to run "ruby setup.rb".
I tried your suggestion anyway and got the same result from "ruby
setup.rb config".
This really seems to be a LOAD_PATH issue. What should my LOAD_PATH be
by default?

···

On 9/17/05, James Britt <james_b@neurogami.com> wrote:

Mark Volkmann wrote:
> I've recently started using Ruby under Linux as opposed to Windows. I
> have Ruby 1.8.2 installed. I'm trying to install rubygems.
>
> When I run "ruby setup.rb" I get "no such file to load -- rbconfig".

I *think* this is an episode of "Setup: CSI"

ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install

But I'm going from memory

--
R. Mark Volkmann
Partner, Object Computing, Inc.

<snip>

This really seems to be a LOAD_PATH issue. What should my LOAD_PATH be
by default?

$ /usr/bin/ruby -e 'puts $:'
/usr/lib/site_ruby/1.8
/usr/lib/site_ruby/1.8/i386-linux
/usr/lib/site_ruby
/usr/lib/ruby/1.8
/usr/lib/ruby/1.8/i386-linux
.

Sorry I'm a bit short on time to help you further right now...

HTH,
Doug

···

On Sun, Sep 18, 2005 at 12:40:21AM +0900, Mark Volkmann wrote: