Error running '__rvm_make install' on macOS Monterey - ruby

I am trying to install ruby 2.7.0 version on mac(12.2.1) using rvm but getting below error, and tried all the solution possible on github nothing seems to work. Even tried using rbenv but same error. Please help, thank you in advance.
rashmi.b#xxxx Documents % rvm install 2.7.0
ruby-2.7.0 - #removing src/ruby-2.7.0 - please wait
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/12.2/x86_64/ruby-2.7.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates bundle '/usr/local/etc/openssl#1.1/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/rashmi.b/.rvm/rubies/ruby-2.7.0, this may take a while depending on your cpu(s)...
ruby-2.7.0 - #downloading ruby-2.7.0, this may take a while depending on your connection...
ruby-2.7.0 - #extracting ruby-2.7.0 to /Users/rashmi.b/.rvm/src/ruby-2.7.0 - please wait
ruby-2.7.0 - #configuring - please wait
ruby-2.7.0 - #post-configuration - please wait
ruby-2.7.0 - #compiling - please wait
ruby-2.7.0 - #installing - please wait
Error running '__rvm_make install',
please read /Users/rashmi.b/.rvm/log/1647236002_ruby-2.7.0/install.log
There has been an error while running make install. Halting the installation.
/Users/rashmi.b/.rvm/log/1647236002_ruby-2.7.0/install.log =>
generating x86_64-darwin21-fake.rb
x86_64-darwin21-fake.rb updated
BASERUBY = /usr/bin/ruby --disable=gems
CC = gcc
LD = ld
LDSHARED = gcc -dynamiclib
CFLAGS = -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -std=gnu99 -fno-common -pipe
XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -DCANONICALIZATION_FOR_MATHN -I. -I.ext/include/x86_64-darwin21 -I./include -I. -I./enc/unicode/12.1.0
CPPFLAGS = -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl#1.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl#1.1/lib -install_name /Users/rashmi.b/.rvm/rubies/ruby-2.7.0/lib/libruby.2.7.dylib -compatibility_version 2.7 -current_version 2.7.0 -fstack-protector-strong -framework Security -framework Foundation -fstack-protector-strong -framework Security -framework Foundation
SOLIBS = -lpthread -lgmp -ldl -lobjc
LANG =
LC_ALL =
LC_CTYPE = UTF-8
MFLAGS =
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: x86_64-apple-darwin21.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
generating enc.mk
making srcs under enc
make[1]: Nothing to be done for `srcs'.
generating transdb.h
transdb.h unchanged
generating makefiles ext/configure-ext.mk
ext/configure-ext.mk updated
generating makefile exts.mk
exts.mk unchanged
./revision.h unchanged
make[1]: Nothing to be done for `note'.
making enc
make[1]: Nothing to be done for `enc'.
making trans
make[1]: Nothing to be done for `./enc/trans'.
making encs
make[1]: Nothing to be done for `encs'.
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems -r./x86_64-darwin21-fake ./tool/rbinstall.rb --make="/Library/Developer/CommandLineTools/usr/bin/make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc" --exclude=doc
make: *** [do-install-nodoc] Killed: 9
+__rvm_make:0> return 2
Openssl version - 3.0.1 14

It seems that something forcefully killed your compilation process. Unfortunately, it's not clear what external process that was, but it might be some virus scanner or other security software on your mac.
In any case, please be aware that no released Ruby supports OpenSSL 3.0 yet. You have to use OpenSSL 1.1.1 in the meantime.

If any one face problem with OSX Montrerey and installing Ruby 2.7.0 use the following instead of wasting so much trying:
brew install ruby-build
brew install rbenv
CFLAGS="-Wno-error=implicit-function-declaration" rbenv install 2.7.0
rbenv global 2.7.0
rbenv local --unset
rbenv init -
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source of second half of solution is here to select the version you just installed by the OS
https://stackoverflow.com/a/39238995/3086197
replace 2.7.0 with the version you need

I had the same issue and fixed it by running rvm install 2.7.3 -j 1
Error running '__rvm_make -j16'

Related

Unable to install any Ruby binaries in macOS 11.5.2 (BigSur)

Recently got a new MacBook Pro Apple M1 chip and tried to install ruby 2.5.0 using rvm but unable to succeed the installation
Error running '__rvm_make -j8'
please read /Users/sridhar/.rvm/log/1633882248_ruby-2.5.0/make.log
There has been an error while running make. Halting the installation.
tried many options like reinstalling RVM, other packages like openssl etc but no luck
The same error comes when installing any ruby version
output of make.log
+__rvm_make:0> make -j8
CC = gcc
LD = ld
LDSHARED = gcc -dynamiclib
CFLAGS = -O3 -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wmisleading-indentation -Wextra-tokens -fno-common -pipe
XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I/opt/homebrew/opt/openssl#3/include -I/opt/homebrew/opt/libyaml/include -I/opt/homebrew/opt/libksba/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/zlib/include -I/opt/homebrew/opt/openssl#1.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I. -I.ext/include/-darwin20 -I./include -I. -I./enc/unicode/10.0.0
DLDFLAGS = -L/opt/homebrew/opt/openssl#3/lib -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/opt/homebrew/opt/libyaml/lib -L/opt/homebrew/opt/libksba/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/zlib/lib -L/opt/homebrew/opt/openssl#1.1/lib -install_name /Users/sridhar/.rvm/rubies/ruby-2.5.0/lib/libruby.2.5.dylib -compatibility_version 2.5 -current_version 2.5.0 -fstack-protector -framework Foundation -fstack-protector -framework Foundation
SOLIBS = -lpthread -ldl -lobjc
LANG =
LC_ALL =
LC_CTYPE = UTF-8
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1205.0.22.11)
Target: arm64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
compiling ./main.c
compiling dmydln.c
compiling miniinit.c
compiling dmyext.c
generating miniprelude.c
translating probes probes.d
compiling bignum.c
executable host ruby is required. use --with-baseruby option.
make: *** [miniprelude.c] Error 1
make: *** Waiting for unfinished jobs....
. ./vm_opts.h
+__rvm_make:0> return 2
Finally got it working with this solution mentioned here
CFLAGS="-Wno-error=implicit-function-declaration" rvm install 2.5.5
Maybe install newer version of ruby. For me, any version later than 2.6.9 works well, rvm install 2.6.9

Error running '__rvm_make -j8' when trying to install Ruby using RVM

I am trying to use RVM to install Ruby. I have been following the Installfest guide over at RailsBridge.
So far, I have installed RVM (curl -L get.rvm.io | bash -s stable) and configured RVM to use Homebrew (rvm autolibs homebrew). When I enter rvm install ruby into Terminal, I get the following output:
ruby-2.5.1 - #removing src/ruby-2.5.1..
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.13/x86_64/ruby-2.5.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx_brew.
Certificates bundle '/usr/local/etc/openssl#1.1/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/jules/.rvm/rubies/ruby-2.5.1, this may take a while depending on your cpu(s)...
ruby-2.5.1 - #downloading ruby-2.5.1, this may take a while depending on your connection...
ruby-2.5.1 - #extracting ruby-2.5.1 to /Users/jules/.rvm/src/ruby-2.5.1.....
ruby-2.5.1 - #configuring......................................................|
ruby-2.5.1 - #post-configuration.
ruby-2.5.1 - #compiling....
Error running '__rvm_make -j8',
please read /Users/jules/.rvm/log/1530823409_ruby-2.5.1/make.log
There has been an error while running make. Halting the installation.
I opened /Users/jules/.rvm/log/1530823409_ruby-2.5.1/make.log in an attempt to make progress, but I wasn't able to glean any meaning from the file. I have pasted the contents below:
[2018-07-05 16:44:45] __rvm_make
__rvm_make ()
{
\make "$#" || return $?
}
current path: /Users/jules/.rvm/src/ruby-2.5.1
PATH=/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/jules/anaconda2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Users/jules/.rvm/bin
command(2): __rvm_make -j8
++ make -j8
CC = gcc
LD = ld
LDSHARED = gcc -dynamiclib
CFLAGS = -O3 -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -fno-common -pipe
XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl#1.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I. -I.ext/include/x86_64-darwin17 -I./include -I. -I./enc/unicode/10.0.0
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl#1.1/lib -install_name /Users/jules/.rvm/rubies/ruby-2.5.1/lib/libruby.2.5.dylib -compatibility_version 2.5 -current_version 2.5.1 -fstack-protector -framework Foundation -fstack-protector -framework Foundation
SOLIBS = -lpthread -lgmp -ldl -lobjc
LANG = en_US.UTF-8
LC_ALL =
LC_CTYPE =
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
compiling ./main.c
compiling dmydln.c
compiling miniinit.c
compiling dmyext.c
compiling miniprelude.c
translating probes probes.d
compiling bignum.c
compiling class.c
compiling compar.c
compiling compile.c
error: error reading '/dev/fd/7'
1 error generated.
clang: error: unable to remove file: Operation not permitted
dtrace: failed to compile script probes.d: Preprocessor failed to process input program
make: *** [probes.h] Error 1
make: *** Waiting for unfinished jobs....
++ return 2
Where should I go from here? Cheers!
Update: I Googled error: error reading '/dev/fd/7' from make.log and solved the problem by uninstalling Avira: https://github.com/rvm/rvm/issues/4313.
This worked for me:
rvm install ruby-2.5.1 --with-openssl-dir=/usr/local/opt/openssl
The openssl flag fixed my error! In case it's helpful, the last line of mymake.log was:
openssl_missing.c:39:18: error: expected ';' after top level declarator
EVP_MD_CTX_create(void)
This worked for me:
renaming /usr/local/include to /usr/local/include_old
Ref: Broken c++ std libraries on macOS High Sierra 10.13

error installing ruby 1.9.3 on linux server

Hey I'm just to update ruby on a linux server I ssh into. I know there a lot of threads on this but most are for installing on mac osx (which i dont have an issue with). This is the error log thats outputted:
$ rvm install 1.9.3
ruby-1.9.3-p551 - #removing src/ruby-1.9.3-p551..
Searching for binary rubies, this might take some time.
No binary rubies available for: unknown/libc-2.12/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 unknown.
Install:
press any key to continue
Install: build-essential libreadline zlib1g libyaml libc6 libgdbm ncurses
press any key to continue
Requirements installation successful.
Installing Ruby from source to: /home/swampu6/.rvm/rubies/ruby-1.9.3-p551, this may take a while depending on your cpu(s)...
ruby-1.9.3-p551 - #downloading ruby-1.9.3-p551, this may take a while depending on your connection...
ruby-1.9.3-p551 - #extracting ruby-1.9.3-p551 to /home/swampu6/.rvm/src/ruby-1.9.3-p551....
ruby-1.9.3-p551 - #applying patch /home/swampu6/.rvm/patches/ruby/GH-488.patch.
ruby-1.9.3-p551 - #applying patch /home/swampu6/.rvm/patches/ruby/1.9.3/CVE-2015-1855-p484.patch.
ruby-1.9.3-p551 - #configuring.............................................
ruby-1.9.3-p551 - #post-configuration..
ruby-1.9.3-p551 - #compiling...
Error running '__rvm_make -j48',
showing last 15 lines of /home/swampu6/.rvm/log/1437856022_ruby-1.9.3-p551/make.log
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I. -I.ext/include/x86_64-linux -I./include -I.
DLDFLAGS = -Wl,-soname,libruby.so.1.9
SOLIBS = -lpthread -lrt -ldl -lcrypt -lm
compiling main.c
compiling dmydln.c
compiling dmyencoding.c
compiling version.c
compiling miniprelude.c
compiling array.c
compiling bignum.c
make: vfork: Resource temporarily unavailable
make: vfork: Resource temporarily unavailable
compiling dmyversion.c
++ return 2
There has been an error while running make. Halting the installation.
this is the content of the make.log per a commenter's request:
[2015-07-25 16:27:22] __rvm_make
__rvm_make ()
{
\make "$#" || return $?
}
current path: /home/swampu6/.rvm/src/ruby-1.9.3-p551
PATH=/usr/kerberos/bin:/home/swampu6/perl5/bin:/usr/lib/courier-imap/bin:/usr/local/bin:/bin:/usr/bin:/opt/dell/srvadmin/bin:/home/swampu6/.rvm/bin:/home/swampu6/bin:/home/swampu6/.rvm/bin
command(2): __rvm_make -j48
++ make -j48
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I. -I.ext/include/x86_64-linux -I./include -I.
DLDFLAGS = -Wl,-soname,libruby.so.1.9
SOLIBS = -lpthread -lrt -ldl -lcrypt -lm
compiling main.c
compiling dmydln.c
compiling dmyencoding.c
compiling version.c
compiling miniprelude.c
compiling array.c
compiling bignum.c
make: vfork: Resource temporarily unavailable
make: vfork: Resource temporarily unavailable
compiling dmyversion.c
++ return 2
I think your issue is that, since RVM is trying to compile ruby with the command __rvm_make -j48 (which tells the compiler to try to parallelize the compilation across 48 different jobs), your host system is running out of space to do so. Before I get to a possible solution, here are some high-level thoughts:
Production systems generally shouldn't be compiling their own Ruby versions. Instead, ship the compiled binaries to the node (e.g., as a Debian package) and don't even install RVM.
rvm does a lot of magic to try and hide the details of what its doing from the end-user, but in my experience that's more trouble than it's worth. Use chruby or rbenv and build Ruby only when you need to.
Anyway, for your current issue, I think your best bet is to try to override the -j flag to a smaller value. There are a few methods, but first try this:
rvm install 1.9.3 -j 1 # from http://cheat.errtheblog.com/s/rvm
If that doesn't help, double-check that the -j argument in __rvm_make -j 48 actually changed to 1 in the log. If it did, try a smaller number. If it didn't, then try this:
MAKEFLAGS=-j1 rvm install ruby-1.9.3 # from https://twitter.com/avdi/status/130720270733410305
Hopefully one of those works!

Fail to install ruby 1.9.2 in RVM on OSX 10.10 Yosemite

Ok guys, I already tried to:
Reinstall RVM;
Update XCode to 6.1;
Install command_line_tools_for_osx_10.10_for_xcode_6.1.dmg;
Nothing works for me!
When I run rvm install ruby-1.9.2 I got this error:
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.10/x86_64/ruby-1.9.2-p330.
It is not possible to build movable binaries for rubies 1.8-1.9.2, but you can do it for your system only.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
/Users/brunnosantos/.rvm/scripts/functions/build: line 110: 33084 Segmentation fault: 11 ${compiler} "$#" 2>&1
Installing Ruby from source to: /Users/brunnosantos/.rvm/rubies/ruby-1.9.2-p330, this may take a while depending on your cpu(s)...
ruby-1.9.2-p330 - #downloading ruby-1.9.2-p330, this may take a while depending on your connection...
######################################################################## 100.0%
ruby-1.9.2-p330 - #extracting ruby-1.9.2-p330 to /Users/brunnosantos/.rvm/src/ruby-1.9.2-p330....
ruby-1.9.2-p330 - #applying patch /Users/brunnosantos/.rvm/patches/ruby/GH-488.patch.
ruby-1.9.2-p330 - #applying patch /Users/brunnosantos/.rvm/patches/ruby/ssl_no_ec2m.patch.
ruby-1.9.2-p330 - #configuring.
Error running 'env CFLAGS=-O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib ./configure --prefix=/Users/brunnosantos/.rvm/rubies/ruby-1.9.2-p330 --with-opt-dir=/usr/local/opt/libyaml --without-tcl --without-tk --disable-install-doc --enable-shared',
showing last 15 lines of /Users/brunnosantos/.rvm/log/1413833087_ruby-1.9.2-p330/configure.log
[2014-10-20 17:24:50] ./configure
current path: /Users/brunnosantos/.rvm/src/ruby-1.9.2-p330
PATH=/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/usr/local/heroku/bin:/Users/brunnosantos/dotfiles/powerline/scripts:/usr/local/bin:/Users/brunnosantos/.azk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/brunnosantos/bin:/Users/brunnosantos/.rvm/bin:/Users/brunnosantos/go/bin:/usr/local/smlnj/bin
command(10): env CFLAGS=-O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib ./configure --prefix=/Users/brunnosantos/.rvm/rubies/ruby-1.9.2-p330 --with-opt-dir=/usr/local/opt/libyaml --without-tcl --without-tk --disable-install-doc --enable-shared
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... i386-apple-darwin14.0.0
checking host system type... i386-apple-darwin14.0.0
checking target system type... i386-apple-darwin14.0.0
checking whether the C compiler works... no
configure: error: in `/Users/brunnosantos/.rvm/src/ruby-1.9.2-p330':
configure: error: C compiler cannot create executables
See `config.log' for more details
There has been an error while running configure. Halting the installation.
When I tried rvm install ruby-1.9.2 --with-gcc=clang I got:
ruby-1.9.2-p330 - #removing src/ruby-1.9.2-p330..
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Warning: found user selected compiler 'clang', this will suppress RVM auto detection mechanisms.
Installing Ruby from source to: /Users/brunnosantos/.rvm/rubies/ruby-1.9.2-p330, this may take a while depending on your cpu(s)...
ruby-1.9.2-p330 - #downloading ruby-1.9.2-p330, this may take a while depending on your connection...
ruby-1.9.2-p330 - #extracting ruby-1.9.2-p330 to /Users/brunnosantos/.rvm/src/ruby-1.9.2-p330....
ruby-1.9.2-p330 - #applying patch /Users/brunnosantos/.rvm/patches/ruby/GH-488.patch.
ruby-1.9.2-p330 - #applying patch /Users/brunnosantos/.rvm/patches/ruby/ssl_no_ec2m.patch.
ruby-1.9.2-p330 - #configuring..........................................
ruby-1.9.2-p330 - #post-configuration.
ruby-1.9.2-p330 - #compiling...........................................................................................................................................
Error running '__rvm_make -j 1',
showing last 15 lines of /Users/brunnosantos/.rvm/log/1413833194_ruby-1.9.2-p330/make.log
#define UNINITIALIZED_VAR(x) x = x
^
4 warnings generated.
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o cont.o -c cont.c
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o ascii.o -c ./enc/ascii.c
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o us_ascii.o -c ./enc/us_ascii.c
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o unicode.o -c ./enc/unicode.c
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o utf_8.o -c ./enc/utf_8.c
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o newline.o -c newline.c
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o dmyext.o -c dmyext.c
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -L. -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -Wl,-u,_objc_msgSend main.o dmydln.o dmyencoding.o dmyversion.o miniprelude.o array.o bignum.o class.o compar.o complex.o dir.o dln_find.o enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o math.o node.o numeric.o object.o pack.o parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o variable.o compile.o debug.o iseq.o vm.o vm_dump.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o dmyext.o -lpthread -ldl -lobjc -o miniruby
miniruby(46919,0x7fff7a0cc300) malloc: *** error for object 0x7fed53001a08: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
make: *** [.rbconfig.time] Abort trap: 6
++ return 2
There has been an error while running make. Halting the installation.
Full log file /Users/brunnosantos/.rvm/log/1413833194_ruby-1.9.2-p330/make.log can be viwed in: https://gist.github.com/squiter/b6c4280946454b6b7764
I installed 1.9.3 with rvm install ruby-1.9.3 --with-gcc=clang, worked well, but no success with 1.9.2.
I don't know what I can try anymore....
Did you try this?
export CC=/usr/bin/gcc
and then trying to install?
Hope it helps!
This is a reported known problem in Ruby on OSX depending on your C compiler version.
You might find a solution here: https://github.com/sstephenson/ruby-build/issues/648
I found that reinstalling gcc4.2 (via homebrew, in my case: 'brew install gcc42') and then using that clang compiler when installing older rubies allows the installation to succeed.
I have the ruby 2.2.0 version installed and I try to install the -v 1.9.2 and I do this previously recommended and when I try to install ruby I have his fail:
```
$ rvm install ruby -v '1.9.2'
Already installed ruby-2.2.0.
To reinstall use:
rvm reinstall ruby-2.2.0
```
Anyone can Help me, the problem is the new version of Mac OS X Yosemite( I'm so bad about the updating of this OS I has so many errors on drivers(wi-fi, bluetooth, etc...)

Installing ruby-1.9.3-p194 with rvm on OS X 10.8.5

I have installed the XCode command line developer tools, and installed ruby-1.9.3-p448 and ruby-2.0.0-p247 with out any trouble.
However, when I do rvm install ruby-1.9.3-p194 I get an error:
Error running '__rvm_make -j 1',
please read /Users/michaelirey/.rvm/log/1382458979_ruby-1.9.3-p194/make.log
There has been an error while running make. Halting the installation.
Here is the output of that file:
[2013-10-22 09:23:22] __rvm_make
__rvm_make ()
{
\make "$#" || return $?
}
current path: /Users/michaelirey/.rvm/src/ruby-1.9.3-p194
command(3): __rvm_make -j 1
CC = gcc
LD = ld
LDSHARED = gcc -dynamiclib
CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -fno-common -pipe
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I. -I.ext/include/x86_64-darwin12.5.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -install_name /Users/michaelirey/.rvm/rubies/ruby-1.9.3-p194/lib/libruby.1.9.1.dylib -current_version 1.9.1 -compatibility_version 1.9.1 -Wl,-unexported_symbol,_Init_* -Wl,-unexported_symbol,*_threadptr_* -Wl,-u,_objc_msgSend
SOLIBS =
compiling regparse.c
regparse.c:582:15: error: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
return t->num_entries;
~~~~~~ ~~~^~~~~~~~~~~
1 error generated.
make: *** [regparse.o] Error 1
I have also tried:
rvm install ruby-1.9.3-p194 --with-gcc=clang
With the same result...
Are you having in your environment CC=gcc - that would explain the problem - ruby 1.9.3 is not ready to build with it (or clang), make sure to unset it before trying:
rvm get stable # always update rvm first in case of problems
unset CC # unset CC to allow autodetection to work
rvm install ruby-1.9.3-p194 # do not add extra flags
This should allow RVM to autodetect proper GCC needed for thee given ruby to build, if it still fails it means you still have some environment preventing autodetection or there is a bug - open a bug report here: https://github.com/wayneeseguin/rvm/issues

Resources