Setup Ubuntu 15.04 Vivid Vervet Discussion
Worked like a charm testing out on 15.04 with the exception I had to change the repository back to utopic for nodejs and had to add the gpg key for rvm.. great article.. thanks
Awesome! I'll be sure to tweak those soon since the final release comes out soon!
Minor inconsistency at the top of the post you recommend 14.10 Trusty Tahr. The 14.10 release is actually Utopic Unicorn, and 14.04 LTS is Trusty Tahr.
Ah! Thanks. You find my copy-paste job from last version. ;)
I tried to install using rvm but I get this error.
Error running 'requirements_debian_update_system ruby-2.2.1',
showing last 15 lines of /home/bagus/.rvm/log/1428510134_ruby-2.2.1/update_system.log
++ case "${TERM:-dumb}" in
++ case "$1" in
++ [[ -t 2 ]]
++ return 1
++ printf %b 'There has been error while updating '\''apt-get'\'', please give it some time and try again later.
404 errors should be fixed for rvm to proceed. Check your sources configured in:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
\n'
There has been error while updating 'apt-get', please give it some time and try again later.
404 errors should be fixed for rvm to proceed. Check your sources configured in:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
++ return 100
Requirements installation failed with status: 100.
Sounds like you've got issues with apt-get running. Other people have had the same issue it looks like so you'll want to make sure that you can run "sudo apt-get update" successfully it seems.
It looks like the PPA hasnt' been updated for 15.04 yet. For now, replace that step with "sudo apt-get install nodejs" and you should be fine.
Some problems before and after install of Ruby 2.2.2 with rbenv on (l)ubuntu 15.04:
1. The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
Solution for me was
sudo apt-get install libssl-dev
2. On an error:
Sorry, you can't use byebug without Readline. To solve this, you need to rebuild Ruby with Readline support. If using Ubuntu, try sudo apt-get install libreadline-dev
and then reinstall your Ruby.
Solution for me was
sudo apt-get install libreadline-dev
CONFIGURE_OPTS="--with-readline-dir=/usr/include/readline" rbenv install 2.2.2
I don't know but I almost every time have to " sudo /etc/init.d/postgresql restart
"
The nodejs ppa:chris-lea/node.js sometimes you get the 404 error
it is better just to go with the
---
curl -sL https://deb.nodesource.com/... | sudo bash -
----
then
---
sudo apt-get install -y nodejs
---
this works fine every time
also for postgresql when creating user some times you get the
---
createuser: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
---
restart with
sudo /etc/init.d/postgresql restart
and your good to go
What is the advantage of the nodejs you get from the PPA? Ubuntu seems to have nodejs in their repo by default also.
The difference is just that the PPA gets updated more often (if the maintainer keeps up to date) vs the Ubuntu repo which only gets updated once every major version change. You'll get a stable version of Nodejs, but it will only receive small updates and security fixes, not major version changes.
many thanks, but i have a problem installing rails with this command: gem install rails -v 4.2.1
this is the result:
ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
no such name (https://api.rubygems.org/ap...
please help me to find the solution, thanks again
Under your "Using rvm" instructions, they require that you be using a 'bash' shell (the commands would not work with a 'tcsh' shell). Also, the curl command errored the first time, requiring the downloading of a gpg key from keys.gnupg.net and then doing it again. Finally, (if you're installing as root, anyway) the path was /usr/local/rvm/scripts/rvm ..not ~/.rvm/scripts/rvm (I typically run as root while doing the initial setups of various services and software on a new machine.)
I got error on Ubuntu 15.04 with mysql2:
Gem::LoadError: can't activate mysql2 (~> 0.3.13), already activated mysql2-0.4.1. Make sure all dependencies are added to Gemfile.
But this will help:
http://stackoverflow.com/qu...
Works great, I only had a problem with the mysql2 gem. I fixed that by doing a downgrade to version 0.3.18.
gem 'mysql2', '~> 0.3.18'
"Access denied for user 'root'@'localhost' (using password: NO)Please provide the root password for your MySQL installation" - getting this message when run "rake db:create" I have set the password in databases.yml password to my root password file but show this problem. Thanks in advance. (Note: I am newbie in CLI environment)
I just googled and found this:
https://github.com/nodejs/n...
Since it is part of the repositories it is no longer required to add the ppa. I am using Ubuntu 15.04
I'm getting this error on
$ rake db:create
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).
Gem::LoadError: can't activate mysql2 (~> 0.3.13), already activated mysql2-0.4.2. Make sure all dependencies are added to Gemfile.
Tasks: TOP => db:create
(See full trace by running task with --trace)
[EDIT]
Fixed it by adding
gem 'mysql2', '~> 0.3.18'
instead of
gem 'mysql2'
in Gemfile of the app.
## Great post Thanks.
Hi thevaliantx, you have to modify the Gemfile with that version for mysql2 gem.Then run "bundle install".
That's nice! I'm trying to be a full stack web developer, so HTML and CSS is mandatory, besides much more things to learn. But I'm not following the Ruby path, I was just trying to know how it works, but instead I'm really focused in Node.js. I'm not a professional programmer too, but maybe someday.
A JavaScript book that I always recommend is: "Eloquent JavaScript - second edition". It's divided in three parts, the last one is about Node.js. I thinks i'ts a good book for new comers to the language. You can read it online for free: http://eloquentjavascript.net/