Skip to content

Instantly share code, notes, and snippets.

@randyinla
Created November 22, 2012 11:28
Show Gist options
  • Save randyinla/4130680 to your computer and use it in GitHub Desktop.
Save randyinla/4130680 to your computer and use it in GitHub Desktop.
RUNNING THE RVM COMMAND:
- I used to get "error running 'make -j 3' until I saw a post saying to parenthesize it "rvm_make_flags=( -j 7 )". I did that and wasn't getting make errors anymore. Now, they are back as "error running 'make 7'"
- log outputs below
---------------------------------
$ rvm cleanup sources && rvm uninstall ruby-2.0.0-preview1 && rvm --debug --movable install ruby-2.0.0-preview1 --patch $rvm_path/patches/ruby/1.9.3/p125/osx-arch-fix.patch
Cleaning up rvm sources
Cleanup done.
/Users/randy/.rvm/src/ruby-2.0.0-preview1 has already been removed.
Removing /Users/randy/.rvm/rubies/ruby-2.0.0-preview1...
ruby-2.0.0-preview1 - install
Fetching yaml-0.1.4.tar.gz to /Users/randy/.rvm/archives
Fetching: https://rvm.io/src/yaml-0.1.4.tar.gz
Fetch command: curl -f -L --create-dirs -C - -o yaml-0.1.4.tar.gz
Archive checksum matched, not downloading
Downloaded archive checksum matched.
Extracting yaml to /Users/randy/.rvm/src/yaml-0.1.4
Configuring yaml in /Users/randy/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/randy/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/randy/.rvm/rubies/ruby-2.0.0-preview1
rvm_configure_flags+=( --with-opt-dir=/Users/randy/.rvm/rubies/ruby-2.0.0-preview1 )
Fetching openssl-1.0.1c.tar.gz to /Users/randy/.rvm/archives
Fetching: http://www.openssl.org/source/openssl-1.0.1c.tar.gz
Fetch command: curl -f -L --create-dirs -C - -o openssl-1.0.1c.tar.gz
Archive checksum matched, not downloading
Downloaded archive checksum matched.
Extracting openssl to /Users/randy/.rvm/src/openssl-1.0.1c
Configuring openssl in /Users/randy/.rvm/src/openssl-1.0.1c.
Error running './Configure darwin-i386-cc -I/Users/randy/.rvm/usr/include -L/Users/randy/.rvm/usr/lib zlib no-asm no-krb5 shared --prefix=/Users/randy/.rvm/rubies/ruby-2.0.0-preview1 --target=i686-apple-darwin11 --enable-shared --enable-load-relative --sysconfdir=/etc --with-opt-dir=/Users/randy/.rvm/rubies/ruby-2.0.0-preview1', please read /Users/randy/.rvm/log/ruby-2.0.0-preview1/openssl/configure.log
Compiling openssl in /Users/randy/.rvm/src/openssl-1.0.1c.
Error running 'make 7', please read /Users/randy/.rvm/log/ruby-2.0.0-preview1/openssl/make.log
Updating openssl certificates
rvm_configure_flags+=( --with-opt-dir=/Users/randy/.rvm/rubies/ruby-2.0.0-preview1 )
__rvm_update_configure_env(6):MACOSX_DEPLOYMENT_TARGET=10.8 CFLAGS= -arch i386 -g -Os -pipe -no-cpp-precomp CCFLAGS= -arch i386 -g -Os -pipe CXXFLAGS= -arch i386 -g -Os -pipe LDFLAGS= -arch i386 -bind_at_load LDSHARED=cc -arch i386 -dynamiclib -undefined suppress -flat_namespace:
found compiler: /usr/local/bin/gcc-4.2
Installing Ruby from source to: /Users/randy/.rvm/rubies/ruby-2.0.0-preview1, this may take a while depending on your cpu(s)...
ruby-2.0.0-preview1 - #downloading ruby-2.0.0-preview1, this may take a while depending on your connection...
ruby-2.0.0-preview1 - #extracting ruby-2.0.0-preview1 to /Users/randy/.rvm/src/ruby-2.0.0-preview1
ruby-2.0.0-preview1 - #extracted to /Users/randy/.rvm/src/ruby-2.0.0-preview1
Trying patch '/Users/randy/.rvm/patches/ruby/1.9.3/p125/osx-arch-fix.patch'.
Patch name '/Users/randy/.rvm/patches/ruby/1.9.3/p125/osx-arch-fix.patch'.
Patch expanded_name '/Users/randy/.rvm/patches/ruby/1.9.3/p125/osx-arch-fix.patch%1'.
Trying patch 'default'.
Patch name 'default'.
All found patches(1): /Users/randy/.rvm/patches/ruby/1.9.3/p125/osx-arch-fix.patch%1.
Patch full path '//Users/randy/.rvm/patches/ruby/1.9.3/p125/osx-arch-fix.patch'.
Applying patch //Users/randy/.rvm/patches/ruby/1.9.3/p125/osx-arch-fix.patch
ruby-2.0.0-preview1 - #configuring
ruby-2.0.0-preview1 - #compiling
Error running 'make 7', please read /Users/randy/.rvm/log/ruby-2.0.0-preview1/make.log
There has been an error while running make. Halting the installation.
fix osx dependencies
Error running 'install_name_tool -change /Users/randy/.rvm/rubies/ruby-2.0.0-preview1/lib/libyaml-0.2.dylib @executable_path/../lib/libyaml-0.2.dylib ', please read /Users/randy/.rvm/log/ruby-2.0.0-preview1/fix.osx.dependencies.log
Running /Users/randy/.rvm/hooks/after_install_codesign
/Users/randy/.rvm/log/ruby-2.0.0-preview1/openssl/configure.log:
---------------------------------------------------------------
[2012-11-22 03:23:38] ./Configure darwin-i386-cc -I/Users/randy/.rvm/usr/include -L/Users/randy/.rvm/usr/lib zlib no-asm no-krb5 shared --prefix=/Users/randy/.rvm/rubies/ruby-2.0.0-preview1 --target=i686-apple-darwin11 --enable-shared --enable-load-relative --sysconfdir=/etc --with-opt-dir=/Users/randy/.rvm/rubies/ruby-2.0.0-preview1
Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [experimental-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw] [[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm] [no-dso] [no-krb5] [sctp] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] [--with-xxx[=vvv]] [--test-sanity] os/compiler[:flags]
/Users/randy/.rvm/log/ruby-2.0.0-preview1/openssl/make.log:
-----------------------------------------------------------
[2012-11-22 03:19:49] make 7
make: *** No rule to make target `7'. Stop.
/Users/randy/.rvm/log/ruby-2.0.0-preview1/make.log:
--------------------------------------------------
[2012-11-22 03:24:18] make 7
make: *** No rule to make target `7'. Stop.
/Users/randy/.rvm/log/ruby-2.0.0-preview1/fix.osx.dependencies.log:
------------------------------------------------------------------
[2012-11-22 03:24:18] install_name_tool -change /Users/randy/.rvm/rubies/ruby-2.0.0-preview1/lib/libyaml-0.2.dylib @executable_path/../lib/libyaml-0.2.dylib
current path: /Users/randy
command(5): install_name_tool -change /Users/randy/.rvm/rubies/ruby-2.0.0-preview1/lib/libyaml-0.2.dylib @executable_path/../lib/libyaml-0.2.dylib
install_name_tool: can't open file: (No such file or directory)
~/.rvmrc file:
----------------
export rvm_make_flags=( -j 7 )
export rvm_path='/Users/randy/.rvm'
export rvm_archflags='-arch i386'
export rvm_architectures='i386'
export rvm_configure_flags=--target=i686-apple-darwin11
export rvm_gem_options='--no-rdoc --no-ri'
export rvm_pretty_print_flag='1'
rvm_project_rvmrc=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment