# Sqlite3-ruby-1.2.5 is cached?

**URL:** <https://www.ruby-forum.com/t/sqlite3-ruby-1-2-5-is-cached/188411>\
**Category:** Rails\
**Created:** [May 11, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/sqlite3-ruby-1-2-5-is-cached/188411 "2010-05-11T16:05:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjrussell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@jjrussell](https://www.ruby-forum.com/u/jjrussell)\
**Post date:** [May 11, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/sqlite3-ruby-1-2-5-is-cached/188411/1 "2010-05-11T16:05:54Z")

</div>

I had Rails --version 3.0.0.beta3 installed. When I try to start the  
server I get a message, "sqlite3-ruby-1.2.5 is cached, but not  
installed. Try running ‘bundle install’. When I run the bundle install  
the following message below appears:

#######  
Installing sqlite3-ruby (1.2.5) from .gem files at  
/Users/john.ranaudo/.bundle/ruby/1.8/cache  
with native extensions  
/Library/Ruby/Site/1.8/rubygems/installer.rb:482:in `build\_extensions’:  
ERROR: Failed to build gem native extension.  
(Gem::Installer::ExtensionBuildError)

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby  
extconf.rb  
mkmf.rb can’t find header files for ruby at  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

Gem files will remain installed in  
/Users/john.ranaudo/.bundle/ruby/1.8/gems/sqlite3-ruby-1.2.5 for  
inspection.  
Results logged to  
/Users/john.ranaudo/.bundle/ruby/1.8/gems/sqlite3-ruby-1.2.5/ext/sqlite3\_api/gem\_make.out  
#######

Any thoughts on how to resolve this?

Thanks,  
John

---

<div class="post-metadata">

**Author:** ![jjrussell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@jjrussell](https://www.ruby-forum.com/u/jjrussell)\
**Post date:** [May 11, 2010, 4:23pm UTC](https://www.ruby-forum.com/t/sqlite3-ruby-1-2-5-is-cached/188411/2 "2010-05-11T16:23:29Z")

</div>

It appears it isn’t finding the header file it’s looking for. If your  
system’s configured like mine you’ll find it elsewhere.

I think if you skip all that and just (remote) install the gem sqlite3-  
ruby you should be good to go.

---

<div class="post-metadata">

**Author:** ![jjrussell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@jjrussell](https://www.ruby-forum.com/u/jjrussell)\
**Post date:** [May 11, 2010, 5:44pm UTC](https://www.ruby-forum.com/t/sqlite3-ruby-1-2-5-is-cached/188411/3 "2010-05-11T17:44:52Z")

</div>

Are you running Snow Leopard?

If so, maybe dig into some of the comments here:

> <https://stackoverflow.com/questions/1350359/snow-leopard-ruby-on-rails-sqlite3-issue>

---

<div class="post-metadata">

**Author:** ![jjrussell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@jjrussell](https://www.ruby-forum.com/u/jjrussell)\
**Post date:** [May 11, 2010, 5:49pm UTC](https://www.ruby-forum.com/t/sqlite3-ruby-1-2-5-is-cached/188411/4 "2010-05-11T17:49:33Z")

</div>

hi,

i have a “notes” model which i include in various other views via  
partial. how can i tell / what do i need to do in order to redirect the  
user back to the view where he was instead to the index-view of the  
notes?

thx

---

<div class="post-metadata">

**Author:** ![jjrussell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@jjrussell](https://www.ruby-forum.com/u/jjrussell)\
**Post date:** [May 11, 2010, 5:34pm UTC](https://www.ruby-forum.com/t/sqlite3-ruby-1-2-5-is-cached/188411/5 "2010-05-11T17:34:02Z")

</div>

@mike I tried (sudo gem install sqlite3-ruby) but I’m still getting  
header file issues?

---

<div class="post-metadata">

**Author:** ![jjrussell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@jjrussell](https://www.ruby-forum.com/u/jjrussell)\
**Post date:** [May 11, 2010, 9:42pm UTC](https://www.ruby-forum.com/t/sqlite3-ruby-1-2-5-is-cached/188411/6 "2010-05-11T21:42:32Z")

</div>

On 11 May 2010 16:48, tom [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> hi,
> 
> i have a “notes” model which i include in various other views via  
> partial. how can i tell / what do i need to do in order to redirect the  
> user back to the view where he was instead to the index-view of the  
> notes?

Have a look at the docs for redirect\_to and you will see that there is  
a :back option to go back to where you were.

Colin

---

<div class="post-metadata">

**Author:** ![jjrussell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@jjrussell](https://www.ruby-forum.com/u/jjrussell)\
**Post date:** [May 12, 2010, 12:26am UTC](https://www.ruby-forum.com/t/sqlite3-ruby-1-2-5-is-cached/188411/7 "2010-05-12T00:26:28Z")

</div>

thank u!  
must have overseen that

tom

---

<div class="post-metadata">

**Author:** ![jjrussell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@jjrussell](https://www.ruby-forum.com/u/jjrussell)\
**Post date:** [May 11, 2010, 7:32pm UTC](https://www.ruby-forum.com/t/sqlite3-ruby-1-2-5-is-cached/188411/8 "2010-05-11T19:32:11Z")

</div>

Mike wrote:

> Are you running Snow Leopard?
> 
> If so, maybe dig into some of the comments here:
> 
> [macos - Snow Leopard & Ruby on Rails - SQLite3 issue - Stack Overflow](http://stackoverflow.com/questions/1350359/snow-leopard-ruby-on-rails-sqlite3-issue)

Thanks Mike! This article resolved my issue.
