meditationatae

Just another WordPress.com site

My “fix” of reaeadline problem in PARI/gp following #yum update

[david@localhost ~]$ /bin/su –
Password:
[root@localhost ~]# cd /usr
[root@localhost usr]# ls
bin etc games include lib lib64 libexec local sbin share src tmp
[root@localhost usr]# cd local
[root@localhost local]# ls
bin etc games include lib lib64 libexec sbin share src
[root@localhost local]# cd lib
[root@localhost lib]# ls
libgmp.a libhistory.so libpari-gmp.so.5 libreadline.so.7
libgmp.la libhistory.so.6 libpari.so libreadline.so.7.0
libgmp.so libhistory.so.6.3 libreadline.a libreadline.so.7.0.old
libgmp.so.10 libhistory.so.7 libreadline.old pari
libgmp.so.10.3.2 libhistory.so.7.0 libreadline.so
libhistory.a libhistory.so.7.0.old libreadline.so.6
libhistory.old libpari-gmp.so.2.9.1 libreadline.so.6.3
[root@localhost lib]# ls -l libreadline.so.6
lrwxrwxrwx. 1 root root 18 Feb 25 02:43 libreadline.so.6 -> libreadline.so.6.3
[root@localhost lib]# rm libreadline.so.6
rm: remove symbolic link `libreadline.so.6′? y
[root@localhost lib]# ls -l /lib64/libreadline.so.6.0
-rwxr-xr-x. 1 root root 272008 Jun 22 2012 /lib64/libreadline.so.6.0
[root@localhost lib]# ldd -d -r /lib64/libreadline.so.6.0
linux-vdso.so.1 => (0x00007fffd437e000)
libtinfo.so.5 => /lib64/libtinfo.so.5 (0x0000003b0fa00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003afce00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003afc600000)
[root@localhost lib]# ln -s /lib64/libreadline.so.6.0 libreadline.so.6
[root@localhost lib]# ls -l
total 13744
-rw-r–r–. 1 root root 1291398 Feb 22 12:51 libgmp.a
-rwxr-xr-x. 1 root root 913 Feb 22 12:51 libgmp.la
lrwxrwxrwx. 1 root root 16 Feb 22 12:51 libgmp.so -> libgmp.so.10.3.2
lrwxrwxrwx. 1 root root 16 Feb 22 12:51 libgmp.so.10 -> libgmp.so.10.3.2
-rwxr-xr-x. 1 root root 523381 Feb 22 12:51 libgmp.so.10.3.2
-rw-r–r–. 1 root root 162874 Feb 23 02:55 libhistory.a
-rw-r–r–. 1 root root 171982 Feb 22 14:11 libhistory.old
lrwxrwxrwx. 1 root root 15 Feb 23 02:55 libhistory.so -> libhistory.so.6
lrwxrwxrwx. 1 root root 17 Feb 23 02:55 libhistory.so.6 -> libhistory.so.6.3
-r-xr-xr-x. 1 root root 99093 Feb 23 02:55 libhistory.so.6.3
lrwxrwxrwx. 1 root root 21 Feb 22 14:11 libhistory.so.7 -> libhistory.so.7.0.old
-r-xr-xr-x. 1 root root 106376 Feb 22 14:11 libhistory.so.7.0
-r-xr-xr-x. 1 root root 106376 Feb 22 12:35 libhistory.so.7.0.old
-rwxr-xr-x. 1 root root 7060519 Feb 23 11:55 libpari-gmp.so.2.9.1
lrwxrwxrwx. 1 root root 20 Feb 23 11:55 libpari-gmp.so.5 -> libpari-gmp.so.2.9.1
lrwxrwxrwx. 1 root root 20 Feb 23 11:55 libpari.so -> libpari-gmp.so.2.9.1
-rw-r–r–. 1 root root 1199592 Feb 23 02:55 libreadline.a
-rw-r–r–. 1 root root 1239926 Feb 22 14:11 libreadline.old
lrwxrwxrwx. 1 root root 16 Feb 23 02:55 libreadline.so -> libreadline.so.6
lrwxrwxrwx. 1 root root 25 Feb 25 05:04 libreadline.so.6 -> /lib64/libreadline.so.6.0
-r-xr-xr-x. 1 root root 680148 Feb 23 02:55 libreadline.so.6.3
lrwxrwxrwx. 1 root root 22 Feb 22 14:11 libreadline.so.7 -> libreadline.so.7.0.old
-r-xr-xr-x. 1 root root 702910 Feb 22 14:11 libreadline.so.7.0
-r-xr-xr-x. 1 root root 702910 Feb 22 12:35 libreadline.so.7.0.old
drwxr-xr-x. 2 root root 4096 Feb 23 11:55 pari
[root@localhost lib]# ldd -d -r libreadline.so.6
linux-vdso.so.1 => (0x00007ffeea7d3000)
libtinfo.so.5 => /lib64/libtinfo.so.5 (0x0000003b0fa00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003afce00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003afc600000)
[root@localhost lib]# exit
logout
[david@localhost ~]$ gp
GP/PARI CALCULATOR Version 2.9.1 (released)
amd64 running linux (x86-64/GMP-6.1.2 kernel) 64-bit version
compiled: Feb 23 2017, gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)
threading engine: single
(readline v6.0 enabled, extended help enabled)

Copyright (C) 2000-2016 The PARI Group

PARI/GP is free software, covered by the GNU General Public License, and comes WITHOUT
ANY WARRANTY WHATSOEVER.

Type ? for help, \q to quit.
Type ?15 for how to get moral (and possibly technical) support.

parisize = 8000000, primelimit = 500000
? isprime(2^127 -1)
%1 = 1
? quit
Goodbye!
[david@localhost ~]$
[david@localhost ~]$ date
Sat Feb 25 05:05:49 EST 2017
[david@localhost ~]$

Advertisements

Written by meditationatae

February 25, 2017 at 10:08 am

Posted in History

%d bloggers like this: