In my quest to upgrade to Rails 3 on Mac 0S 10.6.2, I did the following:
- Installed RVM via terminal:
bash < <( curl
http://rvm.beginrescueend.com/releases/rvm-install-latest bash )
version=$(curl
http://rvm.beginrescueend.com/releases/stable-version.txt);
mkdir -p ~/.rvm/src/ && cd ~/.rvm/src/ && curl -O
http://rvm.beginrescueend.com/releases/rvm-${version}.tar.gz | tar zxf -
&& cd rvm-${version} && ./install
Updating the .bash_profile and added the below line of text:
[[ -s “$HOME/.rvm/scripts/rvm” ]] && . “$HOME/.rvm/scripts/rvm”
Then I type:
rvm install 1.9.2
And I am greeted with this:
Error running 'make ', please read
/Users/jmerlino/.rvm/log/ruby-1.9.2-p136/make.log
There has been an error while running make. Halting the installation.
Some of what error says:
-D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter
-Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long
-fno-common -pipe -o ossl_x509attr.o -c ossl_x509attr.c
ossl_x509attr.c: In function ‘ossl_x509attr_get_value’:
ossl_x509attr.c:218: warning: implicit conversion shortens 64-bit value
into a 32-bit value
ossl_x509attr.c:218: warning: implicit conversion shortens 64-bit value
into a 32-bit value
ossl_x509attr.c:228: warning: implicit conversion shortens 64-bit value
into a 32-bit value
ossl_x509attr.c:228: warning: implicit conversion shortens 64-bit value
into a 32-bit value
gcc -I. -I…/…/.ext/include/x86_64-darwin10.2.0 -I…/…/./include
-I…/…/./ext/openssl -DRUBY_EXTCONF_H="extconf.h" -D_XOPEN_SOURCE
-D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter
-Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long
-fno-common -pipe -o ossl_x509cert.o -c ossl_x509cert.c
ossl_x509cert.c: In function ‘ossl_x509_to_der’:
ossl_x509cert.c:198: warning: implicit conversion shortens 64-bit value
into a 32-bit value
ossl_x509cert.c:198: warning: implicit conversion shortens 64-bit value
into a 32-bit value
gcc -I. -I…/…/.ext/include/x86_64-darwin10.2.0 -I…/…/./include
-I…/…/./ext/openssl -DRUBY_EXTCONF_H="extconf.h" -D_XOPEN_SOURCE
-D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter
-Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long
-fno-common -pipe -o ossl_x509crl.o -c ossl_x509crl.c
gcc -I. -I…/…/.ext/include/x86_64-darwin10.2.0 -I…/…/./include
-I…/…/./ext/openssl -DRUBY_EXTCONF_H="extconf.h" -D_XOPEN_SOURCE
-D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter
-Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long
-fno-common -pipe -o ossl_x509ext.o -c ossl_x509ext.c
ossl_x509ext.c: In function ‘ossl_x509ext_set_value’:
ossl_x509ext.c:331: warning: implicit conversion shortens 64-bit value
into a 32-bit value
ossl_x509ext.c: In function ‘ossl_x509ext_to_der’:
ossl_x509ext.c:418: warning: implicit conversion shortens 64-bit value
into a 32-bit value
ossl_x509ext.c:418: warning: implicit conversion shortens 64-bit value
into a 32-bit value
gcc -I. -I…/…/.ext/include/x86_64-darwin10.2.0 -I…/…/./include
-I…/…/./ext/openssl -DRUBY_EXTCONF_H="extconf.h" -D_XOPEN_SOURCE
-D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter
-Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long
-fno-common -pipe -o ossl_x509name.o -c ossl_x509name.c
ossl_x509name.c: In function ‘ossl_x509name_add_entry’:
ossl_x509name.c:170: warning: implicit conversion shortens 64-bit value
into a 32-bit value
ossl_x509name.c: In function ‘ossl_x509name_to_der’:
ossl_x509name.c:328: warning: implicit conversion shortens 64-bit value
into a 32-bit value
ossl_x509name.c:328: warning: implicit conversion shortens 64-bit value
into a 32-bit value
ossl_x509name.c: In function ‘Init_ossl_x509name’:
ossl_x509name.c:341: warning: implicit conversion shortens 64-bit value
into a 32-bit value
gcc -I. -I…/…/.ext/include/x86_64-darwin10.2.0 -I…/…/./include
-I…/…/./ext/openssl -DRUBY_EXTCONF_H="extconf.h" -D_XOPEN_SOURCE
-D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter
-Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long
-fno-common -pipe -o ossl_x509req.o -c ossl_x509req.c
ossl_x509req.c: In function ‘ossl_x509req_to_der’:
ossl_x509req.c:179: warning: implicit conversion shortens 64-bit value
into a 32-bit value
ossl_x509req.c:179: warning: implicit conversion shortens 64-bit value
into a 32-bit value
gcc -I. -I…/…/.ext/include/x86_64-darwin10.2.0 -I…/…/./include
-I…/…/./ext/openssl -DRUBY_EXTCONF_H="extconf.h" -D_XOPEN_SOURCE
-D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter
-Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long
-fno-common -pipe -o ossl_x509revoked.o -c ossl_x509revoked.c
gcc -I. -I…/…/.ext/include/x86_64-darwin10.2.0 -I…/…/./include
-I…/…/./ext/openssl -DRUBY_EXTCONF_H="extconf.h" -D_XOPEN_SOURCE
-D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter
-Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long
-fno-common -pipe -o ossl_x509store.o -c ossl_x509store.c
ossl_x509store.c: In function ‘ossl_x509store_set_purpose’:
ossl_x509store.c:176: warning: implicit conversion shortens 64-bit value
into a 32-bit value
ossl_x509store.c: In function ‘ossl_x509store_set_trust’:
ossl_x509store.c:192: warning: implicit conversion shortens 64-bit value
into a 32-bit value
ossl_x509store.c: In function ‘ossl_x509stctx_set_purpose’:
ossl_x509store.c:543: warning: implicit conversion shortens 64-bit value
into a 32-bit value
ossl_x509store.c: In function ‘ossl_x509stctx_set_trust’:
ossl_x509store.c:555: warning: implicit conversion shortens 64-bit value
into a 32-bit value
gcc -dynamic -bundle -o …/…/.ext/x86_64-darwin10.2.0/openssl.bundle
openssl_missing.o ossl.o ossl_asn1.o ossl_bio.o ossl_bn.o ossl_cipher.o
ossl_config.o ossl_digest.o ossl_engine.o ossl_hmac.o ossl_ns_spki.o
ossl_ocsp.o ossl_pkcs12.o ossl_pkcs5.o ossl_pkcs7.o ossl_pkey.o
ossl_pkey_dh.o ossl_pkey_dsa.o ossl_pkey_ec.o ossl_pkey_rsa.o
ossl_rand.o ossl_ssl.o ossl_ssl_session.o ossl_x509.o ossl_x509attr.o
ossl_x509cert.o ossl_x509crl.o ossl_x509ext.o ossl_x509name.o
ossl_x509req.o ossl_x509revoked.o ossl_x509store.o -L. -L…/… -L.
-L/usr/local/lib -Wl,-undefined,dynamic_lookup
-Wl,-multiply_defined,suppress -Wl,-flat_namespace -lruby.1.9.1 -lssl
-lcrypto -lpthread -ldl -lobjc
mkdir -p …/…/.ext/common/openssl
cp …/…/./ext/openssl/lib/openssl/bn.rb …/…/.ext/common/openssl
cp …/…/./ext/openssl/lib/openssl/buffering.rb
…/…/.ext/common/openssl
cp …/…/./ext/openssl/lib/openssl/cipher.rb …/…/.ext/common/openssl
cp …/…/./ext/openssl/lib/openssl/digest.rb …/…/.ext/common/openssl
cp …/…/./ext/openssl/lib/openssl/ssl-internal.rb
…/…/.ext/common/openssl
cp …/…/./ext/openssl/lib/openssl/ssl.rb …/…/.ext/common/openssl
cp …/…/./ext/openssl/lib/openssl/x509-internal.rb
…/…/.ext/common/openssl
cp …/…/./ext/openssl/lib/openssl/x509.rb …/…/.ext/common/openssl
cp …/…/./ext/openssl/lib/openssl.rb …/…/.ext/common
compiling psych
yaml.h is missing. Please install libyaml.
compiling pty
gcc -I. -I…/…/.ext/include/x86_64-darwin10.2.0 -I…/…/./include
-I…/…/./ext/pty -DRUBY_EXTCONF_H="extconf.h" -D_XOPEN_SOURCE
-D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter
-Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long
-fno-common -pipe -o pty.o -c pty.c
gcc -dynamic -bundle -o …/…/.ext/x86_64-darwin10.2.0/pty.bundle pty.o
-L. -L…/… -L. -L/usr/local/lib -Wl,-undefined,dynamic_lookup
-Wl,-multiply_defined,suppress -Wl,-flat_namespace -lruby.1.9.1 -lutil
-lpthread -ldl -lobjc
cp …/…/./ext/pty/lib/expect.rb …/…/.ext/common
compiling racc/cparse
mkdir -p …/…/…/.ext/x86_64-darwin10.2.0/racc
gcc -I. -I…/…/…/.ext/include/x86_64-darwin10.2.0 -I…/…/…/./include
-I…/…/…/./ext/racc/cparse -DRUBY_EXTCONF_H="extconf.h"
-D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra
-Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long
-fno-common -pipe -o cparse.o -c cparse.c
gcc -dynamic -bundle -o
…/…/…/.ext/x86_64-darwin10.2.0/racc/cparse.bundle cparse.o -L.
-L…/…/… -L. -L/usr/local/lib -Wl,-undefined,dynamic_lookup
-Wl,-multiply_defined,suppress -Wl,-flat_namespace -lruby.1.9.1
-lpthread -ldl -lobjc
compiling readline
gcc -I. -I…/…/.ext/include/x86_64-darwin10.2.0 -I…/…/./include
-I…/…/./ext/readline -DRUBY_EXTCONF_H="extconf.h" -D_XOPEN_SOURCE
-D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter
-Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long
-fno-common -pipe -o readline.o -c readline.c
readline.c: In function ‘username_completion_proc_call’:
readline.c:1292: error: ‘username_completion_function’ undeclared (first
use in this function)
readline.c:1292: error: (Each undeclared identifier is reported only
once
readline.c:1292: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [mkmain.sh] Error 1
Thanks for response.