Trouble installing 1.9.2

hello,

I am trying install Ruby 1.9.2 on my MacBook Pro Lion. I am following
along with the install instructions at ruby.railstutorial.org. I am the
point were you run rvm install 1.9.2. Below in what I see in the
terminal when installing and below that my rvm log. Thanks for any help.

rvm install 1.9.2
Installing Ruby from source to: /Users/user/.rvm/rubies/ruby-1.9.2-p290,
this may take a while depending on your cpu(s)…

ruby-1.9.2-p290 - #fetching
ruby-1.9.2-p290 - #extracted to /Users/user/.rvm/src/ruby-1.9.2-p290
(already extracted)
Fetching yaml-0.1.4.tar.gz to /Users/user/.rvm/archives
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 460k 100 460k 0 0 192k 0 0:00:02 0:00:02 --:–:–
198k
Extracting yaml-0.1.4.tar.gz to /Users/user/.rvm/src
Configuring yaml in /Users/user/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/user/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/user/.rvm/usr
ruby-1.9.2-p290 - #configuring
ruby-1.9.2-p290 - #compiling
ERROR: Error running 'make ', please read
/Users/user/.rvm/log/ruby-1.9.2-p290/make.log
ERROR: There has been an error while running make. Halting the
installation.

2011-08-20 00:45:06] make
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o main.o -c main.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o dln.o -c dln.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o dmydln.o -c
dmydln.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o dmyencoding.o -c
dmyencoding.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o version.o -c
version.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o dmyversion.o -c
dmyversion.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o miniprelude.o -c
miniprelude.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o array.o -c array.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o bignum.o -c
bignum.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o class.o -c class.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o compar.o -c
compar.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o complex.o -c
complex.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o dir.o -c dir.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o dln_find.o -c
dln_find.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o enum.o -c enum.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o enumerator.o -c
enumerator.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o error.o -c error.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o eval.o -c eval.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o load.o -c load.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o proc.o -c proc.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o file.o -c file.c
file.c: In function ‘file_expand_path’:
file.c:2852: warning: ‘b’ may be used uninitialized in this function
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o gc.o -c gc.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o hash.o -c hash.c
/usr/bin/gcc-4.2 -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 -I. -I.ext/include/x86_64-darwin11.0.0 -I./include -I.
-DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o inits.o -c inits.c

On Aug 20, 6:11pm, is ea [email protected] wrote:

hello,

I am trying install Ruby 1.9.2 on my MacBook Pro Lion. I am following
along with the install instructions at ruby.railstutorial.org. I am the
point were you run rvm install 1.9.2. Below in what I see in the
terminal when installing and below that my rvm log. Thanks for any help.

Have you installed Xcode?

Fred

when I posted I had xcode 3.1 and 4.1 installed. I removed both and
reinstalled xcode 4.1. Below is the current make.log

/usr/bin/gcc-4.2 -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 -L. -L/usr/local/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
ld: warning: ignoring file dmyext.o, file was built for i386 which is
not the architecture being linked (x86_64)
Undefined symbols for architecture x86_64:
“_Init_ext”, referenced from:
_require_libraries in ruby.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [miniruby] Error 1

dude i had the same problem too… i just install xcode 3.6.x and
problem solved

Enviado via iPad

Em 20/08/2011, s 15:59, is ea [email protected] escreveu:

Are you running rails 3? My understanding is you need xcode 4 in order
to use rvm install 1.9.2