From: Robert Klemme Date: 2010-06-21T20:56:13+09:00 Subject: Re: 2010/6/19 Florent THOMAS : > # help > Hello, > > I'm writing form france so please excuse my English. > The context : > I'm trying to install ruby on my centos. The purpose is to make > retrospectiva work and I need sqlite3-ruby. But unfortunately the > release available in my yum is apparently to old (ruby 1.8.5 whereas >>=1.8.6 is expected). So I tried to follow the processus described > here : http://www.rubyenterpriseedition.com/download.html > Unfortunately, the installation of the sqlite3-ruby failed. > > My problem : > So I decided to compile directly the latest relase that I found here : > http://www.ruby-lang.org/fr/downloads/ > I made ./configure without any pbms. > I made a make and when I ran the make test I have the following > message : > > [user@machine ruby-1.9.1-p378]# make test > > sample/test.rb:assignment .................................................................................................................................................................................................................................................................................................................................................................................... > sample/test.rb:condition .. > sample/test.rb:if/unless ... > sample/test.rb:case ..... > sample/test.rb:while/until ........ > sample/test.rb:exception .......... > sample/test.rb:array ....................................... > sample/test.rb:hash ........................... > sample/test.rb:iterator ............................................................................................................... > sample/test.rb:float ................................................................................ > sample/test.rb:bignum ............................... > sample/test.rb:string & > char .............................................................. > sample/test.rb:assignment .......... > sample/test.rb:call ...... > sample/test.rb:proc ......... > sample/test.rb:signal .. > sample/test.rb:eval ............................. > sample/test.rb:system ......... > sample/test.rb:const ..... > sample/test.rb:clone ..... > sample/test.rb:marshal .... > sample/test.rb:pack .... > sample/test.rb:math .. > sample/test.rb:struct ...... > sample/test.rb:variable ........... > sample/test.rb:trace ... > sample/test.rb:defined? ............ > sample/test.rb:alias ...... > sample/test.rb:path ....................... > sample/test.rb:gc .... > test succeeded > > test_attr.rb .. > test_autoload.rb .......... > test_block.rb ....................................................... > test_class.rb ............................................ > test_eval.rb ................................... > test_exception.rb ................................. > test_finalizer.rb . > test_flip.rb . > test_flow.rb ............................................ > test_fork.rb . > test_io.rb ......................................................... > test_jump.rb ......................... > test_literal.rb .................................................................................................................................................... > test_load.rb .. > test_marshal.rb . > test_massign.rb .................................. > test_method.rb ........................................................................................................................................................................................................................... > test_objectspace.rb ... > test_proc.rb .................................bootstraptest.tmp.rb:5:in > `
': ok (RuntimeError) > test_struct.rb . > test_syntax.rb ..................................................................................................................................................... > test_thread.rb ..bootstraptest.tmp.rb:4:in `initialize': can't create > Thread (12) (ThreadError) > from bootstraptest.tmp.rb:4:in `new' > from bootstraptest.tmp.rb:4:in `block in
' > from bootstraptest.tmp.rb:3:in `each' > from bootstraptest.tmp.rb:3:in `map' > from bootstraptest.tmp.rb:3:in `
' > F...bootstraptest.tmp.rb:3:in `initialize': can't create Thread (12) > (ThreadError) > from bootstraptest.tmp.rb:3:in `new' > from bootstraptest.tmp.rb:3:in `block in
' > from bootstraptest.tmp.rb:2:in `times' > from bootstraptest.tmp.rb:2:in `
' > F....................................... > #902 test_thread.rb:13:in `': >     v = 0 >     (1..200).map{|i| >       Thread.new{ >         i >       } >     }.each{|t| >       v += t.value >     } >     v >  #=> "" (expected "20100") > #906 test_thread.rb:52:in `': >     100.times{ >       Thread.new{loop{Thread.pass}} >     } >  #=> "" (expected "100") > FAIL 2/945 tests failed > make: *** [btest-ruby] Error 1 > > Could you help me on this please? I believe you need pthreads library. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/