Hello,<br><br>I'm new to Postgis, trying to install on Red Hat. I'm getting a variation of an error that shows up a lot in message boards.<br><br>I'm getting an error running lwpostgis.sql.<br>
I configured postgresql with LDFLAGS=-lstdc++.<br>I ran ldconfig after updating /etc/ld.so.conf.<br><br>The error is:<br>[mydir][~]$ psql -d gistest -f share/lwpostgis.sql<br>BEGIN<br>psql:share/lwpostgis.sql:53: NOTICE:  type "histogram2d" is not yet defined
<br>DETAIL:  Creating a shell type definition.<br>psql:share/lwpostgis.sql:53: server closed the connection unexpectedly<br>        This probably means the server terminated abnormally<br>        before or while processing the request.
<br>psql:share/lwpostgis.sql:53: connection to server was lost<br>[mydir][~]$<br><br>When I try to run statements alone in phppgadmin, I see this for a create function using a library:<br><p><b>SQL error:</b><br></p><pre class="data">
server closed the connection unexpectedly<br>     This probably means the server terminated abnormally<br>  before or while processing the request.</pre>
                      <p><b>In statement:</b><br></p><pre class="data">CREATE OR REPLACE FUNCTION ST_histogram2d_in(cstring)<br>    RETURNS histogram2d<br>   AS '/home/mydir/lib/liblwgeom', 'lwhistogram2d_in'<br>    LANGUAGE 'C' IMMUTABLE STRICT; -- WITH (isstrict);
<br><br></pre>The Log on the server has:<br>[mydir][~]$ NOTICE:  type "histogram2d" is not yet defined<br>DETAIL:  Creating a shell type definition.<br>LOG:  server process (PID 4889) was terminated by signal 11
<br>LOG:  terminating any other active server processes<br>LOG:  all server processes terminated; reinitializing<br>L<br><br>Here is the postgresql configuration<br><br>[mydir][~]$ pg_config<br>BINDIR = /usr/home/mydir/bin
<br>DOCDIR = /usr/home/mydir/doc/postgresql<br>INCLUDEDIR = /usr/home/mydir/include<br>PKGINCLUDEDIR = /usr/home/mydir/include/postgresql<br>INCLUDEDIR-SERVER = /usr/home/mydir/include/postgresql/server<br>LIBDIR = /usr/home/mydir/lib
<br>PKGLIBDIR = /usr/home/mydir/lib/postgresql<br>LOCALEDIR =<br>MANDIR = /usr/home/mydir/man<br>SHAREDIR = /usr/home/mydir/share/postgresql<br>SYSCONFDIR = /usr/home/mydir/etc/postgresql<br>PGXS = /usr/home/mydir/lib/postgresql/pgxs/src/makefiles/pgxs.mk
<br>CONFIGURE = '--prefix=/home/mydir' 'LDFLAGS=-lstdc++'<br>CC = gcc<br>CPPFLAGS = -D_GNU_SOURCE<br>CFLAGS = -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
<br>CFLAGS_SL = -fpic<br>LDFLAGS = -lstdc++ -Wl,-rpath,'/home/mydir/lib'<br>LDFLAGS_SL =<br>LIBS = -lpgport -lz -lreadline -lncurses -lcrypt -ldl -lm<br>VERSION = PostgreSQL 8.2.6<br>[mydir][~]$<br><br><br><br>Any help would be greatly appreciated
<br>