From: Eric Christopherson Date: 2013-06-21T07:27:39+09:00 Subject: Re: require 'rspec' and Ruby 1.8.7 --089e0149c20c1fbcac04df9d74b5 Content-Type: text/plain; charset=UTF-8 Does the file in question also require 'rubygems'? If not, you could either add that line before the rspec one, or call the script with -rrubygems. The latter was the one considered a best practice, I recall. On Thu, Jun 20, 2013 at 5:00 PM, Mary-Anne Wolf wrote: > I am new to Ruby but not to Software Engineering. > > I am trying to make some existing code work > on the Raring Ringtail version of Ubuntu. > > The original code was written with Ruby 1.8 > so I have removed Ruby 1.9.1 and installed 1.8.7 > which solved some initial problems. > > require 'rspec' > causes the error. > in `require': no such file to load -- rspec (LoadError) > I have tried > sudo apt-get install ruby-rspec-core > and it makes no difference to the output. > > Why can't Ruby find rspec? > Do I have to apt-get an older version of rspec-core? > If so, how do I find out which one? > Or do I need to add something else to $RUBYLIB > Or something else? > > Thanks for your help. > > -- > Posted via http://www.ruby-forum.com/. > > --089e0149c20c1fbcac04df9d74b5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Does the file in question also require 'rubygems'?= If not, you could either add that line before the rspec one, or call the s= cript with -rrubygems.

The latter was the one cons= idered a best practice, I recall.


On Thu,= Jun 20, 2013 at 5:00 PM, Mary-Anne Wolf <lists@ruby-forum.com><= /span> wrote:
I am new to Ruby but not to Software Enginee= ring.

I am trying to make some existing code work
on the Raring Ringtail version of Ubuntu.

The original code was written with Ruby 1.8
so I have removed Ruby 1.9.1 and installed 1.8.7
which solved some initial problems.

require 'rspec'
causes the error.
in `require': no such file to load -- rspec (LoadError)
I have tried
sudo apt-get install ruby-rspec-core
and it makes no difference to the output.

Why can't Ruby find rspec?
Do I have to apt-get an older version of rspec-core?
If so, how do I find out which one?
Or do I need to add something else to $RUBYLIB
Or something else?

Thanks for your help.

--
Posted via http://= www.ruby-forum.com/.


--089e0149c20c1fbcac04df9d74b5--