Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RoR newbie server startup problem 1

Status
Not open for further replies.

tommyc7

Programmer
Feb 3, 2007
33
US
I am brand new to RoR and just going through a tutorial. I had everything up and running, but somehow I managed to mess up my installation. I tried to reinstall, but that didn't work. I'm using using Mac 10.5, if that makes a difference.

Anyway, here's the error I am getting after I start the server and basically try to do anything:

Code:
/!\ FAILSAFE /!\  Fri Mar 27 21:51:43 -0400 2009
  Status: 500 Internal Server Error
  no such file to load -- sqlite3
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /Users/tommyc7/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
    /Users/tommyc7/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    /Users/tommyc7/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
    /Users/tommyc7/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/kernel/requires.rb:7:in `require_library_or_gem'
    /Users/tommyc7/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
    /Users/tommyc7/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/kernel/requires.rb:5:in `require_library_or_gem'

There's more, but I figured that would give the gyst.

It sounds to me like it can't find sqlite3, but I don't understand why. It is in /usr/bin:

Code:
Macintosh:~ tommyc7$ which sqlite3
/usr/bin/sqlite3

and it's in my path:

Code:
Macintosh:~ tommyc7$ echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

Any ideas would be appreciated. Thanks in advance.
 
Hi

I would say, the problem is not the absence of [tt]sqlite3[/tt] command line tool, but the absence of [tt]sqlite3.rb[/tt] library.

( It is /usr/lib/ruby/1.8/sqlite3.rb on my machine, but I installed it with my distribution's package manager, not with [tt]gems[/tt]. )

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top