From: vanjac12@... (Van Jacques) Date: 2003-12-14T20:57:00+09:00 Subject: Re: RubyUnit not installed (Was: installing extmath on MAC OS X) ' SCHUGT" wrote in message news:<20031213173459.GC978@jupp%gmx.de>... > > * Van Jacques; 2003-12-13, 15:37 UTC: > [Ruby 1.6.7 on Mac OS X fails to run testcase] > > Suggestions? > > Install RubyUnit. > > Note to myself: Add information that for running testcases either Ruby > 1.8 or installation of RubyUnit is required. > > Josef 'Jupp' SCHUGT Please bear with me, as my UNIX is extremely basic, and this is the first time I have installed anything. I would like to upgrade to 1.8 when I am competent enough. A couple of questions. -------- Here is my output from running test.rb from the extmath-2.3 package. --------------- [jacques-computer:~/ruby/extmath-2.3] sylvanjacques% ls -l total 184 -rwxr-xr-x 1 sylvanja staff 36 Aug 25 23:25 ChangeLog -rwxr-xr-x 1 sylvanja staff 18092 Aug 26 12:11 GPL.txt -rwxr-xr-x 1 sylvanja staff 2506 Aug 20 15:24 INSTALL -rw-r--r-- 1 root staff 40 Dec 12 22:47 InstalledFiles -rwxr-xr-x 1 sylvanja staff 446 Aug 29 22:12 README -rw-r--r-- 1 sylvanja staff 322 Dec 12 22:42 config.save drwxr-xr-x 6 sylvanja staff 204 Aug 26 13:50 doc -rwxr-xr-x 1 sylvanja staff 23667 Aug 28 19:12 install.rb drwxr-xr-x 3 sylvanja staff 102 Aug 29 22:12 lib -rwxr-xr-x 1 sylvanja staff 28173 Dec 12 23:06 test.rb [jacques-computer:~/ruby/extmath-2.3] sylvanjacques% ruby test.rb Testing_class#test_constants . Testing_class#test_conversions . Testing_class#test_explog_consistency . Testing_class#test_explog_functions . Testing_class#test_hyperbolic_consistency E. Testing_class#test_hyperbolic_functions E. Testing_class#test_misc_consistency E. Testing_class#test_misc_functions E. Testing_class#test_pwr_consistency . Testing_class#test_pwr_functions . Testing_class#test_rounding_functions . Testing_class#test_sign_consistency . Testing_class#test_sign_functions . Testing_class#test_solvers . Testing_class#test_tensors . Testing_class#test_trigonometric_consistency E. Testing_class#test_trigonometric_functions E. Time: 0.141849 FAILURES!!! Test Results: Run: 17/17(213 asserts) Failures: 0 Errors: 6 Errors: 6 ../lib/extmath.rb:275:in `csch'(Testing_class): undefined method `sinh' for Math:Module (NameError) from ./test.rb:513:in `test_hyperbolic_consistency' from ./test.rb:622 ../test.rb:100:in `test_hyperbolic_functions'(Testing_class): undefined method `acosh' for Math:Module (NameError) from ./test.rb:622 ../lib/extmath.rb:327:in `erf'(Testing_class): undefined method `erf' for Math:Module (NameError) from ./test.rb:613:in `test_misc_consistency' from ./test.rb:622 ../lib/extmath.rb:327:in `erf'(Testing_class): undefined method `erf' for Math:Module (NameError) from ./test.rb:386:in `test_misc_functions' from ./test.rb:622 ../lib/extmath.rb:113:in `acos'(Testing_class): undefined method `acos' for Math:Module (NameError) from ./test.rb:453:in `test_trigonometric_consistency' from ./test.rb:622 ../test.rb:34:in `test_trigonometric_functions'(Testing_class): undefined method `asin' for Math:Module (NameError) from ./test.rb:622 [jacques-computer:~/ruby/extmath-2.3] sylvanjacques% --------- When I look at the InstalledFiles in extmath-2.3, I get [jacques-computer:~/ruby/extmath-2.3] sylvanjacques% cat InstalledFiles /usr/lib/ruby/site_ruby/1.6//extmath.rb What does the double // mean in the path name? ------ Here is the config.save file; [jacques-computer:~/ruby/extmath-2.3] sylvanjacques% more config.save bin-dir=$prefix/bin site-ruby=$prefix/lib/ruby/site_ruby/1.6 prefix=/usr ruby-path=/usr/bin/ruby make-prog=make rb-dir=$site-ruby without-ext=no ruby-prog=/usr/bin/ruby site-ruby-common=$prefix/lib/ruby/site_ruby std-ruby=$prefix/lib/ruby/1.6 data-dir=$prefix/share so-dir=$prefix/lib/ruby/site_ruby/1.6/powerpc-darwin6.0 ----- Here are the files on my MAC; [jacques-computer:ruby/site_ruby/1.6] sylvanjacques% pwd /usr/lib/ruby/site_ruby/1.6 [jacques-computer:ruby/site_ruby/1.6] sylvanjacques% ls -l total 56 -rw-r--r-- 1 root wheel 21008 Dec 12 22:47 extmath.rb drwxr-xr-x 2 root wheel 68 Jan 14 2003 powerpc-darwin6.0 -rw-r--r-- 1 root wheel 785 Dec 14 03:00 rubyunit.rb drwxr-xr-x 16 root wheel 544 Dec 14 03:00 runit ------- the so-dir is /usr/lib/ruby/site_ruby/1.6/powerpc-darwin6.0 It's an empty directory. The INSTALL doc from extmath-2.3 says that so-dir is the directory for ruby extentions. Does this mean that extmath.rb and rubyunit.rb (and runit) should be in the powerpc-darwin6.0 dir? Or are they in the right place. If so, why the error messages when running test.rb from extmath-2.3? Van