Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » sci.math.* » sci.math

Topic: PARI/gp wins my Riemann zeta speed contest, so far
Replies: 9   Last Post: Feb 15, 2013 10:43 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
David Bernier

Posts: 3,330
Registered: 12/13/04
Re: PARI/gp wins my Riemann zeta speed contest, so far
Posted: Feb 3, 2013 3:00 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 01/21/2013 02:30 PM, James Waldby wrote:
> On Mon, 21 Jan 2013 00:56:20 -0500, David Bernier wrote:
>> On 01/21/2013 12:52 AM, David Bernier wrote:

[...]

>>> CentOS 6.3 , 64-bit version.
>>> I installed from source.
>>> intro. message:
>>> $ gp
>>> GP/PARI CALCULATOR Version 2.5.3 (released)
>>> amd64 running linux (x86-64/GMP-5.0.5 kernel) 64-bit version
>>> compiled: Dec 27 2012, gcc-4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
>>> (readline not compiled in, extended help enabled)
>>>
>>> Up-Key doesn't work.

>
>> Many web recommendations include doing this as root:
>> # yum install readline-devel


I did
yum update readline-devel (Ok).
>
> Yes, the reason I mentioned the readline library filenames was
> so you could see if you have readline installed. Eg, via
> locate libreadline.so or via find /lib -name 'libreadline*'
> which on my system both show /lib/x86_64-linux-gnu/libreadline.so.6
> and /lib/x86_64-linux-gnu/libreadline.so.6.2 .



On CentOS x86_64, libreadline is installed here:

/lib64/ viz. :

$ ls -l /lib64/libreadline.so.6.0

-rwxr-xr-x. 1 root root 272008 Jun 22 2012 /lib64/libreadline.so.6.0

So, it's in an "unusual" directory, /lib64 ...

While in /usr/local/lib , I did this:


ln -s /lib64/libreadline.so.6.0 libreadline.so.6
to create a link in the /usr/local/lib directory to
the file /lib64/libreadline.so.6.0 .

Then in pari-2.5.3 directory,

make clean (Ok)
make gp (Ok)
make install (Ok)

Then $ gp [enter]
shows:
GP/PARI CALCULATOR Version 2.5.3 (released)
amd64 running linux (x86-64/GMP-5.0.5 kernel) 64-bit version
compiled: Feb 3 2013, gcc-4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
(readline v6.0 enabled, extended help enabled)



> Also, after installing readline, see if yum install pari-devel
> or yum update pari-devel will work. But if you are compiling
> pari-gp from source, you need to have readline installed before
> you do the ./configure step. Since your gp shows "readline not
> compiled in", readline might have not been installed when you
> said ./configure. Perhaps look at the dates on your gp executable,
> the pari-gp make file, and your libreadline.so files, via ls -l.
> Notes, the dates could look ok, but if no ldconfig occurred the
> library cache wouldn't have been updated. I'd expect make files
> for library routines to run ldconfig, however, so that's unlikely.
>



David Bernier


--
dracut:/# lvm vgcfgrestore
File descriptor 9 (/.console_lock) leaked on lvm invocation. Parent PID
993: sh
Please specify a *single* volume group to restore.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.