Thread: Configure Errors--Missing Libraries?
configure:4357: gcc -o conftest conftest.c -lbsd >&5
ld: fatal: library -lbsd: not found
configure:4423: gcc -o conftest conftest.c -lutil >&5
ld: fatal: library -lutil: not found
configure:4718: gcc -o conftest conftest.c -lipc -lsocket -lnsl -ldl -lm >&5
ld: fatal: library -lipc: not found
With a final fatal error when configure attempted to run conftest;
How do we determine whether the error lies with the configure script or gcc--i.e., whether configure is failing to find the necessary libraries (and if so, how do we set the necessary paths) or if our gcc install is deficient/flawed?
--
David Rickard
Software Engineer
The GTS Companies
A TechBooks Company
----------------------------------------------------------------------------------
The GTS Companies:
GTS Publishing Services, GTS Graphics, GTS Innova:
Your Single-Source Solution!
Los Angeles CA * York, PA * Boston MA * New Delhi, India
----------------------------------------------------------------------------------
David.Rickard@GTSCompanies.com
Visit us on the World Wide Web
http://www.gtscompanies.com
5650 Jillson St., Los Angeles, CA 90040
(323) 888-8889 x331
(323) 888-1849 [fax]
David Rickard <David.Rickard@GTScompanies.com> writes: > Attempting to install PostGreSQL 7.3.X on a sparc-sun-solaris2.9 (SunOS > 5.9) machine; during configure, numerous errors like these were logged: > configure:4357: gcc -o conftest conftest.c -lbsd >&5 > ld: fatal: library -lbsd: not found This is just how configure looks to see if you have particular libraries. Nothing surprising here. > With a final fatal error when configure attempted to run conftest; You omitted to show us the failure that actually means something. regards, tom lane
configure:11652: ./conftest
ld.so.1: ./conftest: fatal: libreadline.so.4: open failed: No such file or directory
./configure: line 1: 11119 Killed ./conftest$ac_exeext
configure:11655: $? = 137
configure: program exited with status 137
configure: failed program was:
#line 11641 "configure"
#include "confdefs.h"
nt main() { return 0; }
onfigure:11664: result: failed
onfigure:11669: error:
** Could not execute a simple test program. This may be a problem
** related to locating shared libraries. Check the file 'config.log'
** for the exact reason.
At 10:05 PM 9/3/2003 -0400, Tom Lane wrote:
David Rickard <David.Rickard@GTScompanies.com> writes:
> Attempting to install PostGreSQL 7.3.X on a sparc-sun-solaris2.9 (SunOS
> 5.9) machine; during configure, numerous errors like these were logged:
> configure:4357: gcc -o conftest conftest.c -lbsd >&5
> ld: fatal: library -lbsd: not found
This is just how configure looks to see if you have particular
libraries. Nothing surprising here.
> With a final fatal error when configure attempted to run conftest;
You omitted to show us the failure that actually means something.
regards, tom lane
--
David Rickard
Software Engineer
The GTS Companies
A TechBooks Company
----------------------------------------------------------------------------------
The GTS Companies:
GTS Publishing Services, GTS Graphics, GTS Innova:
Your Single-Source Solution!
Los Angeles CA * York, PA * Boston MA * New Delhi, India
----------------------------------------------------------------------------------
David.Rickard@GTSCompanies.com
Visit us on the World Wide Web
http://www.gtscompanies.com
5650 Jillson St., Los Angeles, CA 90040
(323) 888-8889 x331
(323) 888-1849 [fax]
David Rickard <David.Rickard@GTScompanies.com> writes: > configure:11652: ./conftest > ld.so.1: ./conftest: fatal: libreadline.so.4: open failed: No such > file or directory My guess is that libreadline is in a directory that isn't in your dynamic linker search path. See our doc/FAQ_Solaris file. regards, tom lane