sqlite3/sqlite3_native (LoadError)

Last two days, I was trying to install rubyonrails,
I had installed the rails,ie gems install rail and sqlite3 ie gems
install sqlite3
using su user account, so I thought start the ' rails server ' now. 
But i was getting sqlite3/sqlite3_native (LoadError)

When I installed rails, sqlite3 I was using root user. Unfortunately 
SQLite3 gem does not update the GEM_HOME environment variable
correctly when you are logged in as root.

reference
http://www.petersens.ws/2012/08/ruby-on-rails-and-sqlite3

So I uninstalled the rails and sqlite3, then i logged as user account
and reinstalled the rails and sqlite3, then rerun rails server,  this 
time I got ' execJS autodetect could not find JavaScript '
And the solution to this install 'standalone JavaScript runtime' like
nodejs. Once I installed nodejs and rerun rails server; the server 
started working 'http://localhost:3000/'
http://community.spiceworks.com/topic/255293-linux-rails-server-
errors-with-execjs-autodetect-could-not-find-javascript
Platform 
--------------
ruby 1.9.3
Rails 4.0.0
fedora 18
Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s