Stuck with rails installation.

60 views
Skip to first unread message

Hemant Bhargava

unread,
Mar 3, 2015, 8:54:59 AM3/3/15
to rubyonra...@googlegroups.com
Hello folks,

I have downloaded the rails installer(ruby 2.1) from
"http://railsinstaller.org/en". Installed it on my 32 bit machine. It
installed nicely.

It even created a skeleton app. Inside that app, I did a "bundle
install" just to make sure that every gem come in my application. I
could see numerous gems got installed after it. To my excitement, even
server was also running(rails s). But what happened later bursts my
excitement.

When I type "localhost:3000" in my browser, I see below error which I am
not able to get rid of.

ERROR LoadError: Please install the sqlite3 adapter: 'gem install
ativerecord-dqlite-adapter' <sqlite3 is not part of the bundle. Add it
to Gemfile.>

Fair enough message.

Big BUT is that I can not even install sqlite3 manually with gem install
sqlite3 or after adding it GemFile. It was already added in the GemFile
though.

I won't mind sharing my Gemfile if any one is interested to help me.

Cheers!

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

Hassan Schroeder

unread,
Mar 3, 2015, 8:58:03 AM3/3/15
to rubyonrails-talk
On Tue, Mar 3, 2015 at 5:53 AM, Hemant Bhargava <li...@ruby-forum.com> wrote:

> Big BUT is that I can not even install sqlite3 manually with gem install
> sqlite3 or after adding it GemFile.

Why not?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

Paramnoor Singh

unread,
Mar 3, 2015, 8:58:32 AM3/3/15
to rubyonra...@googlegroups.com
Did You do some changes in config database.yml file for accessing database also which database you are using?

--
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/269152b7720cb00f54bb899c84ed5641%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Sushruth Sivaramakrishnan

unread,
Mar 3, 2015, 9:00:21 AM3/3/15
to rubyonra...@googlegroups.com
Hello Hemant,
I have specifically started a blog just for windows users working on rails.
Please check this.
It has just a couple of posts, but will definitely help you.

Suggestions welcome
Regards,
Sushruth

--
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.

Hemant Bhargava

unread,
Mar 3, 2015, 9:07:28 AM3/3/15
to rubyonra...@googlegroups.com
>
> Why not?
>

I am sorry! Is that a question or you are asking me to share my GemFile?

Hemant Bhargava

unread,
Mar 3, 2015, 9:08:53 AM3/3/15
to rubyonra...@googlegroups.com
Paramnoor Singh wrote in post #1169545:
> Did You do some changes in config database.yml file for accessing
> database
> also which database you are using?
>

Hey Paramnoor,

Ohh. Do I need to install MySql first? I am not using any database right
now. I relying on sqlite completely.

Norbert Melzer

unread,
Mar 3, 2015, 9:09:33 AM3/3/15
to Rails Mailinglist

He is asking you to share the errormessage you get when trying to install manually, commands you invoke included! Oh an please don't screenshot, but copy and paste your terminal.

--
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.

Hemant Bhargava

unread,
Mar 3, 2015, 9:18:03 AM3/3/15
to rubyonra...@googlegroups.com
Norbert Melzer wrote in post #1169549:
> He is asking you to share the errormessage you get when trying to
> install
> manually, commands you invoke included! Oh an please don't screenshot,
> but
> copy and paste your terminal.
> Am 03.03.2015 15:05 schrieb "Hemant Bhargava" <li...@ruby-forum.com>:

Ohh. I apologise for not understanding his concern..
Message I get is:

> gem install sqlite3
ERROR: Could not find a valid gem 'sqlite3' <>= 0>, here is why:
Unable to download data from https://rubygems.org/ - SSL_connect
returned=1 errno=0 state=SSLv3 read server certificate B: certificate
verify failed <https://api.rubygems.org/latest_specs.4.8.gz>

Sushruth Sivaramakrishnan

unread,
Mar 3, 2015, 9:20:50 AM3/3/15
to rubyonra...@googlegroups.com
Hemant, visit this page https://gist.github.com/luislavena/f064211759ee0f806c88 
Follow either of the methods given there.

Regards,
Sushruth

--
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.

Hemant Bhargava

unread,
Mar 3, 2015, 11:38:25 AM3/3/15
to rubyonra...@googlegroups.com
Sushruth,

Thanks. This was a good lead.

But my problem does not end here. Now, I seems to have caught in some
other mess, it seems.

After copying the certificate from(gist.github..), I tried to start my
server again. All it gives me is:

'require' : can not load such file -- sqlite3/sqlite_native <LoadError>
from blah blah blah..



> Hemant, visit this page
> https://gist.github.com/luislavena/f064211759ee0f806c88
> Follow either of the methods given there.
>

Julio Papel

unread,
Mar 3, 2015, 12:20:45 PM3/3/15
to rubyonra...@googlegroups.com
Hello Hemant,

When I started learning rails I was using windows and like you I found many things I couldn't understand, then I switched to mac, all was easier. But the true is that till today the platform where I find myself more productive is on Ubuntu. On Ubuntu many of the tools are free and easier to install, I have a virtual Machine with Ubuntu and there's no issues, besides my own ignorance some times. So I advise you to go this route: Use Ubuntu, install RVM, Install Git, Install all that you want, I even use eclipse as a ruby source code editor, make it your world first, and then for each rails project create a small shell script inside your skeleton folder, mine is like this:
Filename: Startenv.sh
Content:
#! /bin/bash --login

rvm use ruby-2.0.0-p598@toy_app --create
exec /bin/bash --login

echo 'Toy_App Environment Ready to Rock and Roll!'

#-------------------------------------------------------------------#

Then I just replace 'toy_app' with the name of my_app. Before I start working I go to that folder and execute
./startenv.sh

And I do this for each app, all gems remain separated with RVM, I do not know exactly why, but using this process I found myself without any path issues like the ones that happens in Windows or on the MAC due to XCode. All my projects flow nice, the only questions I now have are ruby code related, and so far all the answers are on Google.

Hope this makes sense to you!
If not let me know, I don't mind showing you how I do-it.

Cheers,
Julio
--
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/269152b7720cb00f54bb899c84ed5641%40ruby-forum.com.

Paramnoor Singh

unread,
Mar 3, 2015, 11:59:27 PM3/3/15
to rubyonra...@googlegroups.com
Hello Hemant,


           I check the error it not really due to database missing. When I first time working on window it occur then I create "cacert.pem" file in folder where rails install. Please check attach file and the code.

cacert.pem
Reply all
Reply to author
Forward
0 new messages