meditationatae

Just another WordPress.com site

This guy has my vote: libreadline cleanup

[root@localhost ~]# cd /usr/local/lib

I had built and installed a non-system readline library as root in /usr/local/lib .

As far as I can tell, the system readline library is in

the file:

/lib64/libreadline.so.6.0

Running

# ldd -d -r /lib64/libreadline.so.6.0

linux-vdso.so.1 =>  (0x00007ffd0139b000)
libtinfo.so.5 => /lib64/libtinfo.so.5 (0x0000003e73200000)
libc.so.6 => /lib64/libc.so.6 (0x0000003752000000)
/lib64/ld-linux-x86-64.so.2 (0x0000003751c00000)

gives no unresolved symbols etc.

vkarthickeyan solution to mis-installed librealines libraries in /usr/local/lib/

is contained in his post:

https://vkarthickeyan.wordpress.com/2012/02/16/mysql-symbol-lookup-error-usrlocalliblibreadline-so-6-undefined-symbol-up/

So within /usr/local/lib/ I created a new directory temp via:

# mkdir temp

then I moved all the files starting with librealine from /usr/local/lib/ into the subdirectory temp/ :

# mv libreadline* temp

Then the directory listings look like this:
[root@localhost lib]# ls -l
total 9320
-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
drwxr-xr-x. 2 root root 4096 Feb 23 11:55 pari
drwxr-xr-x. 2 root root 4096 Apr 29 05:20 temp

and this:

[root@localhost lib]# ls -l temp/
total 4428
-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 18 Apr 19 23:04 libreadline.so.6 -> libreadline.so.6.3
-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

More importantly, the Configure script for the program I want to install completes without a hitch (screen copy follows):

$ ./Configure
Configuring pari-2.9.2 (STABLE)
Checking echo to see how to suppress newlines…
…using -n.
Looking for some tools first …
…gzip is /bin/gzip
…cc is /usr/bin/cc
…gcc is /usr/bin/gcc
…ld is /usr/bin/ld
…perl is /usr/bin/perl
…zcat is /bin/zcat
Choosing C compiler …
GNU compatible compiler: gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
Using mt engine single
Given the previous choices, sizeof(long) is 8 chars.
The internal word representation of a double is not needed (64bit).
==========================================================================
Building for: amd64 running linux (x86-64/GMP kernel) 64-bit version
==========================================================================
C compiler is /usr/bin/gcc -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -fPIC
Executable linker is /usr/bin/gcc -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -Wl,–export-dynamic
Dynamic Lib linker is /usr/bin/gcc -shared $(CFLAGS) $(DLCFLAGS) -Wl,-shared,-soname=$(LIBPARI_SONAME)
Looking in C lib for some symbols…
…Found exp2.
…Found log2.
…Found strftime.
…Found getrusage.
…Found gettimeofday.
…Found sigaction.
…Found TIOCGWINSZ.
…Found getrlimit.
…Found stat.
…Found vsnprintf.
…Found mmap.
…Found waitpid.
…Found setsid.
…Found getenv.
…Found isatty.
…Found alarm.
…Found system.
…I did not find dlopen.
Try again, with -ldl this time…
…Found dlopen.
Checking for optional libraries and headers…
Using GNU MP, version 6.1.2
…Found X11 header files in /usr/include/X11
…X11 libraries: -lX11
Hi-Res Graphics: X11
Using GNU readline, version 6.0
Installation prefix ? [/usr/local]
…for architecture-independent files (share-prefix) ? [/usr/local/share]
Installation directories for:
…executables (gp, gphelp) ? [/usr/local/bin]
…libraries (libpari) ? [/usr/local/lib]
…include files ? [/usr/local/include]
…manual pages ? [/usr/local/share/man/man1]
…other system-dependent data ? [/usr/local/lib/pari]
…other system-independent data ? [/usr/local/share/pari]
Default is dynamic executable and shared library
==========================================================================
Extracting examples/Makefile.linux-x86_64
Extracting Olinux-x86_64/Makefile
Extracting Olinux-x86_64/paricfg.h
Extracting Makefile
Extracting scripts and macros
…in doc
…in misc
==========================================================================
Shall we try to build pari 2.9.2 (released) now (y/n)? [n]
Ok. Type “make install” when you are ready
Bye !

=========================

Added April 29 at 6:25 am

The building and installation of Pari 2.9.2 went successfully:

[david@localhost ~]$ clear

[david@localhost ~]$ gp
GP/PARI CALCULATOR Version 2.9.2 (released)
amd64 running linux (x86-64/GMP-6.1.2 kernel) 64-bit version
compiled: Apr 29 2017, gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
threading engine: single
(readline v6.0 enabled, extended help enabled)

Copyright (C) 2000-2017 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
?

=================

 

 

 

Advertisements

Written by meditationatae

April 29, 2017 at 9:53 am

Posted in History

%d bloggers like this: