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
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.
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":
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.
I've just installed RVM on ArchLinux x64 in single user mode via the recommended install script
curl -L https://get.rvm.io | bash -s stable
I've also installed all the requirements listed in rvm requirements
However, I'm having trouble actually installing any version of ruby. And getting the following error:
arch:~ % rvm install 1.9.3
No binary rubies available for: ///ruby-1.9.3-p194.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Fetching yaml-0.1.4.tar.gz to /home/christopher/.rvm/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 460k 100 460k 0 0 702k 0 --:--:-- --:--:-- --:--:-- 767k
Extracting yaml-0.1.4.tar.gz to /home/christopher/.rvm/src
Prepare yaml in /home/christopher/.rvm/src/yaml-0.1.4.
Configuring yaml in /home/christopher/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix=/home/christopher/.rvm/usr ', please read /home/christopher/.rvm/log/ruby-1.9.3-p194/yaml/configure.log
Compiling yaml in /home/christopher/.rvm/src/yaml-0.1.4.
Error running 'make', please read /home/christopher/.rvm/log/ruby-1.9.3-p194/yaml/make.log
Please note that it's required to reinstall all rubies:
rvm reinstall all --force
Installing Ruby from source to: /home/christopher/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194 - #extracting ruby-1.9.3-p194 to /home/christopher/.rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #extracted to /home/christopher/.rvm/src/ruby-1.9.3-p194
Skipping configure step, 'configure' does not exist, did autoreconf not run successfully?
ruby-1.9.3-p194 - #compiling
Error running 'make', please read /home/christopher/.rvm/log/ruby-1.9.3-p194/make.log
There has been an error while running make. Halting the installation.
The log files are as follows:
arch:~ % cat ~/.rvm/log/ruby-1.9.3-p194/yaml/configure.log
__rvm_log_command:32: permission denied:
arch:~ % cat ~/.rvm/log/ruby-1.9.3-p194/yaml/make.log
make: *** No targets specified and no makefile found. Stop.
arch:~ % cat ~/.rvm/log/ruby-1.9.3-p194/make.log
make: *** No targets specified and no makefile found. Stop.
I'm having this same problem on two machines running Mac OS 10.6.8.
I was able to fix the yaml problem by manually cd-ing into the directory and running ./configure. eg:
$ cd /home/christopher/.rvm/src/yaml-0.1.4
$ ./configure --prefix=/home/christopher/.rvm/usr
After running "rvm install 1.9.3" a couple more times, it picked up the configuration I'd done, and stopped bothering me about the yaml issue.
I was also able to cd into the ruby directory and configure and make it. eg:
$ /home/christopher/.rvm/src/ruby-1.9.3-p194
$ ./configure
$ make
$ make install
...However, this didn't cause rvm to pick it up. I'm guessing I was missing some necessary command line options and flags.
But considering I was able to get as far as I did, it seems to me like it's an rvm bug.
UPDATE 6/25/10
Using Google, I am not the only person to encounter this problem. Apparently this problem has to do with readline. Has anyone out there encountered this issue? (see error at make.error.log below) As google suggests, I compiled readline:
curl -O ftp://ftp.gnu.org/gnu/readline/readline-6.1.tar.gz
tar xzvf readline-6.1.tar.gz
cd readline-6.1
./configure --prefix=/usr/local
make
sudo make install
Update II
Following the advice of the above update (compile readline), has led me to new problems associated with libxml2, described in detail here. I ran this command: sudo port install libxml2
Update III 6/26/10
After compiling readline, and following the steps outlined at the RVM Documentation for Readline I'm met with a new error: (rvm install 1.8.7 and rvm install 1.9.1 produces this error)
This command: rvm install 1.9.1 -C --with-readline-dir=$HOME/.rvm/usr
results in this:
main.c: In function ‘objcdummyfunction’:
main.c:19: warning: implicit declaration of function ‘objc_msgSend’
main.c: At top level:
main.c:19: warning: ‘objcdummyfunction’ defined but not used
eval.c: In function ‘ruby_cleanup’:
eval.c:139: warning: passing argument 1 of ‘ruby_init_stack’ discards qualifiers from pointer target type
gc.c: In function ‘garbage_collect_with_gvl’:
gc.c:597: warning: cast from pointer to integer of different size
w: illegal option -- L
usage: w [hi] [user ...]
make: [libruby.1.9.1.dylib] Error 1 (ignored)
ld: in /usr/local/lib/libsqlite3.dylib, file was built for i386 which is not the architecture being linked (x86_64)
collect2: ld returned 1 exit status
make[1]: *** [../../.ext/i386-darwin10.4.0/tcltklib.bundle] Error 1
make: *** [mkmain.sh] Error 1
SOLUTION!!!! Update IV 6/27/10
I was able to get rvm to function by doing 3 things. See a similar problem here :
I navigated to usr/local/lib/
sudo rm -rf libsqlite3.dylib (Caution this could be a really bad thing to do; but it worked to solve this problem)
I did sudo port upgrade --force sqlite3 +universal and got sqlite3 and all its dependencies to build x86_64/i386 universal libraries
All Green:
.
justinz$ rvm remove 1.9.1
info: Removing /Users/justinz/.rvm/src/ruby-1.9.1-p378...
info: it seems that /Users/justinz/.rvm/rubies/ruby-1.9.1-p378 is already non existent.
info: Removing ruby-1.9.1-p378 aliases...
info: Removing ruby-1.9.1-p378 wrappers...
info: Removing ruby-1.9.1-p378 environments...
info: Removing ruby-1.9.1-p378 binaries...
justin-zollarss-mac-pro:ruby-1.9.1-p378 justinz$ rvm install 1.9.1 -C --with-readline-dir=$HOME/.rvm/usr
info: Installing Ruby from source to: /Users/justinz/.rvm/rubies/ruby-1.9.1-p378
info: Extracting ruby-1.9.1-p378 ...
info: Configuring ruby-1.9.1-p378, this may take a while depending on your cpu(s)...
info: Compiling ruby-1.9.1-p378, this may take a while, depending on your cpu(s)...
info: Installing ruby-1.9.1-p378
info: Installation of ruby-1.9.1-p378 is complete.
info: Updating rubygems for /Users/justinz/.rvm/gems/ruby-1.9.1-p378
info: adjusting shebangs for ruby-1.9.1-p378 (gem irb erb ri rdoc testrb rake).
info: Importing initial gems...
justin-zollarss-mac-pro:ruby-1.9.1-p378 justinz$ rvm list
rvm rubies
ruby-1.8.6-p399 [ x86_64 ]
ruby-1.8.7-p299 [ x86_64 ]
ruby-1.9.1-p378 [ x86_64 ]
justin-zollarss-mac-pro:ruby-1.9.1-p378 justinz$
I'm running into problems properly setting up RVM, I am really interested in using RVM, but it aborts after I attempt to install a new version of ruby; can you see anything wrong with my Bashrc or Profile file(s)?
Many Thanks in advance!
Bash Terminal
justin-zollarss-mac-pro:~ justinz$ rvm install 1.9.1
Installing Ruby from source to: /Users/justinz/.rvm/rubies/ruby-1.9.1-p378
/Users/justinz/.rvm/src/ruby-1.9.1-p378 has already been extracted.
Configuring ruby-1.9.1-p378, this may take a while depending on your cpu(s)...
Compiling ruby-1.9.1-p378, this may take a while, depending on your cpu(s)...
Error running 'make ', please check /Users/justinz/.rvm/log/ruby-1.9.1-p378/make*.log
There has been an error while running make. Aborting the installation.
Bashrc
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
return
fi
PS1='\h:\W \u\$ '
# Make bash check its window size after a process completes
shopt -s checkwinsize
if [[ -s /Users/justinz/.rvm/scripts/rvm ]] ; then source /Users/justinz/.rvm/scripts/rvm ; fi
make.error.log
[2010-05-25 23:14:45] make
readline.c: In function ‘username_completion_proc_call’:
readline.c:1159: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:1159: error: (Each undeclared identifier is reported only once
readline.c:1159: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [mkmain.sh] Error 1
Profile
# System-wide .profile for sh(1)
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
if [[ -s /Users/justinz/.rvm/scripts/rvm ]] ; then source /Users/justinz/.rvm/scripts/rvm ; fi
According to this post, you should install readline first:
rvm package install readline
Try this: install and use (!) 1.8.7 first.
$ rvm install 1.8.7
$ rvm use 1.8.7
Then try installing 1.9.1 again.
SOLUTION!!!!
I was able to get rvm to function by doing 3 things:
Navigate to usr/local/lib/
sudo rm -rf libsqlite3.dylib (Caution this could be a really bad thing to do; but it worked to solve this problem)
sudo port upgrade --force sqlite3 +universal and got sqlite3 and all its dependencies to build x86_64/i386 universal libraries