# (unknown)

**URL:** <https://rubytalk.org/t/unknown/58941>\
**Category:** ruby-talk\
**Created:** [19 June 2010 15:23 UTC](https://rubytalk.org/t/unknown/58941 "2010-06-19T15:23:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florent\_THOMAS](https://avatars.discourse-cdn.com/v4/letter/f/47e85d/32.png) [@Florent\_THOMAS](https://rubytalk.org/u/Florent_THOMAS)\
**Post date:** [19 June 2010 15:23 UTC](https://rubytalk.org/t/unknown/58941/1 "2010-06-19T15:23:25Z")

</div>

# 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](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/](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)\>':  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;v = 0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(1..200).map{|i|  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thread.new{  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}.each{|t|  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;v += t.value  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;v  
&nbsp;&nbsp;#=\> "" (expected "20100")  
#906 test\_thread.rb:52:in `\<top (required)\>':  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;100.times{  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thread.new{loop{Thread.pass}}  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
&nbsp;&nbsp;#=\> "" (expected "100")  
FAIL 2/945 tests failed  
make: \*\*\* [btest-ruby] Error 1

Could you help me on this please?

Best regards

---

<div class="post-metadata">

**Author:** ![Florent\_THOMAS](https://avatars.discourse-cdn.com/v4/letter/f/47e85d/32.png) [@Florent\_THOMAS](https://rubytalk.org/u/Florent_THOMAS)\
**Post date:** [19 June 2010 16:08 UTC](https://rubytalk.org/t/unknown/58941/2 "2010-06-19T16:08:49Z")

</div>

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](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 :  
> > [Télécharger Ruby](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)\>':  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;v = 0  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(1..200).map{|i|  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thread.new{  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}.each{|t|  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;v += t.value  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;v  
> > &nbsp;&nbsp;#=\> "" (expected "20100")  
> > #906 test\_thread.rb:52:in `\<top (required)\>':  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;100.times{  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thread.new{loop{Thread.pass}}  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
> > &nbsp;&nbsp;#=\> "" (expected "100")  
> > FAIL 2/945 tests failed  
> > make: \*\*\* [btest-ruby] Error 1
> > 
> > Could you help me on this please?
> > 
> > Best regards

---

<div class="post-metadata">

**Author:** ![Robert\_K1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/robert_k1/32/1830_2.png) [@Robert\_K1](https://rubytalk.org/u/Robert_K1)\
**Post date:** [21 June 2010 11:56 UTC](https://rubytalk.org/t/unknown/58941/3 "2010-06-21T11:56:13Z")

</div>

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](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 :  
> > [Télécharger Ruby](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?
> 
> --  
> remember.guy do |as, often| as.you\_can - without end  
> [http://blog.rubybestpractices.com/](http://blog.rubybestpractices.com/)

---

<div class="post-metadata">

**Author:** ![Brian\_Candler](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Brian\_Candler](https://rubytalk.org/u/Brian_Candler)\
**Post date:** [21 June 2010 12:31 UTC](https://rubytalk.org/t/unknown/58941/4 "2010-06-21T12:31:35Z")

</div>

Florent THOMAS wrote:

> So I tried to follow the processus described  
> here : [Download — Ruby Enterprise Edition](http://www.rubyenterpriseedition.com/download.html)  
> Unfortunately, the installation of the sqlite3-ruby failed.

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

&nbsp;&nbsp;yum install sqlite-devel  
&nbsp;&nbsp;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](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

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/\](http://www.ruby-forum.com/%5C).
