(unknown)

# 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 : Download — Ruby Enterprise Edition
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
`<main>': 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 <main>'
from bootstraptest.tmp.rb:3:in `each'
from bootstraptest.tmp.rb:3:in `map'
from bootstraptest.tmp.rb:3:in `<main>'
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 <main>'
from bootstraptest.tmp.rb:2:in `times'
from bootstraptest.tmp.rb:2:in `<main>'
F.......................................
#902 test_thread.rb:13:in `<top (required)>':
     v = 0
     (1..200).map{|i|
       Thread.new{
         i
       }
     }.each{|t|
       v += t.value
     }
     v
  #=> "" (expected "20100")
#906 test_thread.rb:52:in `<top (required)>':
     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?

Best regards

Dear community,

I also tried the installation with ./configure --enable-pthread
Unfortunately, I still have the same issue.

Thanks for your comments,

···

Le dimanche 20 juin 2010 à 00:23 +0900, Florent THOMAS a écrit :

# 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 : Download — Ruby Enterprise Edition
Unfortunately, the installation of the sqlite3-ruby failed.

My problem :
So I decided to compile directly the latest relase that I found here :
Télécharger Ruby
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
`<main>': 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 <main>'
from bootstraptest.tmp.rb:3:in `each'
from bootstraptest.tmp.rb:3:in `map'
from bootstraptest.tmp.rb:3:in `<main>'
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 <main>'
from bootstraptest.tmp.rb:2:in `times'
from bootstraptest.tmp.rb:2:in `<main>'
F.......................................
#902 test_thread.rb:13:in `<top (required)>':
     v = 0
     (1..200).map{|i|
       Thread.new{
         i
       }
     }.each{|t|
       v += t.value
     }
     v
  #=> "" (expected "20100")
#906 test_thread.rb:52:in `<top (required)>':
     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?

Best regards

I believe you need pthreads library.

Kind regards

robert

···

2010/6/19 Florent THOMAS <mailinglist@tdeo.fr>:

# 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 : Download — Ruby Enterprise Edition
Unfortunately, the installation of the sqlite3-ruby failed.

My problem :
So I decided to compile directly the latest relase that I found here :
Télécharger Ruby
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
`<main>': 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 <main>'
from bootstraptest.tmp.rb:3:in `each'
from bootstraptest.tmp.rb:3:in `map'
from bootstraptest.tmp.rb:3:in `<main>'
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 <main>'
from bootstraptest.tmp.rb:2:in `times'
from bootstraptest.tmp.rb:2:in `<main>'
F.......................................
#902 test_thread.rb:13:in `<top (required)>':
v = 0
(1..200).map{|i|
Thread.new{
i
}
}.each{|t|
v += t.value
}
v
#=> "" (expected "20100")
#906 test_thread.rb:52:in `<top (required)>':
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?

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

Florent THOMAS wrote:

So I tried to follow the processus described
here : Download — Ruby Enterprise Edition
Unfortunately, the installation of the sqlite3-ruby failed.

After installing REE, it should just be a case of:

  yum install sqlite-devel
  gem install sqlite3-ruby

(assuming you have the compilers installed). So if that fails, what
error message do you see? It should be possible to resolve it.

So I decided to compile directly the latest relase that I found here :
Télécharger Ruby
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

Beware: ruby 1.9.1 is not the small incremental change that you would
expect from a "minor" version bump. It has a completely different
execution engine (YARV) and in many ways is a completely different
language, such as completely new behaviour for the String core class.

Not all 3rd-party libraries have been updated to work with both 1.8 and
1.9, although many now have. Note that Rails 3 beta is reputed to crash
ruby 1.9.1, but runs with the not-yet-released 1.9.2.

On the other hand, REE is based on the mature 1.8.7 codebase, tweaked
for improved memory usage. This is a more conservative choice.

If you still end up building ruby from source, don't forget that you
could build either 1.8.7 or 1.9.1 (or a 1.9.2 preview).

···

--
Posted via http://www.ruby-forum.com/\.