PRB RAILS (I am a beginner)

58 views
Skip to first unread message

NENESSE KEROS

unread,
Mar 25, 2015, 1:22:30 AM3/25/15
to rubyonra...@googlegroups.com
Hi,

Excuse me for my english.
After some difficulty, I managed to install Ruby 2.2.1 and Rails 4.2.1
on a machine windows 7 32-bit.
After create test project (rails new first_app)
When when I do rails server in folder first_app I obtains :
c:/Ruby22/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x86-mingw32/lib/sqlite3.rb:6:in
`require': cannot load such file -- sqlite3/sqli
te3_native (LoadError)
from
c:/Ruby22/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x86-mingw32/lib/sqlite3.rb:6:in
`rescue in <top (required)>'
from
c:/Ruby22/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x86-mingw32/lib/sqlite3.rb:2:in
`<top (required)>'
from
c:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.1/lib/bundler/runtime.rb:76:in
`require'
from
c:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.1/lib/bundler/runtime.rb:76:in
`block (2 levels) in require'
from
c:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.1/lib/bundler/runtime.rb:72:in
`each'
from
c:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.1/lib/bundler/runtime.rb:72:in
`block in require'
from
c:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.1/lib/bundler/runtime.rb:61:in
`each'
from
c:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.1/lib/bundler/runtime.rb:61:in
`require'
from
c:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.1/lib/bundler.rb:134:in
`require'
from
D:/bruno/Language_prog/RAILS/RailsProject/first_app/config/application.rb:7:in
`<top (required)>'
from
c:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:78:in
`require'
from
c:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:78:in
`block in server'
from
c:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in
`tap'
from
c:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in
`server'
from
c:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in
`run_command!'
from
c:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/commands.rb:17:in
`<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'


thank you for help

--
Posted via http://www.ruby-forum.com/.

botp

unread,
Mar 25, 2015, 4:29:14 AM3/25/15
to rubyonra...@googlegroups.com
it cannot load the file since it's probably not there. it's looking
for sqlite3...
you need to install sqlite3

NENESSE KEROS

unread,
Mar 25, 2015, 5:27:13 AM3/25/15
to rubyonra...@googlegroups.com
thank you for your response
how to install sqlite3 and what version ?

Sushruth Sivaramakrishnan

unread,
Mar 25, 2015, 5:30:26 AM3/25/15
to rubyonra...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7442cdae53bd44bdd9e21fdebb05b7c7%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

NENESSE KEROS

unread,
Mar 25, 2015, 6:21:50 AM3/25/15
to rubyonra...@googlegroups.com
i execute gem install sqlite3
install is ok but i don't found sqlite3.dll ?

thank you

Scott Ribe

unread,
Mar 25, 2015, 10:07:15 AM3/25/15
to rubyonra...@googlegroups.com, NENESSE KEROS
On Mar 25, 2015, at 4:20 AM, NENESSE KEROS <li...@ruby-forum.com> wrote:
>
> i execute gem install sqlite3
> install is ok but i don't found sqlite3.dll ?

The gem is the ruby bit which allows ruby to access sqlite. That's what you just installed.

The error is complaining about sqlite itself, which you have not yet installed.

So the StackOverflow question you were referred to before does have your answer, but not directly at the top. Look for the answer part way down the page from "Williams".

--
Scott Ribe
scott...@elevated-dev.com
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice





Reply all
Reply to author
Forward
0 new messages