Seeking help with basic installation


#1

Hi all,

         Please help me.In my first attempt to creat a simple

controller and working with hello world program.I got some error
though I have my action and view correctly…

In general…When I type http://localhost:3000/ I can get the welcome
page.But when I see the “About your application Envinorment”…I get
some error as following…

MissingSourceFile in Rails/infoController#properties

no such file to load – sqlite3

RAILS_ROOT: /home/sugi/hello_world
Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:inrequire’
vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in
require' vendor/rails/activesupport/lib/active_support/dependencies.rb:354:innew_constants_in’
vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in
require' vendor/rails/activesupport/lib/active_support/core_ext/kernel/ requires.rb:7:inrequire_library_or_gem’
vendor/rails/activesupport/lib/active_support/core_ext/kernel/
reporting.rb:11:in silence_warnings' vendor/rails/activesupport/lib/active_support/core_ext/kernel/ requires.rb:5:inrequire_library_or_gem’
vendor/rails/activerecord/lib/active_record/connection_adapters/
sqlite3_adapter.rb:10:in sqlite3_connection' vendor/rails/activerecord/lib/active_record/connection_adapters/ abstract/connection_specification.rb:292:insend’
vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/connection_specification.rb:292:in connection=' vendor/rails/activerecord/lib/active_record/connection_adapters/ abstract/connection_specification.rb:260:inretrieve_connection’
vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/connection_specification.rb:78:in connection' vendor/rails/activerecord/lib/active_record/query_cache.rb:8:incache’
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:
12:in perform_action' vendor/rails/actionpack/lib/action_controller/base.rb:529:insend’
vendor/rails/actionpack/lib/action_controller/base.rb:529:in
process_without_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:569:inprocess_without_session_management_support’
vendor/rails/actionpack/lib/action_controller/session_management.rb:
130:in process' vendor/rails/actionpack/lib/action_controller/base.rb:389:inprocess’
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in
handle_request' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:indispatch’
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in
synchronize' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:indispatch’
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in
dispatch_cgi' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:indispatch’
vendor/rails/railties/lib/webrick_server.rb:112:in handle_dispatch' vendor/rails/railties/lib/webrick_server.rb:78:inservice’
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
/usr/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:instart’
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:instart’
/usr/lib/ruby/1.8/webrick/server.rb:92:in each' /usr/lib/ruby/1.8/webrick/server.rb:92:instart’
/usr/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/lib/ruby/1.8/webrick/server.rb:82:instart’
vendor/rails/railties/lib/webrick_server.rb:62:in dispatch' vendor/rails/railties/lib/commands/servers/webrick.rb:66 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in require' vendor/rails/activesupport/lib/active_support/dependencies.rb:509:inrequire’
vendor/rails/activesupport/lib/active_support/dependencies.rb:354:in
new_constants_in' vendor/rails/activesupport/lib/active_support/dependencies.rb:509:inrequire’
vendor/rails/railties/lib/commands/server.rb:39
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:inrequire’
script/server:3

/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:inrequire’
vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in
require' vendor/rails/activesupport/lib/active_support/dependencies.rb:354:innew_constants_in’
vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in
require' vendor/rails/activesupport/lib/active_support/core_ext/kernel/ requires.rb:7:inrequire_library_or_gem’
vendor/rails/activesupport/lib/active_support/core_ext/kernel/
reporting.rb:11:in silence_warnings' vendor/rails/activesupport/lib/active_support/core_ext/kernel/ requires.rb:5:inrequire_library_or_gem’
vendor/rails/activerecord/lib/active_record/connection_adapters/
sqlite3_adapter.rb:10:in sqlite3_connection' vendor/rails/activerecord/lib/active_record/connection_adapters/ abstract/connection_specification.rb:292:insend’
vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/connection_specification.rb:292:in connection=' vendor/rails/activerecord/lib/active_record/connection_adapters/ abstract/connection_specification.rb:260:inretrieve_connection’
vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/connection_specification.rb:78:in connection' vendor/rails/activerecord/lib/active_record/query_cache.rb:8:incache’
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:
12:in perform_action' vendor/rails/actionpack/lib/action_controller/base.rb:529:insend’
vendor/rails/actionpack/lib/action_controller/base.rb:529:in
process_without_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:569:inprocess_without_session_management_support’
vendor/rails/actionpack/lib/action_controller/session_management.rb:
130:in process' vendor/rails/actionpack/lib/action_controller/base.rb:389:inprocess’
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in
handle_request' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:indispatch’
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in
synchronize' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:indispatch’
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in
dispatch_cgi' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:indispatch’
vendor/rails/railties/lib/webrick_server.rb:112:in handle_dispatch' vendor/rails/railties/lib/webrick_server.rb:78:inservice’
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
/usr/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:instart’
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:instart’
/usr/lib/ruby/1.8/webrick/server.rb:92:in each' /usr/lib/ruby/1.8/webrick/server.rb:92:instart’
/usr/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/lib/ruby/1.8/webrick/server.rb:82:instart’
vendor/rails/railties/lib/webrick_server.rb:62:in dispatch' vendor/rails/railties/lib/commands/servers/webrick.rb:66 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in require' vendor/rails/activesupport/lib/active_support/dependencies.rb:509:inrequire’
vendor/rails/activesupport/lib/active_support/dependencies.rb:354:in
new_constants_in' vendor/rails/activesupport/lib/active_support/dependencies.rb:509:inrequire’
vendor/rails/railties/lib/commands/server.rb:39
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:inrequire’
script/server:3

This error occurred while loading the following files:
sqlite3

Request

Parameters:

None

Show session dump


flash: !map:ActionController::Flash::FlashHash {}

Response

Headers:

{“cookie”=>[],
“Cache-Control”=>“no-cache”}

When I run my helloworld,I get the same errror.I am just a
newbie.Please help me…

Thanks,
Regards,
Sugi.


#2

On Apr 6, 6:08 am, Sugi removed_email_address@domain.invalid wrote:

MissingSourceFile in Rails/infoController#properties

no such file to load – sqlite3

This means you haven’t got the sqlite3-ruby gem installed.

Fred