Ask A Question

Notifications

You’re not receiving notifications from this thread.

Setup Ubuntu 14.04 Trusty Tahr Discussion

Chris Oliver asked in General

as of Sep/6/2015 this guide is still on point. great job and thank you for this :)

Reply

I keep it updated as much as I can! :)

Reply

Guide that finally that let me install rails without visiting stackoverflow again :)

Reply

That's my goal!

Reply

Sounds like you don't have an SSH key on your machine. You might need to generate a new one or install an old one if you have one you created previously.

Reply
Prasanna Moharana Prasanna Moharana

while try to enter

ssh -T git@github.com
it shows me Permission denied (publickey).

Reply
Leonardo Godoy Leonardo Godoy

Hi Prasanna,

When you put the follow command:

git config --global color.ui true
git config --global user.name "YOUR NAME"
git config --global user.email "YOUR@EMAIL.com"
ssh-keygen -t rsa -C "YOUR@EMAIL.com"

You should put your own email.

After that, you need to create new account on www.github.com, next, you need to create a new ssh key, and, after that, you can put the 'ssh -T "YOUR@EMAIL.com"' command. But, you should put YOUR OWN EMAIL, not "git@github.com" email

Try, and you'll see it works

Greets!

Reply
Prasanna Moharana Prasanna Moharana

Hello am facing an issue in gems installation. PS. already tried sudo apt-get install build-essential
-sudo apt-get install libmagickwand-dev
and all those but till error arise..
tried lots of command but gems installation showing error.

Reply
Leonardo Godoy Leonardo Godoy

are you try with "sudo gem install..."? Maybe works

Reply

Run "sudo apt-get install libgmp-dev"

Reply

when i try to visit via http://localhost:3000 i get This webpage is not available. ERR_CONNECTION_REFUSED

~/myapp$ rails server

=> Booting WEBrick

=> Rails 4.2.4 application starting in development on http://localhost:3000

=> Run `rails server -h` for more startup options

=> Ctrl-C to shutdown server

[2015-09-16 18:43:18] INFO WEBrick 1.3.1

[2015-09-16 18:43:18] INFO ruby 2.2.3 (2015-08-18) [x86_64-linux]

[2015-09-16 18:43:18] INFO WEBrick::HTTPServer#start: pid=4826 port=3000

Reply

When I enter 'ssh -T git@github.com' I am getting something like this,

The authenticity of host 'github.com (192.30.252.130)' can't be established.

Reply

Its working now, but when I enter rake db:create, I am getting,

Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).

Reply
Julián Hernández Julián Hernández

I have an error: "specified 'mysql2' for database adapter but the gem is not loaded..."

Reply

use

gem 'mysql2', '~> 0.3.18' in gem file

Reply

Great job! I appreciate your help! TY so much! But, i have one information that can be necessary and important to someone.

The version of my ubuntu is 14.04, and the current version of the mysql2 is installed with the last version (stable) ruby.

If
you have a problem similar as: " Gem::LoadError Specified 'mysql2' for
database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your
Gemfile", and your server not work, the solution can be a following:

Open
your folder that contain your project, and find your Gemfile. In the
gemfile, add the version of the mysql2 '~> 0.3.20' . For example:

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.4'
# Use mysql as the database for Active Records
gem 'mysql2', '~> 0.3.20'

After these steps, you can be continue your setup normally.

Regards!

Diego Cassol.

Reply

helped me! Thanks

Reply

Excellent..! Now I can achieve my purpose....thank you very much

Reply
Marco A. Muñoz R. Marco A. Muñoz R.

Thanks, ready to learning RoR

Reply

Hi there. I encountered some problems when setting up ruby on rails using this tutorial, if you have time please take a look at my question on stackoverflow:

http://stackoverflow.com/qu...

Reply
Geologist UareA Geologist UareA

Great! Thanks.

Reply

Both mac and ubuntu guides are awesome

Reply

amazing, thanks!

Reply

Worked great, thanks! Just one additional step for Postgre, before doing rake db:create I had to change all instances of "peer" to "md5" in "/etc/postgresql/9.1/main/pg_hba.conf" and run "sudo service postgresql restart". More information: http://stackoverflow.com/a/...

Reply

Hi, I am new on ruby, and i tried to install ruby as mentioned in this article (I am using linux mint 17.2, I think it would be the same with ubuntu 14.04 right?) and I got this error :

Downloading ruby-2.2.3.tar.gz...
-> https://cache.ruby-lang.org...
error: failed to download ruby-2.2.3.tar.gz

also I've tried for the other version, but end up with the same error. I think the issue is not the network because I tried manually download the file and it was works. What should I do ?

Thank you.

Reply

This is the best guide and obviously the most popular on Google. Its #1 guide. Even Youtube videos are not more explanatory than this guide.

Reply
Ahesanali Suthar Ahesanali Suthar

While installing ruby using rbenv i got
compilation error it says
Ssl_v3 undefined something like it.
Even though i have installed libssl-dev too.

Reply
Yongkai Zhang Yongkai Zhang

I'm trying to install ruby 2.2.3 in my ubuntu. I'm running this ubuntu from a bootable Disk with persistence.

I followed the guide above until rbenv install 2.2.3, then I received a installation failed message. the message is as shown below:
-------------------------------------------------------------------------------------------------------------------------------------------
BUILD FAILED (Ubuntu 14.04 using ruby-build 20151226)

Inspect or clean up the working tree at /tmp/ruby-build.20151228054323.20365
Results logged to /tmp/ruby-build.20151228054323.20365.log

Last 10 log lines:
The Ruby openssl extension was not compiled.
The Ruby readline extension was not compiled.
The Ruby zlib extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Try running `apt-get install -y libssl-dev libreadline-dev zlib1g-dev` to fetch missing dependencies.

Configure options used:
--prefix=/home/ubuntu/.rbenv/versions/2.2.3
LDFLAGS=-L/home/ubuntu/.rbenv/versions/2.2.3/lib
CPPFLAGS=-I/home/ubuntu/.rbenv/versions/2.2.3/include
-------------------------------------------------------------------------------------------------------------------------------------------

Can anyone please teach me what is wrong and how I can solve it?
Thank you very much.

Reply
Yongkai Zhang Yongkai Zhang

UPDATED: I managed to solve it. What i did was to fetch missing dependencies with super user right.
The command below will fetch the missing dependencies:

sudo apt-get install -y libssl-dev libreadline-dev zlib1g-dev

Then I run rbenv install 2.2.3 and it worked

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.