Stuck with rails installation

Hello folks,

I have downloaded the rails installer(ruby 2.1) from
Install Ruby on Rails – Railsinstaller.org -”. 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’

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!

On Tue, Mar 3, 2015 at 5:53 AM, Hemant B. [email protected]
wrote:

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

Why not?


Hassan S. ------------------------ [email protected]

twitter: @hassan
Consulting Availability : Silicon Valley or remote

Did You do some changes in config database.yml file for accessing
database
also which database you are using?

On Tue, Mar 3, 2015 at 7:23 PM, Hemant B. [email protected]

Why not?

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

Hello Hemant,
I have specifically started a blog just for windows users working on
rails.
Please check this http://sushruth.me/.
It has just a couple of posts, but will definitely help you.

Suggestions welcome
Regards,
Sushruth

On Tue, Mar 3, 2015 at 7:27 PM, Hassan S.
<[email protected]

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 B.” [email protected]:

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 M. 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 B.” [email protected]:

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,

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
from blah blah blah…

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

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

Regards,
Sushruth

On Tue, Mar 3, 2015 at 7:47 PM, Hemant B. [email protected]

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

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.