Ask A Question

Notifications

You’re not receiving notifications from this thread.

Setup Ubuntu 16.04 Xenial Xerus Discussion

Chris Oliver asked in General
Tom Johnston Tom Johnston

Dude. Epic. But you got me there. Thanks a mill.

Reply
Kleberson do Rego Lima Kleberson do Rego Lima

Excellent tutorial! Thank you Chris!

Reply

Such a nice tutorial bro....Great

Reply
shishir kumar shishir kumar

Thank you, I was very worried installing it on ubuntu, your tutorial was so beginner friendly.

Reply
Gleydson Tavares Gleydson Tavares

This is the best Rails installation tutorial. Thanks man.

Reply
Renato Medeiros Renato Medeiros

Congrats for this nice article!!!

Reply

Very helpful, thanks. But I got a failure on Ubuntu 16.04.2 when it runs oracle-java7-installer. I already have Java8 installed. Here's the error messages:

=========================
me@myhost:~$ sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs
... (bunch of installs that work, then ...) ...
Setting up oracle-java7-installer (7u80+7u60arm-0~webupd8~1) ...
Downloading Oracle Java 7...
--2017-08-08 14:38:03-- http://download.oracle.com/...
Resolving download.oracle.com (download.oracle.com)... 104.107.60.99, 104.107.61.90
Connecting to download.oracle.com (download.oracle.com)|104.107.60.99|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.co... [following]
--2017-08-08 14:38:03-- https://edelivery.oracle.co...
Resolving edelivery.oracle.com (edelivery.oracle.com)... 2600:1407:21:28e::2d3e, 2600:1407:21:2ae::2d3e, 23.194.90.202
Connecting to edelivery.oracle.com (edelivery.oracle.com)|2600:1407:21:28e::2d3e|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/... [following]
--2017-08-08 14:38:03-- http://download.oracle.com/...
Connecting to download.oracle.com (download.oracle.com)|104.107.60.99|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-08-08 14:38:04 ERROR 404: Not Found.

download failed
Oracle JDK 7 is NOT installed.
dpkg: error processing package oracle-java7-installer (--configure):
subprocess installed post-installation script returned error exit status 1
... (more installs that work) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
oracle-java7-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)

me@myhost:~$ java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
========================

Help?

Reply

i have got problem in setting up sql.. it says E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). would you please tell me the solution

Reply

https://uploads.disquscdn.c...

followed your tutorial and steps were smooth unexpected! :D thanks much!

Reply

in my pc while installing rails ial getting this error:
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass

Reply

somebody help me please...

Reply
MIGUEL ANGEL GIL RODRIGUEZ MIGUEL ANGEL GIL RODRIGUEZ

hello a question I have my project rvm 2.3.1 and rails 5.1.1 which version should I install, thanks

Reply

Thanks for clear road. Before, I tried to install with other guides but couldn't successful. With you, it was not only easy also was pleasure. Now all running. Really thanks.

Reply
Jared Truscott Jared Truscott

Thank you so much for this, it was awesome and extremely helpful. One suggestion to help out the impatient (such as myself). Use '--verbose' with the installs where applicable; makes it much easier to know that it's actually working.

Reply

The official rvm is recommnded to be installed by using this repo: https://github.com/rvm/ubun...

Reply
Kumuda Narayan Kumuda Narayan

hai ,very good blog ..i have a doubt when we install mysql in root and one more command that u r using...sudo apt-get install mysql-server mysql-client libmysqlclient-dev... in u r blog its giving some problem ....then how to create database and create a table and link to a html page and to get ouput on localhost:3000..if any blog u have created please
refer that

Reply

Great guide

Reply
Lucas Alastuey Lucas Alastuey

excellent recipe !!

Reply
i had error bundler: command not found: spring
Reply

How it worked for me:

FYI: Instead of

sudo -u postgres createuser chris -s

I used:

sudo -i -u postgres createuser chris -s

Also, in the config/database.yml file, under pool:5, add

  host: localhost
  username: pguser
  password: pguser_password

(pguser) + (pguser_password) is the username and password you created. Also add this to the "test" envrionment section.

And finally if rails server doesn't work, if you're using a Virtual Server like Digital Ocean, use:

rails server --binding=server_public_IP

where (server_public_IP) is the server's IP address. Then use http://server_public_IP:3000 in your web browser.

Reply

Access denied for user 'root'@'localhost' (using password: NO) then you need to update your config/database.yml file to match the database username and password.
getting same error how to update cofig/database.

Reply
Join the discussion
Create an account Log in

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

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

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