Ask A Question

Notifications

You’re not receiving notifications from this thread.

Setup Ubuntu 17.04 Zesty Zapus Discussion

Chris Oliver asked in General

FYI installed Rails 4.2.8 with ruby 2.4.1 and Postgres 9.6 on Zesty Zapus beta2 without any problem following the guide and updating just some packages. ;) Thanks Chris!

Reply

Fantastic! :D

Reply

I am getting the following error while installing nodejs

## Confirming "zesty" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/...

## Your distribution, identified as "zesty", is not currently supported, please contact NodeSource at https://github.com/nodesour... if you think this is incorrect or would like your distribution to be considered for support

Reply

It's because this article suggests installing Node.js 4, which is an old version. Instead of running

curl -sL https://deb.nodesource.com/... | sudo -E bash -

run

curl -sL https://deb.nodesource.com/... | sudo -E bash -

which will install Node.js 6

Reply

awesome article,
i just did all steps and they are running as it is.
thank you to author

Reply
Chris Eze Onyekachi Ceo Chris Eze Onyekachi Ceo

am having issues with creating a user on postgresql

Reply
Vivekananda Tagore Vivekananda Tagore

I am curious to know, why you recommended rbenv when installing ruby. The steps in rvm look a lot simpler and intuitive than in rbenv.

Reply
Grant Morgan Grant Morgan

Really good article - very helpful:

On Ubuntu 17.04, following your article from scratch, also had to do:

sudo gem install rake
sudo gem install rubocop

then I was able to run:
gem install rails -v 5.1.2

and it all worked!

Thanks for that!
G

Reply
Brendan Faulds Brendan Faulds

got error when creating MYSQL DB: YAML syntax error occurred while parsing /home/xxxxxxx/myapp/config/database.yml. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Error: (<unknown>): could not find expected ':' while scanning a simple key at line 17 column 3

Reply
Brendan Faulds Brendan Faulds

Whoops - didn't leave a space between : and my password in the database.yml config file - all good now ! Thanks !

Reply
Doug Vincent Doug Vincent

I'm getting a few errors after following this method and trying to create a new rails app (with postgres):
1.

The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.

2.

There was an error while trying to write to
`/home/alan/.bundle/cache/compact_index/rubygems.org.443.29b0............
It is likely that you need to grant write permissions for that path.

3.

Could not find minitest-5.10.3 in any of the sources
Run `bundle install` to install missing gems.

^^ which doesn't work because if I run bundle install, I get a repeat of error 2.

Reply

That's a nice tutorial.

Thanks,
Kristaps

Reply
Lukas Balabis Lukas Balabis

Very thorough tutorial. Much appreciated.

Reply

Using PostgreSQL when I run rake db:create, I get the following error:
PG::ConnectionBad: FATAL: role "xxx" does not exist
where xxx is my Linux username.

I'm using Xubuntu 17.04 with Rails 5.1.4 and Ruby 2.4.2.

Reply

Did you run:
sudo -u postgres createuser $USER -s

Reply
Samuel Ladapo Samuel Ladapo

Ruby installed successfully ! Thank you.

Reply
Sebastian Bartus-Kunz Sebastian Bartus-Kunz

Couldn't install rails 4.2.9 with ruby 2.3.3 until i installed ruby-dev ("sudo apt install ruby-dev")

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.