Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RVM pkg install checksum error

Tags:

ruby

zlib

rvm

root@li417-132:~# rvm pkg install zlib
Fetching zlib-1.2.7.tar.gz to /usr/local/rvm/archives
There is no checksum for 'http://prdownloads.sourceforge.net/libpng/zlib-1.2.7.tar.gz' or 'zlib-1.2.7.tar.gz', it's not possible to validate it.
If you wish to continue with unverified download add '--verify-downloads 1' after the command.


Please note that it's required to reinstall all installed rubies:

    rvm reinstall all --force
    rvm all-gemsets do rvm gemset pristine

A weird problem happened today, other linux boxes i've setup a few days ago never did this, but today i cannot install any rvm packages, and adding '--verify-downloads 1' after the command seems to have no effect at all.

like image 539
gkaykck Avatar asked Sep 04 '12 06:09

gkaykck


1 Answers

this is a new change in RVM, you can make it work with:

rvm --verify-downloads 1 pkg install zlib 

The best solution would be adding md5 / sha512 for zlib so it could be validated

The command parsing was fixed already, udate rvm to make it working:

rvm get head

Deprecation warning:

rvm pkg is deprecated by autolibs:

rvm get stable
rvm autolibs enable
rvm install ruby

RVM will automatically use system package manager to install missing libraries and configure ruby with proper compilation settings if needed - on OSX RVM detects macports, homebrew, fink and if non found installs macports to handle the libraries installation.

like image 51
mpapis Avatar answered Oct 21 '22 05:10

mpapis