# Ruby 1.9.1-p0 runner.rb errors on Mac OSX Leopard compile

**URL:** <https://rubytalk.org/t/ruby-1-9-1-p0-runner-rb-errors-on-mac-osx-leopard-compile/51481>\
**Category:** ruby-talk\
**Created:** [1 February 2009 23:14 UTC](https://rubytalk.org/t/ruby-1-9-1-p0-runner-rb-errors-on-mac-osx-leopard-compile/51481 "2009-02-01T23:14:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthias\_Tarasiewicz](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@Matthias\_Tarasiewicz](https://rubytalk.org/u/Matthias_Tarasiewicz)\
**Post date:** [1 February 2009 23:14 UTC](https://rubytalk.org/t/ruby-1-9-1-p0-runner-rb-errors-on-mac-osx-leopard-compile/51481/1 "2009-02-01T23:14:03Z")

</div>

hi there,  
we are currently compiling the packages for the Ruby One-Click Installer  
for OSX ( [http://rubyosx.com](http://rubyosx.com) )  
just wondering if anyone on OSX Leopard experienced the same error  
output from running "ruby runner.rb" in the /test directory of the  
sources.

we thought there might be readline issues involved, since some people  
suggested patching and compiling readline before compiling ruby, but  
that actually didn't change anything.  
here's the link to our current discussion:  
[http://rubyforge.org/pipermail/rubyosx-list/2009-February/000014.html](http://rubyforge.org/pipermail/rubyosx-list/2009-February/000014.html)

here is the output from a ruby 1.9.1-p0 compilation on mac osx leopard  
10.5.6 and the following compile settings:

./configure --prefix=/usr/local --enable-shared --enable-install-doc  
--enable-pthread && make && make install && make install-doc

&nbsp;&nbsp;1) Failure:  
test\_delete(TestDBM)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/dbm/test\_dbm.rb:327]:  
DBMError expected but nothing was raised.

&nbsp;&nbsp;2) Error:  
test\_05\_too\_large\_ary(TestDRbLarge):  
DRb::DRbConnError: druby://localhost:55819 - #\<Errno::ECONNREFUSED:  
Connection refused - connect(2)\>  
&nbsp;&nbsp;&nbsp;&nbsp;/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/drb/test\_drb.rb:266:in  
`teardown'

&nbsp;&nbsp;3) Failure:  
test\_readable\_p(TestFileExhaustive)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test\_file\_exhaustive.rb:146]:  
Failed assertion, no message given.

&nbsp;&nbsp;4) Failure:  
test\_readable\_real\_p(TestFileExhaustive)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test\_file\_exhaustive.rb:155]:  
Failed assertion, no message given.

&nbsp;&nbsp;5) Failure:  
test\_stat\_readable\_p(TestFileExhaustive)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test\_file\_exhaustive.rb:615]:  
Failed assertion, no message given.

&nbsp;&nbsp;6) Failure:  
test\_stat\_readable\_real\_p(TestFileExhaustive)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test\_file\_exhaustive.rb:623]:  
Failed assertion, no message given.

&nbsp;&nbsp;7) Failure:  
test\_stat\_writable\_p(TestFileExhaustive)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test\_file\_exhaustive.rb:641]:  
Failed assertion, no message given.

&nbsp;&nbsp;8) Failure:  
test\_stat\_writable\_real\_p(TestFileExhaustive)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test\_file\_exhaustive.rb:649]:  
Failed assertion, no message given.

&nbsp;&nbsp;9) Failure:  
test\_writable\_p(TestFileExhaustive)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test\_file\_exhaustive.rb:175]:  
Failed assertion, no message given.

10) Failure:  
test\_writable\_real\_p(TestFileExhaustive)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test\_file\_exhaustive.rb:184]:  
Failed assertion, no message given.

11) Failure:  
test\_self\_ensure\_gem\_directories\_write\_protected\_parents(TestGem)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem.rb:211]:  
Failed assertion, no message given.

12) Failure:  
test\_self\_ensure\_gem\_directories\_write\_protected(TestGem)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem.rb:194]:  
Failed assertion, no message given.

13) Failure:  
test\_self\_prefix(TestGem)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem.rb:374]:  
Expected "/Users/ppl/Desktop/test/ruby-1.9.1-p0", not nil.

14) Failure:  
test\_execute(TestGemCommandsEnvironmentCommand)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem\_commands\_environment\_command.rb:26]:  
Expected /RUBYGEMS PREFIX: / to match "RubyGems Environment:\n -  
RUBYGEMS VERSION: 1.3.1\n - RUBY VERSION: 1.9.1 (2009-01-30 patchlevel  
0) [i386-darwin9.6.0]\n - INSTALLATION DIRECTORY:  
/private/tmp/test\_rubygems\_63552/gemhome\n - RUBY EXECUTABLE:  
/usr/local/bin/ruby\n - EXECUTABLE DIRECTORY:  
/private/tmp/test\_rubygems\_63552/gemhome/bin\n - RUBYGEMS PLATFORMS:\n  
- ruby\n - x86-darwin-8\n - GEM PATHS:\n -  
/private/tmp/test\_rubygems\_63552/gemhome\n - GEM CONFIGURATION:\n -  
:update\_sources =\> true\n - :verbose =\> true\n - :benchmark =\>  
false\n - :backtrace =\> false\n - :bulk\_threshold =\> 1000\n -  
REMOTE SOURCES:\n - [http://gems.example.com](http://gems.example.com)\n".

15) Failure:  
test\_uninstall\_doc\_unwritable(TestGemDocManager)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem\_doc\_manager.rb:23]:  
Gem::FilePermissionError expected but nothing was raised.

16) Failure:  
test\_user\_install\_disabled\_read\_only(TestGemInstallUpdateOptions)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem\_install\_update\_options.rb:54]:  
Gem::FilePermissionError expected but nothing was raised.

17) Failure:  
test\_generate\_bin\_script\_no\_perms(TestGemInstaller)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem\_installer.rb:293]:  
Gem::FilePermissionError expected but nothing was raised.

18) Failure:  
test\_generate\_bin\_symlink\_no\_perms(TestGemInstaller)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem\_installer.rb:378]:  
Gem::FilePermissionError expected but nothing was raised.

19) Failure:  
test\_install\_bindir\_read\_only(TestGemInstaller)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem\_installer.rb:721]:  
Failed assertion, no message given.

20) Failure:  
test\_install\_user\_local\_fallback(TestGemInstaller)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem\_installer.rb:702]:  
Failed assertion, no message given.

21) Failure:  
test\_download\_read\_only(TestGemRemoteFetcher)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem\_remote\_fetcher.rb:285]:  
Failed assertion, no message given.

22) Failure:  
test\_download\_local\_read\_only(TestGemRemoteFetcher)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem\_remote\_fetcher.rb:272]:  
Expected "/private/tmp/test\_rubygems\_63552/a-1.gem", not  
"/private/tmp/test\_rubygems\_63552/gemhome/cache/a-1.gem".

23) Failure:  
test\_cache\_data\_none\_readable(TestGemSourceInfoCache)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem\_source\_info\_cache.rb:142]:  
Expected {}, not  
{“[http://gems.example.com/](http://gems.example.com/)”=\>#\<Gem::SourceInfoCacheEntry:0x565a374  
@source\_index=#\<Gem::SourceIndex:0x565a338 @gems={}, @spec\_dirs=nil\>,  
@size=0, @all=false\>}.

24) Failure:  
test\_cache\_data\_none\_writable(TestGemSourceInfoCache)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem\_source\_info\_cache.rb:148]:  
RuntimeError expected but nothing was raised.

25) Failure:  
test\_write\_cache\_user\_from\_scratch(TestGemSourceInfoCache)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem\_source\_info\_cache.rb:392]:  
system\_cache\_file

26) Failure:  
test\_cache\_file\_user\_fallback(TestGemSourceInfoCache)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem\_source\_info\_cache.rb:197]:  
Expected "/private/tmp/test\_rubygems\_63552/gemhome/.gem/user\_cache", not  
"/private/tmp/test\_rubygems\_63552/gemhome/source\_cache".

27) Failure:  
test\_cache\_file\_none\_writable(TestGemSourceInfoCache)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem\_source\_info\_cache.rb:203]:  
RuntimeError expected but nothing was raised.

28) Error:  
test\_write\_cache\_user\_no\_directory(TestGemSourceInfoCache):  
Errno::ENOENT: No such file or directory -  
/private/tmp/test\_rubygems\_63552/gemhome/.gem/user\_cache  
&nbsp;&nbsp;&nbsp;&nbsp;/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/gemutilities.rb:190:in  
`read\_cache'  
&nbsp;&nbsp;&nbsp;&nbsp;/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test\_gem\_source\_info\_cache.rb:425:in  
`test\_write\_cache\_user\_no\_directory'

29) Failure:  
test\_handle\_special\_CROSSREF\_no\_underscore(TestRDocMarkupToHtmlCrossref)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rdoc/test\_rdoc\_markup\_to\_html\_crossref.rb:87]:  
Expected "\<p\> \<a  
href=\"../files/Users/ppl/Desktop/test/ruby-1\_9\_1-p0/test/rdoc/rdoc\_markup\_to\_html\_crossref\_reference\_rb.html\"\>/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rdoc/rdoc\_markup\_to\_html\_crossref\_reference.rb\</a\>  
\</p\> ", not "\<p\>  
/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rdoc/rdoc\_markup\_to\_html\_crossref\_reference.rb  
\</p\> ".

30) Failure:  
test\_readonly(TestSDBM)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/sdbm/test\_sdbm.rb:539]:  
SDBMError expected but nothing was raised.

31) Failure:  
test\_s\_open\_error(TestSDBM)  
[/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/sdbm/test\_sdbm.rb:124]:  
Errno::EACCES expected but nothing was raised.

5780 tests, 2514732 assertions, 29 failures, 2 errors, 0 skips

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Sandor\_Szuecs](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@Sandor\_Szuecs](https://rubytalk.org/u/Sandor_Szuecs)\
**Post date:** [2 February 2009 13:25 UTC](https://rubytalk.org/t/ruby-1-9-1-p0-runner-rb-errors-on-mac-osx-leopard-compile/51481/2 "2009-02-02T13:25:04Z")

</div>

> hi there,  
> we are currently compiling the packages for the Ruby One-Click Installer  
> for OSX ( [http://rubyosx.com](http://rubyosx.com) )  
> just wondering if anyone on OSX Leopard experienced the same error  
> output from running "ruby runner.rb" in the /test directory of the  
> sources.  
> we thought there might be readline issues involved, since some people  
> suggested patching and compiling readline before compiling ruby, but  
> that actually didn't change anything.  
> here's the link to our current discussion:  
> [http://rubyforge.org/pipermail/rubyosx-list/2009-February/000014.html](http://rubyforge.org/pipermail/rubyosx-list/2009-February/000014.html)
> 
> here is the output from a ruby 1.9.1-p0 compilation on mac osx leopard  
> 10.5.6 and the following compile settings:
> 
> ./configure --prefix=/usr/local --enable-shared --enable-install-doc  
> --enable-pthread && make && make install && make install-doc

----------------8\<-------------

> 5780 tests, 2514732 assertions, 29 failures, 2 errors, 0 skips

Yesterday I compiled it and `make test' runs without errors.

$ ruby191 test/runner.rb  
...  
5779 tests, 2514940 assertions, 8 failures, 0 errors, 0 skips

I used different configure flags:  
autoconf && ./configure --prefix=/usr/local --program-suffix=191

$ ruby191 --version  
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9.6.0]

$ uname -mprsv  
Darwin 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE\_I386 i386 i386  
#(10.5.6) on a new macbook

regards, Sandor Szücs

> **···**
>
> On 02.02.2009, at 00:14, Matthias Tarasiewicz wrote:  
> --

---

<div class="post-metadata">

**Author:** ![Matthias\_Tarasiewicz](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@Matthias\_Tarasiewicz](https://rubytalk.org/u/Matthias_Tarasiewicz)\
**Post date:** [2 February 2009 13:42 UTC](https://rubytalk.org/t/ruby-1-9-1-p0-runner-rb-errors-on-mac-osx-leopard-compile/51481/3 "2009-02-02T13:42:17Z")

</div>

Sandor Szücs wrote:

> $ ruby191 test/runner.rb  
> ...  
> 5779 tests, 2514940 assertions, 8 failures, 0 errors, 0 skips

sandor, can you tell us which system you are on and which tests exactly  
failed?

thanks,  
matthias

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Sandor\_Szuecs](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@Sandor\_Szuecs](https://rubytalk.org/u/Sandor_Szuecs)\
**Post date:** [2 February 2009 14:10 UTC](https://rubytalk.org/t/ruby-1-9-1-p0-runner-rb-errors-on-mac-osx-leopard-compile/51481/4 "2009-02-02T14:10:43Z")

</div>

The system as already mentioned (# Mac OSX 10.5.6 (build 9G55) on a new macbook):  
$ uname -mprsv  
Darwin 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE\_I386 i386 i386

$ ruby191 test/runner.rb  
....  
&nbsp;&nbsp;1) Failure:  
test\_self\_prefix(TestGem) [/Users/sszuecs/src/ruby/ruby-1.9.1-p0/test/rubygems/test\_gem.rb:374]:  
Expected "/Users/sszuecs/src/ruby/ruby-1.9.1-p0", not nil.

&nbsp;&nbsp;&nbsp;2) Failure:  
test\_execute(TestGemCommandsEnvironmentCommand) [/Users/sszuecs/src/ruby/ruby-1.9.1-p0/test/rubygems/test\_gem\_commands\_environment\_command.rb:26]:  
Expected /RUBYGEMS PREFIX: / to match "RubyGems Environment:\n - RUBYGEMS VERSION: 1.3.1\n - RUBY VERSION: 1.9.1 (2009-01-30 patchlevel 0) [i386-darwin9.6.0]\n - INSTALLATION DIRECTORY: /private/var/folders/hB/hBWewULTHUKJimmse-1pdE+++TM/-Tmp-/test\_rubygems\_38546/gemhome\n - RUBY EXECUTABLE: /usr/local/bin/ruby191\n - EXECUTABLE DIRECTORY: /private/var/folders/hB/hBWewULTHUKJimmse-1pdE+++TM/-Tmp-/test\_rubygems\_38546/gemhome/bin\n - RUBYGEMS PLATFORMS:\n - ruby\n - x86-darwin-8\n - GEM PATHS:\n - /private/var/folders/hB/hBWewULTHUKJimmse-1pdE+++TM/-Tmp-/test\_rubygems\_38546/gemhome\n - GEM CONFIGURATION:\n - :update\_sources =\> true\n - :verbose =\> true\n - :benchmark =\> false\n - :backtrace =\> false\n - :bulk\_threshold =\> 1000\n - REMOTE SOURCES:\n - [http://gems.example.com](http://gems.example.com)\n".

&nbsp;&nbsp;&nbsp;3) Failure:  
test\_generate\_bin\_script\_install\_dir(TestGemInstaller) [/Users/sszuecs/src/ruby/ruby-1.9.1-p0/test/rubygems/test\_gem\_installer.rb:274]:  
Expected 33261, not 33216.

&nbsp;&nbsp;&nbsp;4) Failure:  
test\_generate\_bin\_bindir(TestGemInstaller) [/Users/sszuecs/src/ruby/ruby-1.9.1-p0/test/rubygems/test\_gem\_installer.rb:206]:  
Expected 33261, not 33216.

&nbsp;&nbsp;&nbsp;5) Failure:  
test\_generate\_bin\_script\_no\_shebang(TestGemInstaller) [/Users/sszuecs/src/ruby/ruby-1.9.1-p0/test/rubygems/test\_gem\_installer.rb:316]:  
Expected 33261, not 33216.

