Ross Rankin
2011-Apr-12 19:30 UTC
OS X - `require'': no such file to load -- sqlite3/sqlite3_native
I''ve searched and search, tried a number of things like unstalling sqlite3 and reinstalling. Reinstalling Rails, building sqlite3 from source, etc. Nothing seems to work. When I try to start up my server I get the following: MacBook-Pro:splash Ross$ rails server /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3.rb:6:in `require'': no such file to load -- sqlite3/sqlite3_native (LoadError) from /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3.rb:6:in `rescue in <top (required)>'' from /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3.rb:2:in `<top (required)>'' from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:68:in `require'' from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:68:in `block (2 levels) in require'' from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:66:in `each'' from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:66:in `block in require'' from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:55:in `each'' from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:55:in `require'' from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler.rb:120:in `require'' from /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/config/application.rb:8:in `<top (required)>'' from /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/railties-3.0.3/lib/rails/commands.rb:28:in `require'' from /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/railties-3.0.3/lib/rails/commands.rb:28:in `block in <top (required)>'' from /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/railties-3.0.3/lib/rails/commands.rb:27:in `tap'' from /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/railties-3.0.3/lib/rails/commands.rb:27:in `<top (required)>'' from script/rails:6:in `require'' from script/rails:6:in `<main>'' However, if I do this: MacBook-Pro:splash Ross$ irb ruby-1.9.2-p136 :001 > require ''sqlite3'' => true ruby-1.9.2-p136 :002 > What isn''t working? Security issue? path? This worked for months and stopped working after I installed the curb and json gems. Ideas? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Apr-12 21:13 UTC
Re: OS X - `require'': no such file to load -- sqlite3/sqlite3_native
On 12 Apr 2011, at 20:30, Ross Rankin <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I''ve searched and search, tried a number of things like unstalling > sqlite3 and reinstalling. Reinstalling Rails, building sqlite3 from > source, etc. Nothing seems to work. When I try to start up my server I > get the following:Have you checked the architecture of the native extensions you use (you can use the lipo command to examine which architectures a library is built for)? If there is a mismatch there you could run into trouble Fred> MacBook-Pro:splash Ross$ rails server > /Volumes/Macintosh > HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3.rb:6:in > `require'': no such file to load -- sqlite3/sqlite3_native (LoadError) > from /Volumes/Macintosh > HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3.rb:6:in > `rescue in <top (required)>'' > from /Volumes/Macintosh > HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3.rb:2:in > `<top (required)>'' > from > /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:68:in > `require'' > from > /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:68:in > `block (2 levels) in require'' > from > /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:66:in > `each'' > from > /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:66:in > `block in require'' > from > /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:55:in > `each'' > from > /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:55:in > `require'' > from > /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler.rb:120:in > `require'' > from /Volumes/Macintosh > HD/Users/Ross/rails_projects/splash/config/application.rb:8:in `<top > (required)>'' > from /Volumes/Macintosh > HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/railties-3.0.3/lib/rails/commands.rb:28:in > `require'' > from /Volumes/Macintosh > HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/railties-3.0.3/lib/rails/commands.rb:28:in > `block in <top (required)>'' > from /Volumes/Macintosh > HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/railties-3.0.3/lib/rails/commands.rb:27:in > `tap'' > from /Volumes/Macintosh > HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/railties-3.0.3/lib/rails/commands.rb:27:in > `<top (required)>'' > from script/rails:6:in `require'' > from script/rails:6:in `<main>'' > > However, if I do this: > MacBook-Pro:splash Ross$ irb > ruby-1.9.2-p136 :001 > require ''sqlite3'' > => true > ruby-1.9.2-p136 :002 > > > What isn''t working? Security issue? path? This worked for months and > stopped working after I installed the curb and json gems. > > Ideas? > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ross Rankin
2011-Apr-12 22:10 UTC
Re: OS X - `require'': no such file to load -- sqlite3/sqlite3_native
Where''s the native extension stored? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Apr-12 22:20 UTC
Re: Re: OS X - `require'': no such file to load -- sqlite3/sqlite3_native
On 12 Apr 2011, at 23:10, Ross Rankin <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Where''s the native extension stored? >Some where inside the gem. gem which foo tells you where the files are for the gem name foo Fred> -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ross Rankin
2011-Apr-16 17:44 UTC
Re: OS X - `require'': no such file to load -- sqlite3/sqlite3_native
Yeah both are x86-64 so looks fine... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.