Having trouble install rubies with Mac OSX Snow Leopard

39 views
Skip to first unread message

Tam

unread,
Feb 12, 2010, 12:30:06 PM2/12/10
to rvm (Ruby Version Manager)
I'm have trouble install rubies with RVM. After trying to install some
Ruby (any of them) I get:

<i> Installing Ruby from source to: /Users/tammam56/.rvm/rubies/
ruby-1.9.2-preview1 </i>


<i> /Users/tammam56/.rvm/src/ruby-1.9.2-preview1 has already been
extracted. </i>


<i> Compiling ruby-1.9.2-preview1, this may take a while, depending on
your cpu(s)... </i>


<e> Error running 'make ', please check /Users/tammam56/.rvm/log/
ruby-1.9.2-preview1/make.error.log </e>


<e> There has been an error while running make. Aborting the
installation. </e>

Then looking into the log file mentioned above:
.......
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
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
ossl_x509store.c: In function ‘ossl_x509store_set_purpose’:
ossl_x509store.c:175: warning: implicit conversion shortens 64-bit
value into a 32-bit value
ossl_x509store.c: In function ‘ossl_x509store_set_trust’:
ossl_x509store.c:191: warning: implicit conversion shortens 64-bit
value into a 32-bit value
ossl_x509store.c: In function ‘ossl_x509stctx_set_purpose’:
ossl_x509store.c:542: warning: implicit conversion shortens 64-bit
value into a 32-bit value
ossl_x509store.c: In function ‘ossl_x509stctx_set_trust’:
ossl_x509store.c:554: warning: implicit conversion shortens 64-bit
value into a 32-bit value
pty.c: In function ‘pty_check’:
pty.c:612: warning: implicit conversion shortens 64-bit value into a
32-bit value
readline.c: In function ‘username_completion_proc_call’:
readline.c:1289: error: ‘username_completion_function’ undeclared
(first use in this function)
readline.c:1289: error: (Each undeclared identifier is reported only
once
readline.c:1289: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [mkmain.sh] Error 1
[2010-02-12 03:01:50] make
readline.c: In function ‘username_completion_proc_call’:
readline.c:1289: error: ‘username_completion_function’ undeclared
(first use in this function)
readline.c:1289: error: (Each undeclared identifier is reported only
once
readline.c:1289: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [mkmain.sh] Error 1
[2010-02-12 03:09:09] make
readline.c: In function ‘username_completion_proc_call’:
readline.c:1289: error: ‘username_completion_function’ undeclared
(first use in this function)
readline.c:1289: error: (Each undeclared identifier is reported only
once
readline.c:1289: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [mkmain.sh] Error 1
[2010-02-12 03:17:58] make
readline.c: In function ‘username_completion_proc_call’:
readline.c:1289: error: ‘username_completion_function’ undeclared
(first use in this function)
readline.c:1289: error: (Each undeclared identifier is reported only
once
readline.c:1289: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [mkmain.sh] Error 1
[2010-02-12 03:18:09] make
readline.c: In function ‘username_completion_proc_call’:
readline.c:1289: error: ‘username_completion_function’ undeclared
(first use in this function)
readline.c:1289: error: (Each undeclared identifier is reported only
once
readline.c:1289: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [mkmain.sh] Error 1
[2010-02-12 09:24:21] make
readline.c: In function ‘username_completion_proc_call’:
readline.c:1289: error: ‘username_completion_function’ undeclared
(first use in this function)
readline.c:1289: error: (Each undeclared identifier is reported only
once
readline.c:1289: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1

any ideas?

Thanks,

Tam

Wayne E. Seguin

unread,
Feb 12, 2010, 7:48:16 PM2/12/10
to rvm (Ruby Version Manager)
rvm install readline ; rvm remove 1.9.2 ; rvm install 1.9.2 -C --with-
readline-dir=$HOME/.rvm/usr

Tam

unread,
Feb 12, 2010, 8:45:53 PM2/12/10
to rvm (Ruby Version Manager)
it seemed to have solved the first issue but I'm getting a second
problem:

tcltklib.c: In function ‘tk_funcall’:
tcltklib.c:6474: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:6480: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘ip_eval_real’:
tcltklib.c:6647: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘ip_eval’:
tcltklib.c:6933: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:6968: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:6980: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:7000: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘lib_restart_core’:
tcltklib.c:7178: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘lib_toUTF8_core’:
tcltklib.c:7300: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:7389: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘lib_fromUTF8_core’:
tcltklib.c:7476: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:7537: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:7580: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘lib_UTF_backslash_core’:
tcltklib.c:7665: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:7669: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:7677: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘invoke_tcl_proc’:
tcltklib.c:7810: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘ip_invoke_core’:
tcltklib.c:7956: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:7980: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘alloc_invoke_arguments’:
tcltklib.c:8163: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:8169: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘ip_invoke_with_position’:
tcltklib.c:8454: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘ip_get_variable2_core’:
tcltklib.c:8635: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘ip_set_variable2_core’:
tcltklib.c:8768: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘lib_split_tklist_core’:
tcltklib.c:9076: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘lib_merge_tklist’:
tcltklib.c:9186: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:9192: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:9204: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:9221: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘lib_conv_listelement’:
tcltklib.c:9278: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:9285: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c:9288: warning: implicit conversion shortens 64-bit value
into a 32-bit value
tcltklib.c: In function ‘tcltklib_compile_info’:
tcltklib.c:9352: warning: implicit conversion shortens 64-bit value
into a 32-bit value
ld: in /usr/local/lib/libxml2.2.dylib, file is not of required
architecture
collect2: ld returned 1 exit status
make[1]: *** [../../.ext/i386-darwin10.2.0/tcltklib.bundle] Error 1


make: *** [mkmain.sh] Error 1

Wayne E. Seguin

unread,
Feb 12, 2010, 9:27:15 PM2/12/10
to rubyversi...@googlegroups.com
This is an issue with whatever libxml2 library that is in your path
which the installer is picking up. I do not yet have a library
installer yet written for libxml2, you will need to download and
install libxml2 to say /usr/local then do the same trick as with
readline with: 'rvm remove X ; rvm install X -C
--with-libxml2-dir=/usr/local in order to install' to get past that
issue.

~Wayne

Tam

unread,
Feb 13, 2010, 4:02:57 PM2/13/10
to rvm (Ruby Version Manager)
Thanks Wayne...I still seem to be having issues with it :(

[2010-02-13 12:56:20] make
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


ld: in /usr/local/lib/libxml2.2.dylib, file is not of required
architecture
collect2: ld returned 1 exit status
make[1]: *** [../../.ext/i386-darwin10.2.0/tcltklib.bundle] Error 1
make: *** [mkmain.sh] Error 1

Is that something to do with RVM?

Wayne E. Seguin

unread,
Feb 13, 2010, 4:08:48 PM2/13/10
to rubyversi...@googlegroups.com
No that's something to do with the ruby you are trying to install not
finding a compatible libxml2 library on your system.
Reply all
Reply to author
Forward
0 new messages