From: chris Date: 2007-03-06T23:00:08+09:00 Subject: Re: rbconfig (LoadError) On Mar 6, 6:37 am, Brian Candler wrote: > On Tue, Mar 06, 2007 at 10:30:05PM +0900, chris wrote: > > On Mar 6, 2:05 am, Brian Candler wrote: > > > On Tue, Mar 06, 2007 at 01:30:20PM +0900, chris wrote: > > > > I am trying to install ruby on ubuntu Edgy, but this is the error that > > > > I am getting. > > > .. > > > > chris@chris-laptop:~/Desktop/rubygems-0.9.2/rubygems-0.9.0$ sudo ruby > > > > setup.rb > > > > setup.rb:52:in `require': no such file to load -- rbconfig (LoadError) > > > > from setup.rb:52 > > > > I don't think you're trying to install Ruby - I think you're trying to > > > install rubygems. > > > > Assuming you installed ruby as the ubuntu package, then the bit you're > > > missing can be installed using > > > > apt-get install ruby1.8-dev > > > > B. > > > Ooops my mistake, it is rubygems that I am installing, but I have > > previoulsy re-installed ruby as you mentioned and I am still getting > > the same error. > > Yes, but make sure you have "ruby1.8-dev" (note the -dev) and "libruby1.8" > installed. > > On my system: > > $ dpkg-query -S /usr/lib/ruby/1.8/i486-linux/rbconfig.rb > libruby1.8: /usr/lib/ruby/1.8/i486-linux/rbconfig.rb > > You probably also want packages "ruby1.8-examples", "irb1.8", "rdoc1.8" and > "ri1.8" > > Brian. This is what is on my system at the moment. ---------- chris@chris-laptop:/usr/lib/ruby/1.8/i486-linux$ ls config.h dl.h intern.h node.h ruby.h st.h defines.h dln.h missing.h regex.h rubyio.h util.h dlconfig.h env.h mysql.so re.h rubysig.h version.h chris@chris-laptop:/usr/lib/ruby/1.8/i486-linux$ dpkg-query -S /usr/ lib/ruby/i486-linux/rbconfig.rb dpkg: /usr/lib/ruby/i486-linux/rbconfig.rb not found. Thanks for the help.