Forked from dbc-challenges/rvm_setup_written_answers.txt
Created
October 2, 2012 06:58
-
-
Save danigro77/3816938 to your computer and use it in GitHub Desktop.
RVM Setup Written Answers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put your answers here! | |
macair1:/ danielagrossmann$ rvm list | |
rvm rubies | |
ruby-1.9.2-p320 [ x86_64 ] | |
=* ruby-1.9.3-p194 [ x86_64 ] | |
# => - current | |
# =* - current && default | |
# * - default | |
# ERROR_OUTPUT when I tried to install 1.8.7 on Mountain Lion | |
macair1:dani_devbootcamp danielagrossmann$ mkdir test_project | |
macair1:dani_devbootcamp danielagrossmann$ cd test_project/ | |
macair1:test_project danielagrossmann$ rvm --rvmrc --create 1.9.3@test_project | |
macair1:test_project danielagrossmann$ ls | |
macair1:test_project danielagrossmann$ ls -al | |
total 8 | |
drwxr-xr-x 3 danielagrossmann staff 102 Oct 2 12:37 . | |
drwxr-xr-x 3 danielagrossmann staff 102 Oct 2 12:37 .. | |
-rw-r--r-- 1 danielagrossmann staff 1574 Oct 2 12:37 .rvmrc | |
macair1:test_project danielagrossmann$ cat .rvmrc | |
#!/usr/bin/env bash | |
# This is an RVM Project .rvmrc file, used to automatically load the ruby | |
# development environment upon cd'ing into the directory | |
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional, | |
# Only full ruby name is supported here, for short names use: | |
# echo "rvm use 1.9.3" > .rvmrc | |
environment_id="ruby-1.9.3-p194@test_project" | |
# Uncomment the following lines if you want to verify rvm version per project | |
# rvmrc_rvm_version="1.15.9 (master)" # 1.10.1 seams as a safe start | |
# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || { | |
# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading." | |
# return 1 | |
# } | |
# First we attempt to load the desired environment directly from the environment | |
# file. This is very fast and efficient compared to running through the entire | |
# CLI and selector. If you want feedback on which environment was used then | |
# insert the word 'use' after --create as this triggers verbose mode. | |
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" | |
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] | |
then | |
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id" | |
[[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]] && | |
\. "${rvm_path:-$HOME/.rvm}/hooks/after_use" || true | |
else | |
# If the environment file has not yet been created, use the RVM CLI to select. | |
rvm --create "$environment_id" || { | |
echo "Failed to create RVM environment '${environment_id}'." | |
return 1 | |
} | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macair1:/ danielagrossmann$ CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 rvm install 1.8.7 | |
No binary rubies available for: osx/10.8.2/x86_64/ruby-1.8.7-p370. | |
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. | |
Installing Ruby from source to: /Users/danielagrossmann/.rvm/rubies/ruby-1.8.7-p370, this may take a while depending on your cpu(s)... | |
ruby-1.8.7-p370 - #downloading ruby-1.8.7-p370, this may take a while depending on your connection... | |
ruby-1.8.7-p370 - #extracted to /Users/danielagrossmann/.rvm/src/ruby-1.8.7-p370 (already extracted) | |
Applying patch /Users/danielagrossmann/.rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch | |
Error running 'patch -F 25 -p1 -N -f -i /Users/danielagrossmann/.rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch', please read /Users/danielagrossmann/.rvm/log/ruby-1.8.7-p370/patch.apply.stdout-rouge-fix.log | |
Applying patch /Users/danielagrossmann/.rvm/patches/ruby/1.8.7/no_sslv2.diff | |
There has been an error applying the specified patches. Halting the installation. | |
Please be aware that you just installed a ruby that requires 2 patches just to be compiled on up to date linux system. | |
This may have known and unaccounted for security vulnerabilities. | |
Please consider upgrading to Ruby 1.9.3-194 which will have all of the latest security patches. | |
macair1:/ danielagrossmann$ CC=/usr/local/bin/gcc-4.2 rvm reinstall 1.8.7 | |
Removing /Users/danielagrossmann/.rvm/src/ruby-1.8.7-p370... | |
/Users/danielagrossmann/.rvm/rubies/ruby-1.8.7-p370 has already been removed. | |
No binary rubies available for: osx/10.8.2/x86_64/ruby-1.8.7-p370. | |
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. | |
Installing Ruby from source to: /Users/danielagrossmann/.rvm/rubies/ruby-1.8.7-p370, this may take a while depending on your cpu(s)... | |
ruby-1.8.7-p370 - #downloading ruby-1.8.7-p370, this may take a while depending on your connection... | |
ruby-1.8.7-p370 - #extracting ruby-1.8.7-p370 to /Users/danielagrossmann/.rvm/src/ruby-1.8.7-p370 | |
ruby-1.8.7-p370 - #extracted to /Users/danielagrossmann/.rvm/src/ruby-1.8.7-p370 | |
Applying patch /Users/danielagrossmann/.rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch | |
Applying patch /Users/danielagrossmann/.rvm/patches/ruby/1.8.7/no_sslv2.diff | |
ruby-1.8.7-p370 - #configuring | |
ruby-1.8.7-p370 - #compiling | |
Error running 'make', please read /Users/danielagrossmann/.rvm/log/ruby-1.8.7-p370/make.log | |
There has been an error while running make. Halting the installation. | |
Please be aware that you just installed a ruby that requires 2 patches just to be compiled on up to date linux system. | |
This may have known and unaccounted for security vulnerabilities. | |
Please consider upgrading to Ruby 1.9.3-194 which will have all of the latest security patches. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment