Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Problems? Is your data what you think it is?
 
PerlMonks  

gp/pari lib and Math::Pari error

by 2007fld (Acolyte)
on Oct 03, 2010 at 04:09 UTC ( #863135=perlquestion: print w/ replies, xml ) Need Help??
2007fld has asked for the wisdom of the Perl Monks concerning the following question:

I just compiled and installed gp/pari on a suse 11 box. Then I tried to install Math::Pari manually with paridir, got an error:

# which gp /usr/local/bin/gp # which pari which: no pari in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/loca +l/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64 +/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin) # perl Makefile.PL paridir=/usr/local/bin/gp Setting up Math::Pari with Perl 5.010000 on linux version 2.6.31; cc=cc, gccversion=4.4.1 [gcc-4_4-branch revision 150839], cccdlflag +s='-fPIC', ccflags='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGG +ING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BIT +S=64', optimize='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack- +protector -funwind-tables -fasynchronous-unwind-tables -g -Wall -pipe +', ld=cc, ldflags=' -L/usr/local/lib64'. Could not extract version from '/usr/local/bin/gp/config/version'; Do you remember that paridir should be location of PARI/GP source t +ree, not the location of compiled+installed files? Trying extract from the directory name... Directory `/usr/local/bin/gp' has unknown syntax... Found GP/PARI build directory in /usr/local/bin/gp (integer-formatted version /usr/local/bin/gp). Cannot find tests in /usr/local/bin/gp/src/test/in: Not a directory at + utils/Math/PariBuild.pm line 618
Maybe I did not install gp/pari correctly?

Comment on gp/pari lib and Math::Pari error
Download Code
Re: gp/pari lib and Math::Pari error
by Khen1950fx (Canon) on Oct 03, 2010 at 04:40 UTC
    "gp" will be in /usr/local/bin/gp. However, pari is a lib. Do whereis pari and you should get /usr/local/lib/pari. gp is a bin file; pari is a lib file. Does that help?
Re: gp/pari lib and Math::Pari error
by zwon (Monsignor) on Oct 03, 2010 at 04:40 UTC
    Do you remember that paridir should be location of PARI/GP source tree, not the location of compiled+installed files?

    I'm sorry but what do you think this message mean?

      The source tree works. Thanks!
        Where is the source tree?
        Can you please let us know the location of source tree

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://863135]
Approved by sflitman
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2014-04-19 00:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (473 votes), past polls