Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am going crazy with this problem. I've installed rvm and re-installed a million times, but it just isn't working.
I have a fresh install of centOS 6.3 and when I go to install rvm, it completes, but then gives me a weird error when installing ruby. Here is the trace:
[pushprod#ruby-prod webapps]$ \curl -#L https://get.rvm.io | bash -s stable --autolibs=3 --ruby
######################################################################## 100.0%
Please read and follow further instructions.
Press ENTER to continue.
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1062k 100 1062k 0 0 609k 0 0:00:01 0:00:01 --:--:-- 1533k
Installing RVM to /home/pushprod/.rvm/
RVM PATH line found in /home/pushprod/.bashrc /home/pushprod/.zshrc.
RVM sourcing line found in /home/pushprod/.bash_profile /home/pushprod/.zprofile.
# RVM: Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.io/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Cheatsheet: http://cheat.errtheblog.com/s/rvm
# Screencast: http://screencasts.org/episodes/how-to-use-rvm
# In case of any issues run 'rvm requirements' or read 'rvm notes'
Installation of RVM in /home/pushprod/.rvm/ is almost complete:
* To start using RVM you need to run `source /home/pushprod/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.
# pushprod,
#
# Thank you for using RVM!
# I sincerely hope that RVM helps to make your life easier and
# more enjoyable!!!
#
# ~Wayne
rvm 1.20.9 (stable) by Wayne E. Seguin <wayneeseguin#gmail.com>, Michal Papis <mpapis#gmail.com> [https://rvm.io/]
Searching for binary rubies, this might take some time.
No binary rubies available for: centos/6.4/x86_64/ruby-2.0.0-p195.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for centos, might require sudo password.
There is no checksum for 'https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6' or 'RPM-GPG-KEY-EPEL-6', it's not possible to validate it.
This could be because your RVM install's list of versions is out of date. You may want to
update your list of rubies by running 'rvm get stable' and try again.
If that does not resolve the issue and you wish to continue with unverified download
add '--verify-downloads 1' after the command.
There is no checksum for 'https://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm' or 'epel-release-6-8.noarch.rpm', it's not possible to validate it.
This could be because your RVM install's list of versions is out of date. You may want to
update your list of rubies by running 'rvm get stable' and try again.
If that does not resolve the issue and you wish to continue with unverified download
add '--verify-downloads 1' after the command.
error: /home/pushprod/.rvm/archives/RPM-GPG-KEY-EPEL-6: import read failed(2).
error: open of /home/pushprod/.rvm/archives/epel-release-6-8.noarch.rpm failed: No such file or directory
Any ideas on what the problem might be? this is killing me!
Thanks in advance
I encountered the same issue. Try installing the EPEL RPM referenced in the error message;
error: open of /home/<username>/.rvm/archives/epel-release-6-8.noarch.rpm failed: No such file or directory
Download it from the following URL(also referenced in the rvm output):
https://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
then enter;
rvm get stable
The above steps have seemed to get rvm running properly for me.
Related
I'm trying to install any Ruby version manager, and then install Rubocop. "brew doctor" says my system is fine, and I recently upgraded laptops from MacOS High Sierra to Big Sur. (I'm on a new computer!)
I seem to have RVM installed correctly, and I have even tried and failed to get rbenv working. RVM is recommended by my software course for it's ease of use, and I'm following their notes, but here is my CLI code:
$ rvm --default use ruby-3.0.2_1
Required ruby-3.0.2_1 is not installed.
To install do: 'rvm install "ruby-3.0.2_1"'
$ rvm install "ruby-3.0.2_1"
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/11.6/arm64/ruby-3.0.2_1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Installing requirements for osx.
mkdir: /usr/local/rvm/log/1637203871_ruby-3.0.2_1: Permission denied
tee: /usr/local/rvm/log/1637203871_ruby-3.0.2_1/update_system.log: No such file or directory
Updating system - please wait
Error running 'requirements_osx_brew_update_system ruby-3.0.2_1',
please read /usr/local/rvm/log/1637203871_ruby-3.0.2_1/update_system.log
Requirements installation failed with status: 1.
There's an old question and answer here that says the top part of my code isn't actually an error message, but I think the bottom part of it is saying I have some kind of issue.
Do I need to grant myself more permissions on this new laptop? Is the hint in the mkdir line above? Something else? How do I fix it? I would like to use an rvm to continue to use VS Code. I could switch to using AWS Cloud 9, but I prefer not to do that.
On attempting to update Ruby version I get a failure with some dependencies. The output of which is copied below. I need to correct this situation or perform a time machine restore (ideally without rolling back my entire system).
What would be the best way to recover from this situation?
Pauls-MacBook-Pro:~ pauldriver$ cd Sites/base/sites/all/themes/primal/
ruby-1.9.3-p551 is not installed.
To install do: 'rvm install ruby-1.9.3-p551'
Pauls-MacBook-Pro:primal pauldriver$ rvm list
rvm rubies
=* ruby-1.9.3-p547 [ x86_64 ]
# => - current
# =* - current && default
# * - default
Pauls-MacBook-Pro:primal pauldriver$ rvm install ruby-1.9.3-p551
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.10/x86_64/ruby-1.9.3-p551.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Installing requirements for osx.
Updating system.....
Installing required packages: gcc48.....
Error running 'requirements_osx_brew_libs_install gcc48',
showing last 15 lines of /Users/pauldriver/.rvm/log/1417181615_ruby-1.9.3- p551/package_install_gcc48.log
++ case "$1" in
++ [[ -t 1 ]]
++ return 1
++ printf %b 'There were package installation errors, make sure to read the log.
Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation\n'
There were package installation errors, make sure to read the log.
Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation
++ case "$_system_version" in
++ return 1
Requirements installation failed with status: 1.
Pauls-MacBook-Pro:primal pauldriver$
It seems that my problem was connected with gcc48 and some confusion with an earlier version.
I eventually found a solution via the following stackoverflow post Error installing Ruby in Yosemite
I can't believe the this isn't a more frequently asked question.
I want to install ruby 1.9.2, and I want it as part of my RVM installation. The link for 1.9.2 has since 404'd on the ruby-lang site, so I copied the tar.gz from the ruby github page, rezipped it into a tar.bz2 like rvm requires and dropped it into ~/.rvm/archives
However, every time I call rvm install 1.9.2-p320 it deletes the source tar.bz2 from ~/.rvm/archives and tries to redownload the tar.bz2 from the ruby-lang site.
The --force and --disable-binary options do nothing to prevent the deleting and redownloading attempts.
Is there a way to point rvm explicitly to the source tar.bz2? I'd like to avoid compiling from source myself and then copying the directory into wherever rvm needs it.
Note: It looks like the ruby-lang ftp server is just down for the moment which explains why the download keeps failing, but my question still stands as this seems like good functionality for rvm to have.
The deletion of archive is controlled with --verify-downloads flag:
rvm install 1.9.2-p320 --verify-downloads 2 --disable-binary
Values for the --verify-downloads flag:
0 - has to have checksum and must validate
1 - does not have to have checksum, if available must validate
2 - continue even the checksum does not validate
The front page of ruby-lang.org does mention that some services would be down, I'd suggest waiting for them to get their services back up and trying again.
http://www.ruby-lang.org/en/news/2013/08/06/status-issue/
rvm usage clearly said
rvm [Flags] [Options] Action
The correct syntax for your problem is
rvm --verify-downloads 2 --disable-binary install 1.9.2-p320
rvm will check the flags and options first before executing any action
I am trying to install rvm on a vagrant box Ubuntu 12.04. When I run the vagrant script the installation halts due to an error with this command:
curl -L https://get.rvm.io | sudo bash -s stable --ruby=$RUBY_VER --auto-dotfiles --verify-downloads 1
This is the output of that command running inside the vagrant script:
Turning on auto dotfiles mode.
Please read and follow further instructions.
Press ENTER to continue.
Downloading RVM from wayneeseguin branch stable
Upgrading the RVM installation in /usr/local/rvm/
source /etc/profile.d/rvm.sh
Upgrade of RVM in /usr/local/rvm/ is complete.
Upgrade Notes:
* No new notes to display.
# In case of problems:
# run and read: rvm notes
# read docs: http://rvm.io/
# talk to us: http://webchat.freenode.net/?channels=rvm
# read cheatsheet: http://cheat.errtheblog.com/s/rvm
# watch screencast: http://screencasts.org/episodes/how-to-use-rvm
# open a bug report: https://github.com/wayneeseguin/rvm/issues
# vagrant,
#
# Thank you for using RVM!
# I sincerely hope that RVM helps to make your life easier and more enjoyable!
!!
#
# ~Wayne
rvm 1.21.6 (stable) by Wayne E. Seguin <wayneeseguin#gmail.com>, Michal Papis <m
papis#gmail.com> [https://rvm.io/]
Searching for binary rubies, this might take some time.
.o binary rubies available for: ubuntu/12.04/i386/ruby-1.9.3-p374
Continuing with compilation. Please read 'rvm help mount' to get more informatio
n on binary rubies.
Installing requirements for ubuntu, might require sudo password.
Requirements installation successful.
, this may take a while depending on your cpu(s)...es/ruby-1.9.3-p374
, this may take a while depending on your connection...
.tar.bz2', it's not possible to validate it.ng.org/pub/ruby/1.9/ruby-1.9.3-p374
This could be because your RVM install's list of versions is out of date. You ma
y want to
update your list of rubies by running 'rvm get stable' and try again.
If that does not resolve the issue and you wish to continue with unverified down
load
add '--verify-downloads 1' after the command.
There has been an error fetching the ruby interpreter. Halting the installation.
However when I try to run the same instruction on the command line of the vagrant box it seems to work:
vagrant#precise32:~$ curl -sSL https://get.rvm.io | sudo bash -s stable --ruby=1.9.3-p374 --auto-dotfiles --verify-downloads 1
The output is this:
Turning on auto dotfiles mode.
Please read and follow further instructions.
Press ENTER to continue.
Downloading RVM from wayneeseguin branch stable
Upgrading the RVM installation in /usr/local/rvm/
Upgrade of RVM in /usr/local/rvm/ is complete.
Upgrade Notes:
* No new notes to display.
# In case of problems:
# run and read: rvm notes
# read docs: http://rvm.io/
# talk to us: http://webchat.freenode.net/?channels=rvm
# read cheatsheet: http://cheat.errtheblog.com/s/rvm
# watch screencast: http://screencasts.org/episodes/how-to-use-rvm
# open a bug report: https://github.com/wayneeseguin/rvm/issues
# vagrant,
#
# Thank you for using RVM!
# I sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne
rvm 1.21.6 (stable) by Wayne E. Seguin <wayneeseguin#gmail.com>, Michal Papis <mpapis#gmail.com> [https://rvm.io/]
Already installed ruby-1.9.3-p374.
To reinstall use:
rvm reinstall 1.9.3-p374
Creating alias default for ruby-1.9.3-p374.
Recording alias default for ruby-1.9.3-p374.
Creating default links/files
Saving wrappers to '/usr/local/rvm/bin'........
* To start using RVM you need to run `source /usr/local/rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.
Any ideas? I guess I could run manually the instructions on the vagrant files one by one but it would ruin the entire purpose of using provisioning. Thanks in advance.
Nevermind. It happened that my Git was configured to convert line ending from Linux to Windows format automatically, so when I downloaded the vagrant files they turned useless when Linux tried to extract Ruby version (and other stuff like that) from them.
So the solution in my case was to reinstall Git, setting "Configuring the line ending conversions" to "Checkout as-is, commit as-is":
Just upgraded to Lion and tried to update rvm following the doc:
$ rvm get latest
Original installed RVM version:
rvm 1.2.8 by Wayne E. Seguin (wayneeseguin#gmail.com) [http://rvm.beginrescueend.com/]
rvm-<html>
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 172 0 172 0 0 210 0 --:--:-- --:--:-- --:--:-- 304
ERROR:
.tar.gz downloaded does not match it's md5 checksum <html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx/1.0.8</center>
</body>
./html>
Aborting RVM Installation.
How can I upgrade rvm on Lion?
Honestly it might just be easier to rvm implode and start over. You're pretty dang far behind on versions. So it might not be able to jump that far in versions from an update.
My current version is 1.8.6.
Run rvm implode, this will remove rvm, rubies, gemsets, everything.
Run
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
Thats my solution...
Just for reference, if rvm get latest is not working and imploding your installation is not an option, then you can always do:
rvm get head
This gets the latest version from Git, so it circumvents the Bad Request error. After that you can do a
rvm get latest
to switch to the latest stable version.
WAY too old to properly upgrade. The suggestion to implode is exactly what to do. Please see my script at the bottom of the Troubleshooting page for a script that will remove any and all traces of RVM from your system. Comment out any lines in your $HOME/.bashrc|.bash_profile that load RVM. Then immediately log out then back in so there are absolutely no variables for RVM in the environment and then follow through the install procedure as detailed on the rvm installation page.
PLEASE NOTE: Do NOT use Xcode 4.2. It currently does not properly build a lot of different rubies and native-extension gems, as well as Homebrew and MacPorts builds. Use only Xcode 4.1 plus any updates Apple has supplied.
This is not a RVM issue, its a compiler issue due to the changeover to LLVM.