I'm having some issues regarding the installation of RVM. I'm working with a freshly clean-installed mac, so previous folders and that sort of thing shouldn't be an issue. The steps I've taken so far are as follows:
Downloaded XCode Command Line Tools
Installed Homebrew
Verified I had Git installed
Used Homebrew to install gpg
Installed the gpg key thing
Used the \curl -L https://get.rvm.io | bash -s stable command to try to install RVM, and was met with this error:
df: /Users/rohan/.rvm: No such file or directory
I assumed that the command in number 6 automatically created the .rvm folder, so I'm a little unsure of how to proceed. Any help would be greatly appreciated!
I was experiencing the same issue and now it works! You did nothing wrong. It's something wrong with the RVM website. Try to run the same command again and you will see everything works now!
You can do these steps as below:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable
for more informations, you can check at official document:
http://rvm.io/
update: You can try to do this command
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
then run \curl -sSL https://get.rvm.io | bash -s stable again
Related
Hi my understanding of the terminal is small. I'm trying to install rvm can someone tell me how to unset GEM_HOME? I have a feeling I need to edit some file, but I don't know if its a command line or a file I need to open and comment out. I'm running Mac OSX 10.14.6 Mojave?
Thank you
Joshuas-iMac:~ compy$ \curl -sSL https://get.rvm.io | bash -s stable
Downloading https://github.com/rvm/rvm/archive/1.29.9.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.9/1.29.9.tar.gz.asc
Found PGP signature at: 'https://github.com/rvm/rvm/releases/download/1.29.9/1.29.9.tar.gz.asc',
but no GPG software exists to validate it, skipping.
Upgrading the RVM installation in /Users/compy/.rvm/
RVM PATH line found in /Users/compy/.mkshrc /Users/compy/.profile /Users/compy/.bashrc /Users/compy/.zshrc.
RVM sourcing line found in /Users/compy/.profile /Users/compy/.bash_profile /Users/compy/.zlogin.
Upgrade of RVM in /Users/compy/.rvm/ is complete.
* WARNING: you have set GEM_HOME="/Users/compy/.gem/ruby/2.5.1"
This is conflicting with RVM. Make sure to call:
unset GEM_HOME
Thanks for installing RVM 🙏
The answer is on the error logs:
unset GEM_HOME
On comman line do:
unset GEM_HOME ; \curl -sSL https://get.rvm.io | bash -s stable
I'm actually a newbie to Ubuntu (14.04) and RoR (development). So I want to get some help to resolve my error.
I was following a video tutorial and stuck in a command i.e.
rvm get head and rvm reload
that resulted me as
No command 'rvm' found, but there are 20 similar ones
rvm: command not found
I interpreted it as RVM is not installed on Ubuntu. So I tried for it from many sources like https://stackoverflow.com/a/22096382/3251831 and https://gorails.com/setup/ubuntu/14.04#ruby but when I run the command
source ~/.rvm/scripts/rvm
It gives a message like
bash: /home/root2/.rvm/scripts/rvm: No such file or directory
I'm stuck here.
sounds like you need to install rvm
follow the instructions on rvm.io
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable
try and reload your entire shell or
source ~/.bash_profile
I just walk-through with the installation of Ruby on Rails on Ubuntu using RVM.
First I have logged in as the root user.
Then I started with the following commands.
\curl -sSL https://get.rvm.io | bash -s stable --rails
It has been installed without any error.
source ~/.rvm/scripts/rvm
When I run this command. It showing the error as bash: /home/XXX/.rvm/scripts/rvm: No such file or directory
I added the [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" command in my .bashr file.
Install RVM:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
Now you will get a success message. Then, run this command:
\curl -sSL https://get.rvm.io | bash -s stable
See http://rvm.io/ for more info.
I think they may have moved some files around fixed with:
source /usr/share/rvm/scripts/rvm
After installing rvm, try:
source ~/.rvm/scripts/rvm
If the above command throws some issue, try this command:
source /usr/local/rvm/scripts/rvm
Firstly no need to go for sudo access while installing rvm, just follow the very basic commands below
$\curl -sSL https://get.rvm.io | bash -s stable
This will install rvm.
$ rvm list known
# MRI Rubies
[ruby-]1.8.6[-p420]
[ruby-]1.8.7[-p374]
[ruby-]1.9.1[-p431]
[ruby-]1.9.2[-p320]
[ruby-]1.9.3[-p545]
[ruby-]2.0.0-p353
Install a version of ruby as required.
$ rvm install 2.0.0-p353
Now you can use the version of ruby for which you need to install rails as a gem.
$ rvm use 2.0.0
Also you can make it default if you want so
$ rvm use 2.0 --default
Next you can install rails as a gem.
$ gem install rails
gems should never be installed with sudo access as they change from project to project. rvm helps in managing the different versions of ruby in one m/c. You can also use gemsets to isolate gems and specific versions from one application to another.
just create ~/.rvm/scripts/rvm directories, then try to install rvm but make sure you are not logged in as root.
This source /usr/share/rvm/scripts/rvm works for me on ubuntu 20.04.
I changed the local in /usr/local/rvm/scripts/rvm to share
I assume that you have installed the rvm.
Is generally not recommend to install RVM as a root user because of umask security risk. Try running these commands as a user.
Downloading RVM (Do not sudo this command)
\curl -sSL https://get.rvm.io | bash -s stable --rails
Then you'll need to add the location to sources(You'll probably need to reload your bash for rvm to work)
source ~/.rvm/scripts/rvm
You can install your desired version like so(replace ruby_version with one you would like to install, eg 2.1.4)
rvm install ruby_version
To list the available version on your machine
rvm list
To use a version of ruby run
rvm use ruby_version
If you have any trouble refere to the RVM website
As root, you traditionally don't have a /home folder. Root's home is different than a normal user.
You very likely don't want to install RVM as root.
Please do read the information at http://rvm.io specifically the installation notes.
Can you use sudo find to locate the correct path of the rvm directory? If you find the path, you should be able to rerun the source ~/.rvm/scripts/rvm command with the correct path.
Also, I fully agree with the previous answers about not creating it as root. DigitalOcean was a pretty good tutorial on adding users https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04
Alright so when you get a failure message "No such file or directory",
type
\curl -L https://get.rvm.io | bash -s stable
in your terminal.
There will be a GPG signature verification failure.
Bellow that failure there would be a link for github and a key something like this
gpg2 --recv-keys 409B6B...
So download a tar file from the github link and run this code to install GPG:
sudo apt install gnupg2
and run that key :
gpg2 --recv-keys 409B6B...
next run the code:
\curl -L https://get.rvm.io | bash -s stable
it will show you installing the rvm
and then you can run:
source ~/.rvm/scripts/rvm
thats it you are good to go
If you install rvm via apt-get you can add the following line into ~/.zshrc or ~/.bashrc
source /etc/profile.d/rvm.sh
For me all the above methods didn't workout.
After the installation and updates, still the terminal shows this "error bash: /root/.rvm/scripts/rvm: No such file or directory"
The simple method which helps me to solve this error is :
Show Hidden Files
Go to the Home (where the bash scripts are stored)
Edit the .bashrc
At the bottom you can find some lines about rvm
just clear the rvm lines and save the file.
Open terminal and check it.
Your surest bet is to use home brew. Funny part is if you try brew upgrade ruby, you will have an error if brew wasn't used to install ruby in the first instance so use:
$ brew install ruby
Then afterwards use
$ brew upgrade ruby
You may need to close and reopen your terminal to see the effect of the upgrade by typing
$ ruby -v
I found a few posts regarding installing rvm, but none of them apply here. On a fresh VM installation on Koding, I've followed the instruction to install rvm
\curl -sSL https://get.rvm.io | bash -s stable
This seems to work fine, there are no errors downloading the 2 .tar.gz and .tar.gz.asc files
Then when i activate rvm using :
source ~/.rvm/scripts/rvm
that's when i get the error message "bash: /home/railspadawan/.rvm/scripts/rvm: No such file or directory".
I checked .rvm and the scripts directory is missing. I experienced the same problem on Nitrous.io, as well.
It wasn't working as the gpg signature verification had failed. I downloaded the signatures and voila! it works now.
rvm has started enforcing GPG signing and the problem surfaced some 3-4 days back (https://github.com/wayneeseguin/rvm/issues/3110). Looks like a necessary step from now for all new rvm installations.
1) gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
This installs GPG signatures. rvm has started enforcing GPG signing and the problem surfaced some 3-4 days back (https://github.com/wayneeseguin/rvm/issues/3110).
Steps 2 & 3 are unique to Nitrous.io and are a result of error messages during the rvm install.
2) unset GEM_HOME
3) added source ~/.profile to .bash_profile
followed by the rvm install steps
1) $ \curl -L https://get.rvm.io | bash -s stable
2) source /home/action/.rvm/scripts/rvm
cheers,
shalini
I am trying to install RVM on my Ubuntu machine.
I have used curl to get RVM, but some RVM commands (install, requirements) throw this apt-get error:
There has been error while updating 'apt-get', please give it some time and try again later.
For 404 errors check your sources configured in:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
type rvm | head -1 returns
rvm is a function
-bash: type: write error: Broken pipe
which gem
/usr/bin/gem
I have checked the "Run command as a login shell" option
Steps followed from this tutorial:
sudo apt-get install curl
curl -L get.rvm.io | bash -s stable --auto
. ~/.bash_profile
rvm requirements - doesn't work properly
I have also looked at the official RVM documentation, but it seems to be very similar.
Any ideas?
UPDATE: I managed to do it. I disabled all the third party ppa URLs and it installed smoothly.
There are some important packages your system needs before install rvm. Run at the terminal:
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev \
curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev \
sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake \
libtool bison subversion nodejs
Then install rvm with:
curl -L https://get.rvm.io | bash -s stable --ruby
Now you need to put a setting in your .bashrc to add rvm to PATH for scripting. Run:
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
Open a new terminal and test rvm.
run
sudo apt-get update
sudo apt-get install build-essential
and then try again.
Hye Guys!!
I got the solution. Actually error is because the information we need for installation is not available at sever define for software & update. I change it to from my local "Server from India" (In my case) to "Main Server".
It's working perfectly for me now :)
I was having the same problem with my install, and then I fully read the details that terminal left once the install was finished.
Try using source /usr/local/rvm/scripts/rvm
Once I did that, the function type rvm | head -1 returned rvm is a function
In my Case i fixed the error by:
rvmsudo rvm install 1.9.3
rvm --default 1.9.3
rvmsudo rvm remove 1.9.3
rvm install 1.9.3
Source
Try disabling repository which appear at 404 sudo apt-get update or viewing logs rvm. The fact is that when you install rvm is trying to update a list of your packages and if you have 404 to go to bed =)
\curl -L https://get.rvm.io | bash -s stable --ruby .
paste this in your terminal window.I used this.It worked for me.for RVM for ruby
\curl -L https://get.rvm.io | bash -s stable --rails .
Use these to install RVM with ruby on rails
For people that know nothing about Linux or are newbies to Linux (like me) those are steps how to solve this (explanation, that was given above, was not that clear for me :) ).
Go to Package Manager, tab Settings, Preferences
In the opened window you'll see Other Software tab or something like that with links to servers. In my case one of these (it's mentioned in the error log that was produced by rvm) was causing errors and was not available (404 errors). I just unchecked it.
run rmv dependencies only when you closed Package Manager, or you'll get error saying that something is locked at the moment.
And everything now is installed successfully! :)
The most common symptom of this problem occurs (as seth2810 hinted at) with non-zero exit codes from an apt-get update command, which rvm requirements expects. You should run this command yourself (with sudo) and check for any problems.
If you have 404s in the output, check that the package sources for the bad URLs are still correct/current. You can remove package sources more easily with sudo apt-get install software-properties-common, followed by sudo add-apt-repository --remove {URL_OF_PROBLEM_PACKAGE_SOURCE} for each failed url.
If you have something hinting at packages with 'unmet dependencies', try sudo apt-get -f install. This command attempts to fix incomplete installs by fetching missing packages and works most of the time. Otherwise... by this point you probably have a more specific error to google for anyway!