Thread: configure error... please help 9.0.4
Dear all -
While setting up streaming I ran into issue with libpq. To resolve it I need to recompile the source. I am issuing the following command . I tried this before with 9.0.2 it worked. Now when issued the same command I was getting the errors.
./configure --prefix=/opt/postgres/9.0.4 --with-readline --with-perl --with-libxml --with-openssl --with-ossp-uuid -with-includes=/opt/postgres/software/include/readline/ LDFLAGS=-L/opt/postgres/software/lib:/opt/postgres/gis/lib
./configure --prefix=/opt/postgres/9.0.4 --with-readline --with-perl --with-libxml --with-openssl --with-ossp-uuid -with-includes=/opt/postgres/software/include/readline/ LDFLAGS=-L/opt/postgres/software/lib:/opt/postgres/gis/lib
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking which template to use... solaris
checking whether to build with 64-bit integer date/time support... yes
checking whether NLS is wanted... no
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
checking for WAL segment size... 16MB
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking if gcc supports -Wdeclaration-after-statement... yes
checking if gcc supports -Wendif-labels... yes
checking if gcc supports -fno-strict-aliasing... yes
checking if gcc supports -fwrapv... yes
checking whether the C compiler still works... yes
checking how to run the C preprocessor... gcc -E
checking allow thread-safe client libraries... yes
checking whether to build with Tcl... no
checking whether to build Perl modules... yes
checking whether to build Python modules... no
checking whether to build with GSSAPI support... no
checking whether to build with Kerberos 5 support... no
checking whether to build with PAM support... no
checking whether to build with LDAP support... no
checking whether to build with Bonjour support... no
checking whether to build with OpenSSL support... yes
checking for xml2-config... xml2-config
checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
checking for egrep... /usr/sfw/bin/ggrep -E
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for ranlib... ranlib
checking for strip... strip
checking whether it is possible to strip libraries... no
checking for ar... ar
checking for tar... /bin/tar
checking whether ln -s works... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for bison... /usr/sfw/bin/bison
configure: using bison (GNU Bison) 1.875
checking for flex... /opt/postgres/software/flex/bin/flex
configure: using flex 2.5.35
checking for perl... /opt/postgres/perl/bin/perl
configure: using perl 5.12.3
checking for Perl archlibexp... /opt/postgres/perl/lib/perl5/5.12.3/sun4-solaris
checking for Perl privlibexp... /opt/postgres/perl/lib/perl5/5.12.3
checking for Perl useshrplib... true
checking for flags to link embedded Perl... -L/usr/local/lib -L/opt/postgres/perl/lib/perl5/5.12.3/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm -lc
checking for main in -lm... yes
checking for library containing setproctitle... no
checking for library containing dlopen... none required
checking for library containing socket... -lsocket
checking for library containing shl_load... no
checking for library containing getopt_long... none required
checking for library containing crypt... none required
checking for library containing fdatasync... -lrt
checking for library containing gethostbyname_r... -lnsl
checking for library containing shmget... none required
checking for -lreadline... yes (-lreadline -ltermcap)
checking for inflate in -lz... yes
checking for CRYPTO_new_ex_data in -lcrypto... yes
checking for SSL_library_init in -lssl... yes
checking for xmlSaveToBuffer in -lxml2... yes
checking for uuid_export in -lossp-uuid... no
checking for uuid_export in -luuid... no
configure: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID
thanks for the help
Regards
On Mon, Jun 13, 2011 at 3:15 PM, akp geek <akpgeek@gmail.com> wrote: > Dear all - > While setting up streaming I ran into issue with libpq. To > resolve it I need to recompile the source. I am issuing the following > command . I tried this before with 9.0.2 it worked. Now when issued the same > command I was getting the errors. > > ./configure --prefix=/opt/postgres/9.0.4 --with-readline --with-perl > --with-libxml --with-openssl --with-ossp-uuid > -with-includes=/opt/postgres/software/include/readline/ > LDFLAGS=-L/opt/postgres/software/lib:/opt/postgres/gis/lib > ./configure --prefix=/opt/postgres/9.0.4 --with-readline --with-perl > --with-libxml --with-openssl --with-ossp-uuid > -with-includes=/opt/postgres/software/include/readline/ > LDFLAGS=-L/opt/postgres/software/lib:/opt/postgres/gis/lib > checking build system type... sparc-sun-solaris2.10 > checking host system type... sparc-sun-solaris2.10 > checking which template to use... solaris > checking whether to build with 64-bit integer date/time support... yes > checking whether NLS is wanted... no > checking for default port number... 5432 > checking for block size... 8kB > checking for segment size... 1GB > checking for WAL block size... 8kB > checking for WAL segment size... 16MB > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking if gcc supports -Wdeclaration-after-statement... yes > checking if gcc supports -Wendif-labels... yes > checking if gcc supports -fno-strict-aliasing... yes > checking if gcc supports -fwrapv... yes > checking whether the C compiler still works... yes > checking how to run the C preprocessor... gcc -E > checking allow thread-safe client libraries... yes > checking whether to build with Tcl... no > checking whether to build Perl modules... yes > checking whether to build Python modules... no > checking whether to build with GSSAPI support... no > checking whether to build with Kerberos 5 support... no > checking whether to build with PAM support... no > checking whether to build with LDAP support... no > checking whether to build with Bonjour support... no > checking whether to build with OpenSSL support... yes > checking for xml2-config... xml2-config > checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep > checking for egrep... /usr/sfw/bin/ggrep -E > checking for ld used by GCC... /usr/ccs/bin/ld > checking if the linker (/usr/ccs/bin/ld) is GNU ld... no > checking for ranlib... ranlib > checking for strip... strip > checking whether it is possible to strip libraries... no > checking for ar... ar > checking for tar... /bin/tar > checking whether ln -s works... yes > checking for gawk... no > checking for mawk... no > checking for nawk... nawk > checking for a thread-safe mkdir -p... config/install-sh -c -d > checking for bison... /usr/sfw/bin/bison > configure: using bison (GNU Bison) 1.875 > checking for flex... /opt/postgres/software/flex/bin/flex > configure: using flex 2.5.35 > checking for perl... /opt/postgres/perl/bin/perl > configure: using perl 5.12.3 > checking for Perl archlibexp... > /opt/postgres/perl/lib/perl5/5.12.3/sun4-solaris > checking for Perl privlibexp... /opt/postgres/perl/lib/perl5/5.12.3 > checking for Perl useshrplib... true > checking for flags to link embedded Perl... -L/usr/local/lib > -L/opt/postgres/perl/lib/perl5/5.12.3/sun4-solaris/CORE -lperl -lsocket > -lnsl -ldl -lm -lc > checking for main in -lm... yes > checking for library containing setproctitle... no > checking for library containing dlopen... none required > checking for library containing socket... -lsocket > checking for library containing shl_load... no > checking for library containing getopt_long... none required > checking for library containing crypt... none required > checking for library containing fdatasync... -lrt > checking for library containing gethostbyname_r... -lnsl > checking for library containing shmget... none required > checking for -lreadline... yes (-lreadline -ltermcap) > checking for inflate in -lz... yes > checking for CRYPTO_new_ex_data in -lcrypto... yes > checking for SSL_library_init in -lssl... yes > checking for xmlSaveToBuffer in -lxml2... yes > checking for uuid_export in -lossp-uuid... no > checking for uuid_export in -luuid... no > configure: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID You likely need some -dev packages. Since you failed to mention what OS you're running I'll assume it's ubuntu because that's what I'm running. Here's my apt-get install entries I use on my machines: sudo apt-get install libreadline-dev zlib1g-dev libxml2-dev libxslt-dev libossp-uuid-dev bison flex python2.6-dev libgss-dev libssl-dev libkrb5-dev All of those might or might not be necessary for you.
Sorry all -
I am doing the work on Solaris.
Regards
On Mon, Jun 13, 2011 at 5:38 PM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
You likely need some -dev packages. Since you failed to mention whatOn Mon, Jun 13, 2011 at 3:15 PM, akp geek <akpgeek@gmail.com> wrote:
> Dear all -
> While setting up streaming I ran into issue with libpq. To
> resolve it I need to recompile the source. I am issuing the following
> command . I tried this before with 9.0.2 it worked. Now when issued the same
> command I was getting the errors.
>
> ./configure --prefix=/opt/postgres/9.0.4 --with-readline --with-perl
> --with-libxml --with-openssl --with-ossp-uuid
> -with-includes=/opt/postgres/software/include/readline/
> LDFLAGS=-L/opt/postgres/software/lib:/opt/postgres/gis/lib
> ./configure --prefix=/opt/postgres/9.0.4 --with-readline --with-perl
> --with-libxml --with-openssl --with-ossp-uuid
> -with-includes=/opt/postgres/software/include/readline/
> LDFLAGS=-L/opt/postgres/software/lib:/opt/postgres/gis/lib
> checking build system type... sparc-sun-solaris2.10
> checking host system type... sparc-sun-solaris2.10
> checking which template to use... solaris
> checking whether to build with 64-bit integer date/time support... yes
> checking whether NLS is wanted... no
> checking for default port number... 5432
> checking for block size... 8kB
> checking for segment size... 1GB
> checking for WAL block size... 8kB
> checking for WAL segment size... 16MB
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking if gcc supports -Wdeclaration-after-statement... yes
> checking if gcc supports -Wendif-labels... yes
> checking if gcc supports -fno-strict-aliasing... yes
> checking if gcc supports -fwrapv... yes
> checking whether the C compiler still works... yes
> checking how to run the C preprocessor... gcc -E
> checking allow thread-safe client libraries... yes
> checking whether to build with Tcl... no
> checking whether to build Perl modules... yes
> checking whether to build Python modules... no
> checking whether to build with GSSAPI support... no
> checking whether to build with Kerberos 5 support... no
> checking whether to build with PAM support... no
> checking whether to build with LDAP support... no
> checking whether to build with Bonjour support... no
> checking whether to build with OpenSSL support... yes
> checking for xml2-config... xml2-config
> checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
> checking for egrep... /usr/sfw/bin/ggrep -E
> checking for ld used by GCC... /usr/ccs/bin/ld
> checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
> checking for ranlib... ranlib
> checking for strip... strip
> checking whether it is possible to strip libraries... no
> checking for ar... ar
> checking for tar... /bin/tar
> checking whether ln -s works... yes
> checking for gawk... no
> checking for mawk... no
> checking for nawk... nawk
> checking for a thread-safe mkdir -p... config/install-sh -c -d
> checking for bison... /usr/sfw/bin/bison
> configure: using bison (GNU Bison) 1.875
> checking for flex... /opt/postgres/software/flex/bin/flex
> configure: using flex 2.5.35
> checking for perl... /opt/postgres/perl/bin/perl
> configure: using perl 5.12.3
> checking for Perl archlibexp...
> /opt/postgres/perl/lib/perl5/5.12.3/sun4-solaris
> checking for Perl privlibexp... /opt/postgres/perl/lib/perl5/5.12.3
> checking for Perl useshrplib... true
> checking for flags to link embedded Perl... -L/usr/local/lib
> -L/opt/postgres/perl/lib/perl5/5.12.3/sun4-solaris/CORE -lperl -lsocket
> -lnsl -ldl -lm -lc
> checking for main in -lm... yes
> checking for library containing setproctitle... no
> checking for library containing dlopen... none required
> checking for library containing socket... -lsocket
> checking for library containing shl_load... no
> checking for library containing getopt_long... none required
> checking for library containing crypt... none required
> checking for library containing fdatasync... -lrt
> checking for library containing gethostbyname_r... -lnsl
> checking for library containing shmget... none required
> checking for -lreadline... yes (-lreadline -ltermcap)
> checking for inflate in -lz... yes
> checking for CRYPTO_new_ex_data in -lcrypto... yes
> checking for SSL_library_init in -lssl... yes
> checking for xmlSaveToBuffer in -lxml2... yes
> checking for uuid_export in -lossp-uuid... no
> checking for uuid_export in -luuid... no
> configure: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID
OS you're running I'll assume it's ubuntu because that's what I'm
running. Here's my apt-get install entries I use on my machines:
sudo apt-get install libreadline-dev zlib1g-dev libxml2-dev
libxslt-dev libossp-uuid-dev bison flex python2.6-dev libgss-dev
libssl-dev libkrb5-dev
All of those might or might not be necessary for you.
On 06/13/11 3:07 PM, akp geek wrote: > I am doing the work on Solaris. then you'll likely need to build ossp-uuid and reference it in your ./configure -- john r pierce N 37, W 122 santa cruz ca mid-left coast
On 06/14/2011 05:15 AM, akp geek wrote: > Dear all - > > While setting up streaming I ran into issue with libpq. > To resolve it I need to recompile the source. I am issuing the following > command . I tried this before with 9.0.2 it worked. Now when issued the > same command I was getting the errors. > configure: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID Examine config.log and see why the ossp-uuid testcase failed. Do you have ossp-uuid installed? Is it on your LIBRARY_PATH and INCLUDE_PATH ? -- Craig Ringer
Thanks all for the responses.
$./configure --prefix=/opt/postgres/9.0.4 --with-readline --with-perl --with-libxml --with-openssl --with-ossp-uuid LDFLAGS=-L/opt/postgres/gis/lib --with-includes=/opt/postgres/software/include/readline/
I bypassed the uuid error. Now getting this .. I have installed readline. I have this under /opt/postgres/software/lib, include ,share
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no
checking readline.h usability... no
checking readline.h presence... no
checking for readline.h... no
configure: error: readline header 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.
Use --without-readline to disable readline support.
Following is my .profile on solaris
I have
1. uuid , uuid-config in the /opt/postgres/gis/bin
2. /opt/postgres/gis/lib
-rw-r--r-- 1 postgres dba 50276 Jun 14 12:01 libuuid.a
-rw-r--r-- 1 postgres dba 932 Jun 14 12:01 libuuid.la
lrwxrwxrwx 1 postgres dba 18 Jun 14 12:01 libuuid.so -> libuuid.so.16.0.22
lrwxrwxrwx 1 postgres dba 18 Jun 14 12:01 libuuid.so.16 -> libuuid.so.16.0.22
-rwxr-xr-x 1 postgres dba 49376 Jun 14 12:01 libuuid.so.16.0.22
LD_LIBRARY_PATH=/opt/postgres/9.0.4/lib:/opt/postgres/gis/lib:/opt/postgres/perl/lib:/opt/postgres/perl/lib/perl5/5.12.3/sun4-solaris/CORE:/opt/postgres/software/lib:/opt/postgres/software/libxml2/lib:/opt/postgres/software/flex/lib:/usr/local/lib:/lib:/platform/SUNW,Sun-Fire-V210/lib:/usr/ucblib:/opt/SUNWspro/SC4.0/lib:/lib:/usr/sfw/lib:/usr/lib:/opt/
postgres/libiconv-1.13.1/lib/.libs
export LD_LIBRARY_PATH
PATH=/opt/postgres/9.0.4/bin:/opt/postgres/perl/bin:/opt/postgres/gis/bin:/bin:/sbin:/usr/5bin:/usr/sbin:/usr/ucb:/lib:/usr/ccs/bin:/opt/SUNWspro/SC4.0/bin:/usr/4lib:/usr/ucblib:/usr/ccs/lib:/usr/etc:/opt/postgres/software/libxml2/bin:/opt/postgres/gis/include:/opt/postgres/gis/share:/opt/postgres/software/include/readline:/opt/postgres/software/flex/bin:/opt/postgres/libxml2/include/libxml2/libxml:/usr/sfw/bin:/usr/local/bin
On Mon, Jun 13, 2011 at 7:32 PM, Craig Ringer <craig@postnewspapers.com.au> wrote:
On 06/14/2011 05:15 AM, akp geek wrote:Dear all -
While setting up streaming I ran into issue with libpq.
To resolve it I need to recompile the source. I am issuing the following
command . I tried this before with 9.0.2 it worked. Now when issued the
same command I was getting the errors.Examine config.log and see why the ossp-uuid testcase failed.configure: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID
Do you have ossp-uuid installed? Is it on your LIBRARY_PATH and INCLUDE_PATH ?
--
Craig Ringer
On Tuesday, June 14, 2011 5:51:59 am akp geek wrote: > Thanks all for the responses. > > > > $./configure --prefix=/opt/postgres/9.0.4 --with-readline --with-perl > --with-libxml --with-openssl --with-ossp-uuid > LDFLAGS=-L/opt/postgres/gis/lib > --with-includes=/opt/postgres/software/include/readline/ > > *I bypassed the uuid error. Now getting this .. I have installed > readline. I have this under /opt/postgres/software/lib, include ,share * Did you install readline-dev also? > > *checking readline/readline.h usability... no* > *checking readline/readline.h presence... no* > *checking for readline/readline.h... no* > *checking readline.h usability... no* > *checking readline.h presence... no* > *checking for readline.h... no* > *configure: error: readline header 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.* > *Use --without-readline to disable readline support.* > > -- Adrian Klaver adrian.klaver@gmail.com
Thanks all for the responses. Based on your suggestion, I could able to configure it . The way I fixed it was, I configured the uuid, readline and flex into the same path, then ran the configure command for postgres
./configure --prefix=/opt/postgres/9.0.4 --with-perl --with-libxml --with-openssl --with-readline --with-ossp-uuid --with-includes=/opt/postgres/software/include LDFLAGS=-L/opt/postgres/software/lib
every thing went well from there , gmake and gmake install
Regards
On Tue, Jun 14, 2011 at 9:48 AM, Adrian Klaver <adrian.klaver@gmail.com> wrote:
On Tuesday, June 14, 2011 5:51:59 am akp geek wrote:> readline. I have this under /opt/postgres/software/lib, include ,share *
> Thanks all for the responses.
>
>
>
> $./configure --prefix=/opt/postgres/9.0.4 --with-readline --with-perl
> --with-libxml --with-openssl --with-ossp-uuid
> LDFLAGS=-L/opt/postgres/gis/lib
> --with-includes=/opt/postgres/software/include/readline/
>
> *I bypassed the uuid error. Now getting this .. I have installed
Did you install readline-dev also?
>
> *checking readline/readline.h usability... no*> *checking readline/readline.h presence... no*> *Use --without-readline to disable readline support.*
> *checking for readline/readline.h... no*
> *checking readline.h usability... no*
> *checking readline.h presence... no*
> *checking for readline.h... no*
> *configure: error: readline header 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.*
>
>
--
Adrian Klaver
adrian.klaver@gmail.com