# What is wrong with my ruby install, or is it me?

**URL:** <https://www.ruby-forum.com/t/what-is-wrong-with-my-ruby-install-or-is-it-me/113518>\
**Category:** Ruby\
**Created:** [September 1, 2007, 2:35am UTC](https://www.ruby-forum.com/t/what-is-wrong-with-my-ruby-install-or-is-it-me/113518 "2007-09-01T02:35:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![marc\_spitzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/54ee81/32.png) [@marc\_spitzer](https://www.ruby-forum.com/u/marc_spitzer)\
**Post date:** [September 1, 2007, 2:35am UTC](https://www.ruby-forum.com/t/what-is-wrong-with-my-ruby-install-or-is-it-me/113518/1 "2007-09-01T02:35:54Z")

</div>

Hello,

I am trying to put together my first ruby app, little database  
and a command line client. I want to use sqllite for the db and  
have 3.3.6 installed on a 32bit redhat 5 box along with ruby 1.8.5.  
After looking around it looked like the best way to do this was with  
rubygem which I installed, 0.9.4, along with the gem of sqlite3-ruby,  
1.2.1, and I can not get the require to work:

[xxx@yyy tmp]$ cat tst.rb  
#!/usr/bin/ruby

require ‘sqlite3’

gives me:  
[xxx@yyy tmp]$ ruby tst.rb  
tst.rb:3:in `require’: no such file to load – sqlite3 (LoadError)  
from tst.rb:3

in /usr/lib/ruby/gems/1.8/gems/ I have the following gems installed:  
flexmock-0.6.4  
sources-0.0.1  
sqlite3-ruby-1.2.1

what am I doing wrong?

Thanks,

marc

---

<div class="post-metadata">

**Author:** ![marc\_spitzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/54ee81/32.png) [@marc\_spitzer](https://www.ruby-forum.com/u/marc_spitzer)\
**Post date:** [September 1, 2007, 2:45am UTC](https://www.ruby-forum.com/t/what-is-wrong-with-my-ruby-install-or-is-it-me/113518/2 "2007-09-01T02:45:53Z")

</div>

marc spitzer wrote:

> Hello,
> 
> I am trying to put together my first ruby app, little database  
> and a command line client. I want to use sqllite for the db and  
> have 3.3.6 installed on a 32bit redhat 5 box along with ruby 1.8.5.  
> After looking around it looked like the best way to do this was with  
> rubygem which I installed, 0.9.4, along with the gem of sqlite3-ruby,  
> 1.2.1, and I can not get the require to work:
> 
> [xxx@yyy tmp]$ cat tst.rb  
> #!/usr/bin/ruby
> 
> require ‘sqlite3’
> 
> gives me:  
> [xxx@yyy tmp]$ ruby tst.rb  
> tst.rb:3:in `require’: no such file to load – sqlite3 (LoadError)  
> from tst.rb:3
> 
> in /usr/lib/ruby/gems/1.8/gems/ I have the following gems installed:  
> flexmock-0.6.4  
> sources-0.0.1  
> sqlite3-ruby-1.2.1
> 
> what am I doing wrong?
> 
> Thanks,
> 
> marc

You forgot to require ‘rubygems’ first.

Regards  
Stefan

---

<div class="post-metadata">

**Author:** ![marc\_spitzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/54ee81/32.png) [@marc\_spitzer](https://www.ruby-forum.com/u/marc_spitzer)\
**Post date:** [September 1, 2007, 2:47am UTC](https://www.ruby-forum.com/t/what-is-wrong-with-my-ruby-install-or-is-it-me/113518/3 "2007-09-01T02:47:55Z")

</div>

2007/9/1, marc spitzer [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> [xxx@yyy tmp]$ cat tst.rb  
> flexmock-0.6.4  
> SDF Public Access UNIX System - [http://sdf.lonestar.org](http://sdf.lonestar.org)

Hi,

You probably need this:

#!/usr/bin/ruby  
require ‘rubygems’  
require ‘sqlite3’

Best regards,  
R.

---

<div class="post-metadata">

**Author:** ![marc\_spitzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/54ee81/32.png) [@marc\_spitzer](https://www.ruby-forum.com/u/marc_spitzer)\
**Post date:** [September 1, 2007, 3:10am UTC](https://www.ruby-forum.com/t/what-is-wrong-with-my-ruby-install-or-is-it-me/113518/4 "2007-09-01T03:10:56Z")

</div>

On 2007-09-01, Stefan R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> marc spitzer wrote:
> 
> > Hello,

[snip]

> > what am I doing wrong?
> > 
> > Thanks,
> > 
> > marc
> 
> You forgot to require ‘rubygems’ first.

yup

thanks

marc

---

<div class="post-metadata">

**Author:** ![marc\_spitzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/54ee81/32.png) [@marc\_spitzer](https://www.ruby-forum.com/u/marc_spitzer)\
**Post date:** [September 1, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/what-is-wrong-with-my-ruby-install-or-is-it-me/113518/5 "2007-09-01T20:10:40Z")

</div>

On 2007-09-01, Michael L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > What is wrong with my ruby install, or is it me?
> 
> in both cases…its you.

Without your sage advice I would have never figured _that_ out.

thanks,

marc

---

<div class="post-metadata">

**Author:** ![marc\_spitzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/54ee81/32.png) [@marc\_spitzer](https://www.ruby-forum.com/u/marc_spitzer)\
**Post date:** [September 1, 2007, 10:51am UTC](https://www.ruby-forum.com/t/what-is-wrong-with-my-ruby-install-or-is-it-me/113518/6 "2007-09-01T10:51:08Z")

</div>

> What is wrong with my ruby install, or is it me?

in both cases…its you.
