Unable to install Ruby on Rails on Ubuntu 16.04 LTS

install ruby on rails ubuntu 18.04 lts
install rvm ubuntu
install ruby ubuntu
install ruby on rails ubuntu 18.04 digitalocean
install ruby 2.4 ubuntu
rvm install rails
uninstall ruby ubuntu
install rails 5

I just upgraded my system to Ubuntu 16.04 LTS (clean install) and tried to install Ruby using RVM. RVM itself installs fine (using this guide http://www.webupd8.org/2014/11/how-to-install-rvm-ruby-version-manager.html), but when I then try to install Ruby I get the following error:

user@user:~$ rvm install 2.3.0
Searching for binary rubies, this might take some time.  
No binary rubies available for: ubuntu/16.04/x86_64/ruby-2.3.0.  
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.  
Requirements installation successful.  
Installing Ruby from source to: /usr/share/rvm/rubies/ruby-2.3.0, this may take a while depending on your cpu(s)...  
ruby-2.3.0 - #downloading ruby-2.3.0, this may take a while depending on your connection...  
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current Dload  Upload   Total   Spent    Left  Speed  
     0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  
Warning: Failed to create the file ruby-2.3.0.tar.bz2.part: Permission denied  
0 13.5M    0 16384    0     0  19826      0  0:11:55 --:--:--  0:11:55 19811  
curl: (23) Failed writing body (0 != 16384)  
There was an error(23).  
Checking fallback: https://ftp.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.bz2
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current Dload  Upload   Total   Spent    Left  Speed
     0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
Warning: Failed to create the file ruby-2.3.0.tar.bz2.part: Permission denied  
     0 13.5M    0 16149    0     0   7324      0  0:32:16  0:00:02  0:32:14  7323  
curl: (23) Failed writing body (0 != 16149)  
There was an error(23).  
Failed download  
There has been an error fetching the ruby interpreter. Halting the installation.

Is that a general problem for 16.04? The exact method worked fine under 15.10. Any ideas how this can be fixed?

If you install rvm without sudo privileges, everything else should work as expected

If you have rvm installed, remove it using

rvm implode

or

rm -rf ~/.rvm

Then install rvm using

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable

Then install ruby with

rvm install 2.3.0

Use whichever version you wanna install.

Now go ahead and install rails

gem install rails

How To Install Ruby on Rails with RVM on Ubuntu 16.04 , If you install rvm without sudo privileges, everything else should work as expected. If you have rvm installed, remove it using rvm implode. or rm -rf ~/.rvm. Following are the main steps to install Ruby on Rails on Ubuntu Linux: Configure GNOME Terminal. Install YARN Package Manager. Install RVM (Ruby Version Manager is a tool for managing Ruby installation on Ubuntu). Install Ruby programming language. Install Rails framework.

It looks like rvm is trying to install the Ruby to /usr/share/rvm, which I think means that it's being installed at the system-wide level rather than the user level. Is that what you wanted? That being the case, it may be necessary to run rvm as sudo:

user@user:~$ sudo rvm install 2.3.0

For what it's worth, I install rvm as me (my user) so that I don't have to mess with privileges; and I'm the only user on the system that needs rvm.

How To Install Ruby on Rails with rbenv on Ubuntu 16.04 , In this guide, we'll install RVM on an Ubuntu 16.04 server, and then use that to This tutorial will take you through the Ruby on Rails installation process via RVM. with the -S flag to override some of this to allow curl to output errors if it fails. Hey, everyone. Today we will be setting up “ruby on rails” in one of the latest versions of ubuntu i.e. 16.04. We will go for rvm (Ruby Version Manager) which will let you manage work and switch between multiple ruby environments.

Try a reboot.

I had the same problem with two installs of Ubuntu 16.04 Both computers had the same problem, it was fixed after I rebooted.

rvm install ruby-2.5.0

Install Ruby On Rails on Ubuntu 16.04 Xenial Xerus, I'm on Ubuntu server 16.04 LTS and had to append my PATH in .bashrc with .​rbenv/rbenv/bin instead of .rbenv/bin , as mentioned above. We will be setting up a Ruby on Rails development environment on Ubuntu 16.04 Xenial Xerus. The reason we're going to be using Ubuntu is because the majority of code you write will run on a Linux server. Ubuntu is one of the easiest Linux distributions to use with lots of documentation so it's a great one to start with.

guides / Install Ruby on Rails on Ubuntu 14.04 Trusty Tahr, E: Unable to correct problems, you have held broken packages. Believe me, neither stackoverflow was able to help me with thie error. Anyone can help? CentOS 8 CentOS 7 Debian 10 Debian 9 Ubuntu 18.04 Ubuntu 16.04. we will install the LTS version of Node.js (v12.x). How To Install Ruby On Rails On Ubuntu 20.04.

How to Install Ruby on Rails on Ubuntu 20.04 LTS, A guide to setting up a Ruby on Rails development environment on Ubuntu 14.04 Trusty Tahr that I should install it on Ubuntu so I downloaded Ubunto 14.04 LTS (the desktop version). I seem to be unable to install other versions of Ruby. In this guide, we’ll install RVM on an Ubuntu 16.04 server, and then use that to install a stable version of Ruby and Rails. Prerequisites. This tutorial will take you through the Ruby on Rails installation process via RVM. To follow this tutorial, you need an Ubuntu 16.04 server with a non-root user. Installation

Install Ruby on Ubuntu: Everything You Need to Get Going, In this tutorial, I will show you how to install Ruby on Rails on Ubuntu 20.04 LTS. Fossa); Ubuntu 18.04 (Bionic Beaver) · Ubuntu 16.04 (Xenial Xerus) Ruby on Rails (RoR) is an open-source web application framework,  Howtoforge published a tutorial about setting up Ruby on Rails with a PostgreSQL database on Ubuntu 20.04 LTS. How to Install Ruby on Rails on Ubuntu 20.04 LTS. In this tutorial, I will show you how to install Ruby on Rails on Ubuntu 20.04 LTS. We will show you how to install and configure Rails with a PostgreSQL database..

Comments
  • In my case, it was caused by rvm_path set to local path. For more info, try this unix.stackexchange.com/a/440584/253876
  • Some occasions, after the rvm installation it's necessary reboot your system. Here I had this problem and did it and solved.
  • Thx for your quick response. I have previously tried this and it gives me the following error: sudo: rvm: command not found
  • Did you want to install it as system or user?
  • On user level would probably make more sense as you mentioned, although I'm the only user on the system.
  • Then I suggest reinstalling rvm as your user.
  • You being the only user on the system is an argument for installing it as your user rather than system. If there were multiple users, you'd have multiple copies of the rubies and gems taking up space. I have been installing rvm as my user for years on hosts where I am the only user. My life is way easier than if I had installed it as system. Try it, you'll like it. ;)