# (no subject)

**URL:** <https://www.ruby-forum.com/t/no-subject/190416>\
**Category:** Ruby\
**Created:** [June 19, 2010, 5:24pm UTC](https://www.ruby-forum.com/t/no-subject/190416 "2010-06-19T17:24:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florent\_THOMAS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/47e85d/32.png) [@Florent\_THOMAS](https://www.ruby-forum.com/u/Florent_THOMAS)\
**Post date:** [June 19, 2010, 5:24pm UTC](https://www.ruby-forum.com/t/no-subject/190416/1 "2010-06-19T17:24:06Z")

</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 ’  
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 ’  
from bootstraptest.tmp.rb:2:in `times' from bootstraptest.tmp.rb:2:in `’  
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

---

<div class="post-metadata">

**Author:** ![Florent\_THOMAS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/47e85d/32.png) [@Florent\_THOMAS](https://www.ruby-forum.com/u/Florent_THOMAS)\
**Post date:** [June 19, 2010, 6:09pm UTC](https://www.ruby-forum.com/t/no-subject/190416/2 "2010-06-19T18:09:11Z")

</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 :

---

<div class="post-metadata">

**Author:** ![Florent\_THOMAS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/47e85d/32.png) [@Florent\_THOMAS](https://www.ruby-forum.com/u/Florent_THOMAS)\
**Post date:** [June 21, 2010, 1:56pm UTC](https://www.ruby-forum.com/t/no-subject/190416/3 "2010-06-21T13:56:30Z")

</div>

2010/6/19 Florent THOMAS [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Unfortunately, the installation of the sqlite3-ruby failed.  
> sample/test.rb:assignment …  
> sample/test.rb:string &  
> sample/test.rb:pack …  
> test\_attr.rb …  
> test\_jump.rb …  
> test\_thread.rb …bootstraptest.tmp.rb:4:in `initialize': can't create from bootstraptest.tmp.rb:2:in `times’  
> }  
> Could you help me on this please?  
> I believe you need pthreads library.

Kind regards

robert

---

<div class="post-metadata">

**Author:** ![Florent\_THOMAS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/47e85d/32.png) [@Florent\_THOMAS](https://www.ruby-forum.com/u/Florent_THOMAS)\
**Post date:** [June 21, 2010, 2:31pm UTC](https://www.ruby-forum.com/t/no-subject/190416/4 "2010-06-21T14:31:32Z")

</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:

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](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).
