Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Install Math::Fraction

Status
Not open for further replies.

pavNell

Technical User
Sep 27, 2002
178
0
0
US
Hello Perl gurus. I'm new to perl and so far I'm having some great success and fun with it. Just one quick question...

I need to install the module Math::Fraction

It's not in my distros repository so being a newb I just can't seem to find a good source for help. I've had lots of luck with tek-tips website. Sorry if this question has been asked many times before. Thanks for any help on this.

btw, I'm using PCLinuxOS 2007 test 3.
 
I believe i'm going in the right direction. I ran the command as root but I don't think it installed. Here's the output....


CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Thu, 08 Mar 2007 23:09:20 GMT
Running install for module Math::Fraction
Running make for K/KE/KEVINA/Fraction-v.53b.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /root/.cpan/sources/authors/id/K/KE/KEVINA/Fraction-v.53b.tar.gz ok
Fraction-v.53b/Changes
Fraction-v.53b/Fraction.pm
Fraction-v.53b/FractionDemo.pm
Fraction-v.53b/FractionTest.pl
Fraction-v.53b/MANIFEST
Fraction-v.53b/Makefile.PL
Fraction-v.53b/QuickInst.pl
Fraction-v.53b/README
Fraction-v.53b/ToDo
Fraction-v.53b/test.pl
Removing previously used /root/.cpan/build/Fraction-v.53b

CPAN.pm: Going to build K/KE/KEVINA/Fraction-v.53b.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Math::Fraction
cp Fraction.pm blib/lib/Math/Fraction.pm
cp FractionDemo.pm blib/lib/Math/FractionDemo.pm
Manifying blib/man3/Math::Fraction.3pm
Manifying blib/man3/Math::FractionDemo.3pm
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl5.8.8 "-Iblib/lib" "-Iblib/arch" test.pl
FractionTest....Scalar value @tags[$RED_STATE] better written as $tags[$RED_STATE] at blib/lib/Math/Fraction.pm line 127.
Ambiguous call resolved as CORE::abs(), qualify as such or use & at blib/lib/Math/Fraction.pm line 645.
Ambiguous call resolved as CORE::abs(), qualify as such or use & at blib/lib/Math/Fraction.pm line 645.
Ambiguous call resolved as CORE::abs(), qualify as such or use & at blib/lib/Math/Fraction.pm line 646.
Ambiguous call resolved as CORE::abs(), qualify as such or use & at blib/lib/Math/Fraction.pm line 646.
Ambiguous call resolved as CORE::abs(), qualify as such or use & at blib/lib/Math/Fraction.pm line 701.
Ambiguous call resolved as CORE::abs(), qualify as such or use & at blib/lib/Math/Fraction.pm line 701.
Test: $f1 = frac("3267893629762/32678632179820")
"1633946814881/16339316089910" ne
"3267893629762/32678632179820"
Test: $f2 = frac("5326875886785/76893467996910")
"355125059119/5126231199794" ne
"5326875886785/76893467996910"
Test: $f1+$f2
"3544622433410082528180951/20939777980848187019369635" ne
"21267734600460495169085706/125638667885089122116217810"
Test: $f1*$f2
"580255459231916873949839/83759111923392748077478540" ne
"1740766377695750621849517/251277335770178244232435620"
Test: $f1 = frac("3267893629762/32678632179820", BIG)
"1633946814881/16339316089910" ne
"3267893629762/32678632179820"
Test: $f1->num
"" ne
".10000093063197482237806917498797382196606"
Test: $f1->num
"" ne
".1000009306319748"
Test: $f1->num
"" ne
".123123123456456456456456456456123456789123456789123456789123456789"
Test: "$f1 ".$f2->num
"" ne
"1 2/5 .1000009306319748223780691749879738219660647769485035912494771"
Test: "$f1 ".$f2->num
"" ne
"7/5 .10000093063197482237806917498797382196606"
Test: "$f1 ".$f2->num
"" ne
"7/5 .10000093063197482237806917"
Test: "$f1 ".$f2->num
"" ne
"1 2/5 .1000009306319748"
Test: "$f1 ".$f2->num # Notice how it goes back to the previous settings.
"" ne
"7/5 .10000093063197482237806917"
FractionTest....FAILED tests 27-28, 30, 32, 34, 38, 40, 43, 47, 49, 51, 54, 57
Failed 13/74 tests, 82.43% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
FractionTest.pl 74 13 17.57% 27-28 30 32 34 38 40 43 47 49 51
54 57
Failed 1/1 test scripts, 0.00% okay. 13/74 subtests failed, 82.43% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force


Ok. what was it that I missed? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top