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!
Fantastic! :D
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
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
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
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.
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.
Did you run:
sudo -u postgres createuser $USER -s
Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.