Обсуждение: postgresql 9.2 build error
I am trying to build Postgresql 9.2
./configure --prefix=/usr/pgsql-9.2 --with-ossp-uuid --with-libxml
Got the error at config.log:
configure:9747: result: no
configure:9752: checking for uuid_export in -luuid
configure:9787: gcc -o conftest -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-stri
ct-aliasing -fwrapv -I/usr/local/include -D_GNU_SOURCE -I/usr/include/libxml2 -L/usr/lib64 conftest.c -luuid -lxml2 -lz -lreadline -ltermcap -lcrypt -ldl -lm >&5
/usr/bin/ld: cannot find -luuid
collect2: ld returned 1 exit status
configure:9794: $? = 1
What should I do?
On Sun, Jan 13, 2013 at 10:18:50AM -0500, AI Rumman wrote: > I am trying to build Postgresql 9.2 > > ./configure --prefix=/usr/pgsql-9.2 --with-ossp-uuid --with-libxml > > Got the error at config.log: > > configure:9747: result: no > configure:9752: checking for uuid_export in -luuid > configure:9787: gcc -o conftest -O2 -Wall -Wmissing-prototypes > -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels > -Wmissing-format-attribute -Wformat-security -fno-stri > ct-aliasing -fwrapv -I/usr/local/include -D_GNU_SOURCE > -I/usr/include/libxml2 -L/usr/lib64 conftest.c -luuid -lxml2 -lz > -lreadline -ltermcap -lcrypt -ldl -lm >&5 > /usr/bin/ld: cannot find -luuid > collect2: ld returned 1 exit status > configure:9794: $? = 1 > > What should I do? Install uuid library. Depending on your system/distribution, the method might be different, but generally you do it using yum/pacman/apt-get - something like this. Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/
On Sun, Jan 13, 2013 at 11:36:11AM -0500, AI Rumman wrote: > Its already installed. > I am runninf Postgresql 9.0 with uuid successfully in this server. Most likely you installed just part of the library. Not sure what OS/distribution you're using, but on debian, for example - there is distinction between library package needed for running programs, and headers for library needed for program compilation. headers are usually in package named "package-dev" or "package-devel". depesz