rvm get latest ERROR - ruby

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.

Related

How to install RVM on macOS Big Sur with VS Code?

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.

Problems updating RVM to upgrade to ruby 2.0.0

I am trying to upgrade to ruby 2.0.0 and I am running into problems getting rvm updated:
Here is my first error trying to update to ruby-2.0.0[-p353]:
Error running 'requirements_smf_update_system ruby-2.0.0[-p353]',
please read /usr/local/rvm/log/1385828966_ruby-2.0.0[-p353]/update_system.log
Requirements installation failed with status: 1.
So I tried:
rvm get stable --auto-dotfiles
And got the following warnings:
Can not update 'scripts/extras/completion.zsh/_rvm', it's a conflict between Zsh
and multiuser installation, prefix the command with 'rvmsudo' to update this file.
but it alerted that install was complete. When I run:
rvm usge:
I get this warning:
Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p194/bin' is not
at first place, usually this is caused by shell initialization files - check them for
'PATH=...' entries, it might also help to re-add RVM to your dotfiles:
'rvm get stable --auto-dotfiles', to fix temporarily in this shell session run:
'rvm use ruby-1.9.3-p194'
And I'm going in a circle. I would like to read:
/usr/local/rvm/log/1385828966_ruby-2.0.0[-p353]/update_system.log
but I don't know where to find it. I must have accidentally set up rvm with multiuser instead of single user but I can't be sure because I used to tutorial to set is up.
Does anyone have any ideas?
Thanks in advance.
In ruby-2.0.0[-p353] the brackets [] mean optional so you can either write:
rvm install ruby-2.0.0
OR:
rvm install ruby-2.0.0-p353

RVM install ruby from local source

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

RVM Ruby Installation failed with no checksum [closed]

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.

rvm get latest is throwing error

Trying to upgrade RVM on my OSx. I am getting the below error.
$ rvm get latest
Original installed RVM version:
rvm 1.2.9 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.
What could be wrong ?
try:
rvm get head
rvm reload
rvm get stable
in case `rvm get head fails use installer instead:
curl -L get.rvm.io | bash -s stable
rvm reload
The rvm reload is important, it was required earlier but now RVM will autoreload itself.
Also note that around 1.4 RVM changed .rvmrc trusting mechanism and you will have to trust all your projects again ... or use the new project files which do not require trusting: https://rvm.io/workflow/projects/#ruby-versions

Resources