installing rubygems under Linux

M

Mark Volkmann

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=3D.:$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?

--=20
R. Mark Volkmann
Partner, Object Computing, Inc.
 
J

James Britt

Mark said:
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
 
M

Mark Volkmann

=20
I *think* this is an episode of "Setup: CSI"
=20
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
=20
But I'm going from memory

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?

--=20
R. Mark Volkmann
Partner, Object Computing, Inc.
 
D

Doug Kearns

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

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
 
C

Chad Fowler

------=_Part_17986_13576014.1127050056495
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On 9/17/05 said:
=20
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.
=20
When I run "ruby setup.rb" I get "no such file to load -- rbconfig".
=20
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.
=20
LOAD_PATH=3D.:$RUBY_HOME:$RUBY_HOME/lib
=20
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".
=20
Do I need to specify LOAD_PATH? What else could I be doing wrong?
=20
--

Mark, rbconfig.rb is a standard part of the ruby distribution that=20
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.
--=20
Chad Fowler
http://chadfowler.com
http://rubycentral.org=20
http://rubygarden.org=20
http://rubygems.rubyforge.org (over one million gems served!)

------=_Part_17986_13576014.1127050056495--
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top