&nbsp;&nbsp;&nbsp;6) Failure:  
test\_generate\_bin\_script\_wrappers(TestGemInstaller) [/Users/sszuecs/src/ruby/ruby-1.9.1-p0/test/rubygems/test\_gem\_installer.rb:341]:  
Expected 33261, not 33216.

&nbsp;&nbsp;&nbsp;7) Failure:  
test\_generate\_bin\_script(TestGemInstaller) [/Users/sszuecs/src/ruby/ruby-1.9.1-p0/test/rubygems/test\_gem\_installer.rb:221]:  
Expected 33261, not 33216.

&nbsp;&nbsp;&nbsp;8) Failure:  
test\_handle\_special\_CROSSREF\_no\_underscore(TestRDocMarkupToHtmlCrossref) [/Users/sszuecs/src/ruby/ruby-1.9.1-p0/test/rdoc/test\_rdoc\_markup\_to\_html\_crossref.rb:87]:  
Expected "\<p\> \<a href=\"../files/Users/sszuecs/src/ruby/ruby-1\_9\_1-p0/test/rdoc/rdoc\_markup\_to\_html\_crossref\_reference\_rb.html\"\>/Users/sszuecs/src/ruby/ruby-1.9.1-p0/test/rdoc/rdoc\_markup\_to\_html\_crossref\_reference.rb\</a\> \</p\> ", not "\<p\> /Users/sszuecs/src/ruby/ruby-1.9.1-p0/test/rdoc/rdoc\_markup\_to\_html\_crossref\_reference.rb \</p\> ".

5779 tests, 2514940 assertions, 8 failures, 0 errors, 0 skips

If you need more information I will provide them.

Regards, Sandor Szücs

> **···**
>
> On 02.02.2009, at 14:42, Matthias Tarasiewicz wrote:
> 
> > Sandor Szücs wrote:
> > 
> > > $ ruby191 test/runner.rb  
> > > ...  
> > > 5779 tests, 2514940 assertions, 8 failures, 0 errors, 0 skips
> > 
> > sandor, can you tell us which system you are on and which tests exactly  
> > failed?
> 
> --

---

<div class="post-metadata">

**Author:** ![Matthias\_Tarasiewicz](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@Matthias\_Tarasiewicz](https://rubytalk.org/u/Matthias_Tarasiewicz)\
**Post date:** [2 February 2009 23:07 UTC](https://rubytalk.org/t/ruby-1-9-1-p0-runner-rb-errors-on-mac-osx-leopard-compile/51481/5 "2009-02-02T23:07:39Z")

</div>

Sandor Szücs wrote:

> > > 5779 tests, 2514940 assertions, 8 failures, 0 errors, 0 skips

i am wondering why you have different errors on your tests that we had  
on osx leopard compiles of 1.9.1-p0

can you also post your results to rubyosx-list@rubyforge.org ?  
and can you tell us if you did any readline patching or if you compiled  
ruby straight with no other precompiles?

thanks, parasew

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).
