From: Brian Candler Date: 2008-09-23T17:36:04+09:00 Subject: [ruby-core:18805] 1.9.0-4 "make test" fails under Ubuntu Dapper Building ruby-1.9.0-4 on Ubuntu Dapper (6.06), I get the following error: $ ./configure && make && make test << snip >> test_method.rb .................................................................................................................................................................................................................. test_objectspace.rb ... test_proc.rb ................................ test_struct.rb . test_syntax.rb ............................................................................................................................................... test_thread.rb ............................................ PASS 914 tests ruby "./bootstraptest/runner.rb" --ruby="ruby" ./KNOWNBUGS.rb Mon Sep 22 16:03:33 BST 2008 Driver is ruby 1.8.4 (2005-12-24) [i486-linux] Target is ruby 1.9.0 (2008-08-26 revision 18849) [i686-linux] KNOWNBUGS.rb PASS 0 tests /usr/lib/ruby/1.8/fileutils.rb:680:in `remove_entry_secure': undefined method `fu_world_writable?' for FileUtils:Module (NoMethodError) from ./bootstraptest/runner.rb:36:in `mktmpdir' from ./bootstraptest/runner.rb:331:in `in_temporary_working_directory' from ./bootstraptest/runner.rb:105:in `main' from ./bootstraptest/runner.rb:354 make: *** [test-knownbug] Error 1 It looks like 'make test' is using the ruby already installed in the system, rather than the ruby-1.9.0 that it has just built. Notice that the path of the offending file is /usr/lib/ruby... and also that this is a known problem with ruby-1.8.4: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/171532 Ubuntu Dapper has ruby 1.8.4 in its base system. ii ruby1.8 1.8.4-1ubuntu1.5 Interpreter of object-oriented scripting lan $ ruby -v ruby 1.8.4 (2005-12-24) [i486-linux] ISTM that 'make test' ought to be using the ruby it has just built, not any other version installed on the system. The build instructions in README say that if you want to run 'make test', you can do this *before* 'make install'. Regards, Brian.