Ubuntu Sverige
https://ubuntu-se.org/phpBB3/

Installera Ruby med rvm
https://ubuntu-se.org/phpBB3/viewtopic.php?f=220&t=54394
Sida 1 av 1

Författare:  Traktor [ 14 jul 2011, 08:49 ]
Inläggsrubrik:  Installera Ruby med rvm

Hej!
Jag försöker köra igång Ruby 1.9.1-p431 via rvm (följt instruktioner på http://code.google.com/p/rubyripper/iss ... ail?id=348 kommentar 48) men misslyckas vid
$ rvm install ruby-1.9.1
I terminalen läser jag:
Gömt innehåll: Visa!
thim@ny-desktop:~$ rvm install ruby-1.9.1Installing Ruby from source to: /home/thim/.rvm/rubies/ruby-1.9.1-p431, this may take a while depending on your cpu(s)...

ruby-1.9.1-p431 - #fetching
ruby-1.9.1-p431 - #extracted to /home/thim/.rvm/src/ruby-1.9.1-p431 (already extracted)
Fetching yaml-0.1.4.tar.gz to /home/thim/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /home/thim/.rvm/src
Configuring yaml in /home/thim/.rvm/src/yaml-0.1.4.
Compiling yaml in /home/thim/.rvm/src/yaml-0.1.4.
Installing yaml to /home/thim/.rvm/usr
ruby-1.9.1-p431 - #configuring
ruby-1.9.1-p431 - #compiling
ERROR: Error running 'make ', please read /home/thim/.rvm/log/ruby-1.9.1-p431/make.log
ERROR: There has been an error while running make. Halting the installation.
thim@ny-desktop:~$

.logfilen ser ut så här:
Gömt innehåll: Visa!
[2011-07-14 09:20:57] make
gcc -O2 -g -Wall -Wno-parentheses -fPIC -L. -rdynamic -Wl,-export-dynamic main.o dln.o dmyencoding.o miniprelude.o array.o bignum.o class.o compar.o complex.o dir.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 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 version.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 strlcpy.o strlcat.o dmyext.o -lpthread -lrt -ldl -lcrypt -lm -o miniruby
rbconfig.rb unchanged
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./enc/make_encmake.rb --builtin-encs="ascii.o us_ascii.o unicode.o utf_8.o" --builtin-transes="newline.o" enc.mk
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb -I. -rrbconfig ./tool/compile_prelude.rb ./prelude.rb ./enc/prelude.rb ./gem_prelude.rb prelude.c
gcc -O2 -g -Wall -Wno-parentheses -fPIC -I. -I.ext/include/i686-linux -I./include -I. -DRUBY_EXPORT -o prelude.o -c prelude.c
ar rcu libruby-static.a dln.o encoding.o array.o bignum.o class.o compar.o complex.o dir.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 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 version.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 strlcpy.o strlcat.o prelude.o dmyext.o
gcc -shared -Wl,-soname,libruby.so.1.9 dln.o encoding.o array.o bignum.o class.o compar.o complex.o dir.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 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 version.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 strlcpy.o strlcat.o prelude.o dmyext.o -lpthread -lrt -ldl -lcrypt -lm -o libruby.so.1.9.1
objcopy -w -L 'Init_*' libruby.so.1.9.1
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./tool/generic_erb.rb -c -o encdb.h ./template/encdb.h.tmpl ./enc enc
/home/thim/.rvm/src/ruby-1.9.1-p431/lib/optparse.rb:1310: [BUG] Segmentation fault
ruby 1.9.1p431 (2011-02-18 revision 30908) [i686-linux]

-- control frame ----------
c:0013 p:---- s:0060 b:0060 l:000059 d:000059 CFUNC :catch
c:0012 p:0049 s:0056 b:0056 l:001430 d:0006bc BLOCK /home/thim/.rvm/src/ruby-1.9.1-p431/lib/optparse.rb:1310
c:0011 p:---- s:0050 b:0050 l:000049 d:000049 FINISH
c:0010 p:---- s:0048 b:0048 l:000047 d:000047 CFUNC :catch
c:0009 p:0062 s:0044 b:0044 l:001430 d:001430 METHOD /home/thim/.rvm/src/ruby-1.9.1-p431/lib/optparse.rb:1258
c:0008 p:0024 s:0034 b:0034 l:000033 d:000033 METHOD /home/thim/.rvm/src/ruby-1.9.1-p431/lib/optparse.rb:1252
c:0007 p:0066 s:0029 b:0029 l:0012a4 d:000a28 BLOCK ./tool/generic_erb.rb:12
c:0006 p:0116 s:0026 b:0026 l:000025 d:000025 METHOD /home/thim/.rvm/src/ruby-1.9.1-p431/lib/optparse.rb:793
c:0005 p:---- s:0020 b:0020 l:000019 d:000019 FINISH
c:0004 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC :new
c:0003 p:0069 s:0015 b:0015 l:0012a4 d:0002d8 EVAL ./tool/generic_erb.rb:8
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0012a4 d:0012a4 TOP
---------------------------
-- Ruby level backtrace information-----------------------------------------
/home/thim/.rvm/src/ruby-1.9.1-p431/lib/optparse.rb:1310:in `catch'
/home/thim/.rvm/src/ruby-1.9.1-p431/lib/optparse.rb:1310:in `block in parse_in_order'
/home/thim/.rvm/src/ruby-1.9.1-p431/lib/optparse.rb:1258:in `catch'
/home/thim/.rvm/src/ruby-1.9.1-p431/lib/optparse.rb:1258:in `parse_in_order'
/home/thim/.rvm/src/ruby-1.9.1-p431/lib/optparse.rb:1252:in `order!'
./tool/generic_erb.rb:12:in `block in <main>'
/home/thim/.rvm/src/ruby-1.9.1-p431/lib/optparse.rb:793:in `initialize'
./tool/generic_erb.rb:8:in `new'
./tool/generic_erb.rb:8:in `<main>'

-- C level backtrace information -------------------------------------------
0x816e439 ./miniruby(rb_vm_bugreport+0x69) [0x816e439]
0x8086ddf ./miniruby() [0x8086ddf]
0x8086e7a ./miniruby(rb_bug+0x3a) [0x8086e7a]
0x8114094 ./miniruby() [0x8114094]
0x4001d410 [0x4001d410]
0x815b658 ./miniruby() [0x815b658]
0x815b9c4 ./miniruby() [0x815b9c4]
0x8167416 ./miniruby() [0x8167416]
0x81622fd ./miniruby() [0x81622fd]
0x8165903 ./miniruby() [0x8165903]
0x816b08b ./miniruby() [0x816b08b]
0x815b658 ./miniruby() [0x815b658]
0x815b9c4 ./miniruby() [0x815b9c4]
0x8167416 ./miniruby() [0x8167416]
0x81622fd ./miniruby() [0x81622fd]
0x8165903 ./miniruby() [0x8165903]
0x815e620 ./miniruby() [0x815e620]
0x815ece5 ./miniruby(rb_funcall2+0x55) [0x815ece5]
0x8088450 ./miniruby(rb_obj_call_init+0x50) [0x8088450]
0x80bdf8a ./miniruby(rb_class_new_instance+0x3a) [0x80bdf8a]
0x815b658 ./miniruby() [0x815b658]
0x815b9c4 ./miniruby() [0x815b9c4]
0x8167416 ./miniruby() [0x8167416]
0x81622fd ./miniruby() [0x81622fd]
0x8165903 ./miniruby() [0x8165903]
0x8165b7b ./miniruby(rb_iseq_eval_main+0xab) [0x8165b7b]
0x8089127 ./miniruby(ruby_exec_node+0xb7) [0x8089127]
0x808a726 ./miniruby(ruby_run_node+0x56) [0x808a726]
0x805cfd8 ./miniruby(main+0x68) [0x805cfd8]
0x400d4bd6 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x400d4bd6]
0x805ced1 ./miniruby() [0x805ced1]

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

make: *** [encdb.h] Avbruten (SIGABRT)

Jag har inte förmågan att tolka detta, och ber därför om hjälp.
Finns det någon som kan bistå?

Författare:  Kurdistan [ 14 jul 2011, 10:26 ]
Inläggsrubrik:  Re: Installera Ruby med rvm

Hej!

Här har du två intressanta länkar för dig:
https://help.ubuntu.com/community/CDRipping
http://ubuntuforums.org/showthread.php?t=799621

Författare:  Traktor [ 14 jul 2011, 12:52 ]
Inläggsrubrik:  Re: Installera Ruby med rvm

Tack!
Ska kolla under dagen.

Sida 1 av 1 Alla tidsangivelser är UTC + 1 timme
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/