I am trying to do an installation from source of PostgreSQL into Suse 9.2 Professional. This is the first thing I've done with this distro. Configure fails, reporting that it cannot find the readline library, although it seems to be present in /lib
Running ./configure as root, I get:
checking for shmget in -lcygipc... no checking for readline... no configure: error: readline library not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. ....
However, a readline library appears to be present in /lib:
# find / -name libreadline.so.5 -print /lib/libreadline.so.5
and is reported by ldconfig:
# ldconfig -p | grep readline libreadline.so.5 (libc6) => /lib/libreadline.so.5 libguilereadline-v-12.so.12 (libc6) => /usr/lib/libguilereadline-v-12.so.12 libguilereadline-v-12.so (libc6) => /usr/lib/libguilereadline-v-12.so
As a check, I explicitly specified to configure the libraries to search:
# ./configure --with-libraries=/lib:/usr/lib
but it fails in just the same way.
I then told configure to ignore readline, and it continue but failed to find zlib in a similar way, although this too seems to be present in /usr/lib
I must be doing something stupid - but what?
[Note: I have to install from source because after this is working, I need to install an optional contrib to extend PostgeSQL to deal with spatial data, and this will only install into the source tree].
Thanks for your advice!
Nigel
_______________________________________________________________________ Professor Nigel Gilbert, Editor, Journal of Artificial Societies and Social Simulation, http://www.soc.surrey.ac.uk/JASSS/ Centre for Research on Social Simulation (CRESS) Department of Sociology, University of Surrey, Guildford, UK. Tel:+44 1483 689173 N.Gilbert@soc.surrey.ac.uk http://cress.soc.surrey.ac.uk/
Nigel Gilbert wrote:
I am trying to do an installation from source of PostgreSQL into Suse 9.2 Professional. This is the first thing I've done with this distro. Configure fails, reporting that it cannot find the readline library, although it seems to be present in /lib
Running ./configure as root, I get:
checking for shmget in -lcygipc... no checking for readline... no configure: error: readline library not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. ....
The first step is to look at the config.log file for details. But I bet the reason is that you don't have the development headers installed. Install the readline-devel package and try again. Same for zlib (zlib-devel).
[]s Davi de Castro Reis
Thanks for your hint - and the others who replied similarly. Yes, I was missing the devel packages and now I have installed them, all is well.
Nigel Gilbert
On 3 Dec 2004, at 00:46, Davi de Castro Reis wrote:
Nigel Gilbert wrote:
I am trying to do an installation from source of PostgreSQL into Suse 9.2 Professional. This is the first thing I've done with this distro. Configure fails, reporting that it cannot find the readline library, although it seems to be present in /lib Running ./configure as root, I get: checking for shmget in -lcygipc... no checking for readline... no configure: error: readline library not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. ....
The first step is to look at the config.log file for details. But I bet the reason is that you don't have the development headers installed. Install the readline-devel package and try again. Same for zlib (zlib-devel).
[]s Davi de Castro Reis
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists.suse.com/archive/suse-programming-e
programming@lists.opensuse.org