Обсуждение: Configure exit 1
Greetings, This is on a Solaris 10 box. Did I shoot myself in the foot by trying to do a completely clean install? I'm installing version PostgreSQL 8.3.6 as a test. I want to take it live in two weeks. I installed it configured and ran gmake once and it seemed to work fine, but I didn't have the data directory name that I thought I should have had, so I ran gmake distclean deleted the files that were created in postgres directory and ran configure again. This time I got an error on it. The error said that ... checking whether getpwuid_r takes a fifth argument... yes checking whether strerror_r returns int... yes checking test program... failed configure: 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. When I looked at the config.log file, the end looks like this ... #define HAVE_WCTYPE_H 1 #define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org" #define PACKAGE_NAME "PostgreSQL" #define PACKAGE_STRING "PostgreSQL 8.3.6" #define PACKAGE_TARNAME "postgresql" #define PACKAGE_VERSION "8.3.6" #define PG_KRB_SRVNAM "postgres" #define PG_VERSION "8.3.6" #define PG_VERSION_NUM 80306 #define PG_VERSION_STR "PostgreSQL 8.3.6 on sparc-sun-solaris2.10, compiled by GCC gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)" #define STRERROR_R_INT #define USE_PAM 1 #define USE_SSL 1 #define WORDS_BIGENDIAN 1 configure: exit 1 What does an exit code 1 from configure mean? Thanks, Carol
Hello, again, I solved my own problem. The LD_LIBRARY_PATH was not set. Carol On Mar 5, 2009, at 3:27 PM, Carol Walter wrote: > Greetings, > > This is on a Solaris 10 box. Did I shoot myself in the foot by > trying to do a completely clean install? > > I'm installing version PostgreSQL 8.3.6 as a test. I want to take > it live in two weeks. I installed it configured and ran gmake once > and it seemed to work fine, but I didn't have the data directory > name that I thought I should have had, so I ran gmake distclean > deleted the files that were created in postgres directory and ran > configure again. This time I got an error on it. The error said > that ... > > checking whether getpwuid_r takes a fifth argument... yes > checking whether strerror_r returns int... yes > checking test program... failed > configure: 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. > > When I looked at the config.log file, the end looks like this ... > > #define HAVE_WCTYPE_H 1 > #define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org" > #define PACKAGE_NAME "PostgreSQL" > #define PACKAGE_STRING "PostgreSQL 8.3.6" > #define PACKAGE_TARNAME "postgresql" > #define PACKAGE_VERSION "8.3.6" > #define PG_KRB_SRVNAM "postgres" > #define PG_VERSION "8.3.6" > #define PG_VERSION_NUM 80306 > #define PG_VERSION_STR "PostgreSQL 8.3.6 on sparc-sun-solaris2.10, > compiled by GCC gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)" > #define STRERROR_R_INT > #define USE_PAM 1 > #define USE_SSL 1 > #define WORDS_BIGENDIAN 1 > > configure: exit 1 > > What does an exit code 1 from configure mean? > > Thanks, > Carol > > > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin
Carol Walter <walterc@indiana.edu> writes: > I'm installing version PostgreSQL 8.3.6 as a test. I want to take it > live in two weeks. I installed it configured and ran gmake once and > it seemed to work fine, but I didn't have the data directory name that > I thought I should have had, so I ran gmake distclean deleted the > files that were created in postgres directory and ran configure > again. This time I got an error on it. The error said that ... > checking whether getpwuid_r takes a fifth argument... yes > checking whether strerror_r returns int... yes > checking test program... failed > configure: 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. Did you use the exact same configure arguments both times? There's no obvious reason why this test would work once and fail the second time. > When I looked at the config.log file, the end looks like this ... You need to look at the output about the specific test that failed, which is usually several hundred lines above the end of config.log. (The rest of it is a dump of configure's internal variables, which is generally not too interesting.) regards, tom lane
Carol Walter wrote: > When I looked at the config.log file, the end looks like this ... > > #define HAVE_WCTYPE_H 1 > #define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org" > #define PACKAGE_NAME "PostgreSQL" > #define PACKAGE_STRING "PostgreSQL 8.3.6" > #define PACKAGE_TARNAME "postgresql" > #define PACKAGE_VERSION "8.3.6" > #define PG_KRB_SRVNAM "postgres" > #define PG_VERSION "8.3.6" > #define PG_VERSION_NUM 80306 > #define PG_VERSION_STR "PostgreSQL 8.3.6 on sparc-sun-solaris2.10, > compiled by GCC gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)" > #define STRERROR_R_INT > #define USE_PAM 1 > #define USE_SSL 1 > #define WORDS_BIGENDIAN 1 > > configure: exit 1 > > What does an exit code 1 from configure mean? config.log ends with a long list of definitions and variables that configure detected. The output you actually want is just above the long #define list, and the sections that say "output variables" and "cache variables". -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.