<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Please see my strange result (on ./configure and on make) and tell me
why the root has permission denied.<br>
<br>
<small><small>[root@dc postgis-1.1.0]# ./configure
--with-pgsql=/usr/local/pgsql/bin --with-proj=/opt/proj-4.4.9/<br>
checking for gcc... gcc<br>
checking for C compiler default output file name... a.out<br>
checking whether the C compiler works... yes<br>
checking whether we are cross compiling... no<br>
checking for suffix of executables...<br>
checking for suffix of object files... o<br>
checking whether we are using the GNU C compiler... yes<br>
checking whether gcc accepts -g... yes<br>
checking for gcc option to accept ANSI C... none needed<br>
checking for g++... g++<br>
checking whether we are using the GNU C++ compiler... yes<br>
checking whether g++ accepts -g... yes<br>
checking whether ln -s works... yes<br>
checking for iconv_open in -liconv... yes<br>
checking how to run the C preprocessor... gcc -E<br>
checking for egrep... grep -E<br>
checking for ANSI C header files... yes<br>
checking for sys/types.h... yes<br>
checking for sys/stat.h... yes<br>
checking for stdlib.h... yes<br>
checking for string.h... yes<br>
checking for memory.h... yes<br>
checking for strings.h... yes<br>
checking for inttypes.h... yes<br>
checking for stdint.h... yes<br>
checking for unistd.h... yes<br>
checking iconv.h usability... yes<br>
checking iconv.h presence... yes<br>
checking for iconv.h... yes<br>
checking build system type... i686-pc-linux-gnu<br>
checking host system type... i686-pc-linux-gnu<br>
./configure: line 3568: /usr/local/pgsql/bin: is a directory<br>
./configure: line 3569: /usr/local/pgsql/bin: is a directory<br>
./configure: line 3570: /usr/local/pgsql/bin: is a directory<br>
./configure: line 3571: /usr/local/pgsql/bin: is a directory<br>
./configure: line 3572: /usr/local/pgsql/bin: is a directory<br>
checking for geos-config... /usr/bin/geos-config<br>
checking for proj... /usr/bin/proj<br>
checking for flex... /usr/bin/flex<br>
checking for dllwrap... no<br>
checking for dlltool... no<br>
checking for yacc... /usr/bin/yacc<br>
checking for perl... /usr/bin/perl<br>
checking for xsltproc... /usr/bin/xsltproc<br>
checking for pdfxmltex... no<br>
checking for jw... /usr/bin/jw<br>
./configure: line 4212: /usr/local/pgsql/bin: is a directory<br>
./configure: line 4233: /usr/local/pgsql/bin: is a directory<br>
checking which template to use... linux<br>
configure: creating ./config.status<br>
config.status: creating Makefile.config<br>
config.status: creating config.h<br>
config.status: config.h is unchanged<br>
<br>
SUMMARY<br>
-------------------------------------------------------<br>
<br>
HOST_OS: linux-gnu<br>
<br>
PGSQL: /usr/local/pgsql/bin<br>
GEOS: /usr/bin/geos-config<br>
PROJ: dir=/opt/proj-4.4.9/<br>
ICONV: 1 -liconv<br>
<br>
PORTNAME: linux<br>
PREFIX: /usr/local<br>
EPREFIX: ${prefix}<br>
DOC: ${prefix}/share/doc<br>
DATA: ${prefix}/share/postgresql/contrib<br>
MAN: ${prefix}/man<br>
BIN: ${exec_prefix}/bin<br>
EXT: (\$$libdir)<br>
-------------------------------------------------------</small></small><br>
<br>
[now the more strange (the make)]<br>
<br>
<small><small><small>make -C lwgeom<br>
make[1]: execvp: /usr/local/pgsql/bin: Permission Denied<br>
make[1]: Entering directory
`/home/ezequias/1A/SuperProject/server/mapserver/postgis-1.1.0/lwgeom'<br>
make[1]: execvp: /usr/local/pgsql/bin: </small></small></small><small><small><small>Permission
Denied</small></small></small><br>
<small><small><small>make[1]: execvp: /usr/local/pgsql/bin: </small></small></small><small><small><small>Permission
Denied</small></small></small><br>
<small><small><small>make[1]: execvp: /usr/local/pgsql/bin: </small></small></small><small><small><small>Permission
Denied</small></small></small><br>
<small><small><small>make[1]: execvp: /usr/local/pgsql/bin: </small></small></small><small><small><small>Permission
Denied</small></small></small><br>
<small><small><small>make[1]: execvp: /usr/local/pgsql/bin: </small></small></small><small><small><small>Permission
Denied</small></small></small><br>
<small><small><small>sh ../geos_version.sh /usr >
postgis_geos_version.h<br>
gcc -DUSE_VERSION=82 -DPOSTGIS_LIB_VERSION='"1.1.0"'
-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-18
12:07:49"' -I/opt/proj-4.4.9//include -DUSE_PROJ -I
-DAUTOCACHE_BBOX=1 -DUSE_STATS -Wall -g -O2 -fPIC -fexceptions
-DUSE_GEOS -c -o liblwgeom.o liblwgeom.c<br>
In file included from liblwgeom.c:26:<br>
lwgeom_pg.h:4:22: error: postgres.h: File or directory not found<br>
lwgeom_pg.h:5:29: error: utils/geo_decls.h: </small></small></small><small><small><small>File
or directory not found</small></small></small><br>
<small><small><small>lwgeom_pg.h:6:18: error: fmgr.h: </small></small></small><small><small><small>File
or directory not found</small></small></small><br>
<small><small><small>In file included from liblwgeom.c:26:<br>
lwgeom_pg.h:28: error: syntax error before ‘getGeometryOID’<br>
lwgeom_pg.h:28: warning: type defaults to ‘int’ in declaration of
‘getGeometryOID’<br>
lwgeom_pg.h:28: warning: data definition has no type or storage class<br>
lwgeom_pg.h:35: error: syntax error before ‘*’ token<br>
lwgeom_pg.h:36: error: syntax error before ‘box2df_to_box’<br>
lwgeom_pg.h:36: warning: type defaults to ‘int’ in declaration of
‘box2df_to_box’<br>
lwgeom_pg.h:36: warning: data definition has no type or storage class<br>
lwgeom_pg.h:37: error: syntax error before ‘BOX’<br>
lwgeom_pg.h:40: error: syntax error before ‘BOX2D_same’<br>
lwgeom_pg.h:40: warning: type defaults to ‘int’ in declaration of
‘BOX2D_same’<br>
lwgeom_pg.h:40: warning: parameter names (without types) in function
declarationlwgeom_pg.h:40: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:41: error: syntax error before ‘BOX2D_overlap’<br>
lwgeom_pg.h:41: warning: type defaults to ‘int’ in declaration of
‘BOX2D_overlap’<br>
lwgeom_pg.h:41: warning: parameter names (without types) in function
declarationlwgeom_pg.h:41: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:42: error: syntax error before ‘BOX2D_overleft’<br>
lwgeom_pg.h:42: warning: type defaults to ‘int’ in declaration of
‘BOX2D_overleft’<br>
lwgeom_pg.h:42: warning: parameter names (without types) in function
declarationlwgeom_pg.h:42: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:43: error: syntax error before ‘BOX2D_left’<br>
lwgeom_pg.h:43: warning: type defaults to ‘int’ in declaration of
‘BOX2D_left’<br>
lwgeom_pg.h:43: warning: parameter names (without types) in function
declarationlwgeom_pg.h:43: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:44: error: syntax error before ‘BOX2D_right’<br>
lwgeom_pg.h:44: warning: type defaults to ‘int’ in declaration of
‘BOX2D_right’<br>
lwgeom_pg.h:44: warning: parameter names (without types) in function
declarationlwgeom_pg.h:44: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:45: error: syntax error before ‘BOX2D_overright’<br>
lwgeom_pg.h:45: warning: type defaults to ‘int’ in declaration of
‘BOX2D_overright’<br>
lwgeom_pg.h:45: warning: parameter names (without types) in function
declarationlwgeom_pg.h:45: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:46: error: syntax error before ‘BOX2D_overbelow’<br>
lwgeom_pg.h:46: warning: type defaults to ‘int’ in declaration of
‘BOX2D_overbelow’<br>
lwgeom_pg.h:46: warning: parameter names (without types) in function
declarationlwgeom_pg.h:46: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:47: error: syntax error before ‘BOX2D_below’<br>
lwgeom_pg.h:47: warning: type defaults to ‘int’ in declaration of
‘BOX2D_below’<br>
lwgeom_pg.h:47: warning: parameter names (without types) in function
declarationlwgeom_pg.h:47: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:48: error: syntax error before ‘BOX2D_above’<br>
lwgeom_pg.h:48: warning: type defaults to ‘int’ in declaration of
‘BOX2D_above’<br>
lwgeom_pg.h:48: warning: parameter names (without types) in function
declarationlwgeom_pg.h:48: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:49: error: syntax error before ‘BOX2D_overabove’<br>
lwgeom_pg.h:49: warning: type defaults to ‘int’ in declaration of
‘BOX2D_overabove’<br>
lwgeom_pg.h:49: warning: parameter names (without types) in function
declarationlwgeom_pg.h:49: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:50: error: syntax error before ‘BOX2D_contained’<br>
lwgeom_pg.h:50: warning: type defaults to ‘int’ in declaration of
‘BOX2D_contained’<br>
lwgeom_pg.h:50: warning: parameter names (without types) in function
declarationlwgeom_pg.h:50: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:51: error: syntax error before ‘BOX2D_contain’<br>
lwgeom_pg.h:51: warning: type defaults to ‘int’ in declaration of
‘BOX2D_contain’<br>
lwgeom_pg.h:51: warning: parameter names (without types) in function
declarationlwgeom_pg.h:51: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:52: error: syntax error before ‘BOX2D_intersects’<br>
lwgeom_pg.h:52: warning: type defaults to ‘int’ in declaration of
‘BOX2D_intersects’<br>
lwgeom_pg.h:52: warning: parameter names (without types) in function
declarationlwgeom_pg.h:52: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:53: error: syntax error before ‘BOX2D_union’<br>
lwgeom_pg.h:53: warning: type defaults to ‘int’ in declaration of
‘BOX2D_union’<br>
lwgeom_pg.h:53: warning: parameter names (without types) in function
declarationlwgeom_pg.h:53: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:55: error: syntax error before ‘LWGEOM_same’<br>
lwgeom_pg.h:55: warning: type defaults to ‘int’ in declaration of
‘LWGEOM_same’<br>
lwgeom_pg.h:55: warning: parameter names (without types) in function
declarationlwgeom_pg.h:55: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:56: error: syntax error before ‘BOX3D_construct’<br>
lwgeom_pg.h:56: warning: type defaults to ‘int’ in declaration of
‘BOX3D_construct’<br>
lwgeom_pg.h:56: warning: parameter names (without types) in function
declarationlwgeom_pg.h:56: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:57: error: syntax error before ‘BOX2DFLOAT4_ymin’<br>
lwgeom_pg.h:57: warning: type defaults to ‘int’ in declaration of
‘BOX2DFLOAT4_ymin’<br>
lwgeom_pg.h:57: warning: parameter names (without types) in function
declarationlwgeom_pg.h:57: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:59: error: syntax error before ‘LWGEOM_force_2d’<br>
lwgeom_pg.h:59: warning: type defaults to ‘int’ in declaration of
‘LWGEOM_force_2d’<br>
lwgeom_pg.h:59: warning: parameter names (without types) in function
declarationlwgeom_pg.h:59: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:60: error: syntax error before ‘LWGEOM_force_3dm’<br>
lwgeom_pg.h:60: warning: type defaults to ‘int’ in declaration of
‘LWGEOM_force_3dm’<br>
lwgeom_pg.h:60: warning: parameter names (without types) in function
declarationlwgeom_pg.h:60: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:61: error: syntax error before ‘LWGEOM_force_3dz’<br>
lwgeom_pg.h:61: warning: type defaults to ‘int’ in declaration of
‘LWGEOM_force_3dz’<br>
lwgeom_pg.h:61: warning: parameter names (without types) in function
declarationlwgeom_pg.h:61: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:62: error: syntax error before ‘LWGEOM_force_4d’<br>
lwgeom_pg.h:62: warning: type defaults to ‘int’ in declaration of
‘LWGEOM_force_4d’<br>
lwgeom_pg.h:62: warning: parameter names (without types) in function
declarationlwgeom_pg.h:62: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:63: error: syntax error before ‘LWGEOM_force_collection’<br>
lwgeom_pg.h:63: warning: type defaults to ‘int’ in declaration of
‘LWGEOM_force_collection’<br>
lwgeom_pg.h:63: warning: parameter names (without types) in function
declarationlwgeom_pg.h:63: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:64: error: syntax error before ‘LWGEOM_force_multi’<br>
lwgeom_pg.h:64: warning: type defaults to ‘int’ in declaration of
‘LWGEOM_force_multi’<br>
lwgeom_pg.h:64: warning: parameter names (without types) in function
declarationlwgeom_pg.h:64: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:66: error: syntax error before ‘LWGEOMFromWKB’<br>
lwgeom_pg.h:66: warning: type defaults to ‘int’ in declaration of
‘LWGEOMFromWKB’<br>
lwgeom_pg.h:66: warning: parameter names (without types) in function
declarationlwgeom_pg.h:66: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:67: error: syntax error before ‘WKBFromLWGEOM’<br>
lwgeom_pg.h:67: warning: type defaults to ‘int’ in declaration of
‘WKBFromLWGEOM’<br>
lwgeom_pg.h:67: warning: parameter names (without types) in function
declarationlwgeom_pg.h:67: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:69: error: syntax error before ‘LWGEOM_getBBOX’<br>
lwgeom_pg.h:69: warning: type defaults to ‘int’ in declaration of
‘LWGEOM_getBBOX’<br>
lwgeom_pg.h:69: warning: parameter names (without types) in function
declarationlwgeom_pg.h:69: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:70: error: syntax error before ‘LWGEOM_addBBOX’<br>
lwgeom_pg.h:70: warning: type defaults to ‘int’ in declaration of
‘LWGEOM_addBBOX’<br>
lwgeom_pg.h:70: warning: parameter names (without types) in function
declarationlwgeom_pg.h:70: warning: data definition has no type or
storage class<br>
lwgeom_pg.h:71: error: syntax error before ‘LWGEOM_dropBBOX’<br>
lwgeom_pg.h:71: warning: type defaults to ‘int’ in declaration of
‘LWGEOM_dropBBOX’<br>
lwgeom_pg.h:71: warning: parameter names (without types) in function
declarationlwgeom_pg.h:71: warning: data definition has no type or
storage class<br>
liblwgeom.c: In function ‘trim_trailing_zeros’:<br>
liblwgeom.c:158: warning: implicit declaration of function ‘strchr’<br>
liblwgeom.c:158: warning: incompatible implicit declaration of built-in
function ‘strchr’<br>
liblwgeom.c:163: warning: implicit declaration of function ‘strlen’<br>
liblwgeom.c:163: warning: incompatible implicit declaration of built-in
function ‘strlen’<br>
make[1]: ** [liblwgeom.o] Erro 1<br>
make[1]: Leaving directory
`/home/ezequias/1A/SuperProject/server/mapserver/postgis-1.1.0/lwgeom'<br>
make: ** [liblwgeom] Error 2<br>
</small></small></small><br>
<br>
Sincerely<br>
Ezequias<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:strk@refractions.net">strk@refractions.net</a> escreveu:
<blockquote cite="mid20060118102714.GH70912@keybit.net" type="cite">
<pre wrap="">--with-pgsql takes the FULL PATH to pg_config
(see ./configure --help)
--strk;
On Tue, Jan 17, 2006 at 03:41:35PM -0300, Ezequias Rodrigues da Rocha wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Dear Jeff,
It is been a rally for me but I need to finish this installation as soon
as possible.
So let's go.
I installed the proj. I think it is installed properly now.
The file projects.h is in
/opt/proj-4.4.9/include
I try to configure PostGIS but it remains with the same error message:
[root@dc postgis-1.1.0]# ./configure --with-pgsql=/usr/local/pgsql/bin
--with-proj=/opt/proj-4.4.9/include
The error message is:
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
./configure: line 3568: /usr/local/pgsql/bin: is a directory
./configure: line 3569: /usr/local/pgsql/bin: is a directory
./configure: line 3570: /usr/local/pgsql/bin: is a directory
./configure: line 3571: /usr/local/pgsql/bin: is a directory
./configure: line 3572: /usr/local/pgsql/bin: is a directory
checking for geos-config... /usr/bin/geos-config
checking for proj... /usr/bin/proj
configure: error: Can't find proj dir.
[root@dc postgis-1.1.0]#
What I did incorrectly ?
Ezequias
Jeff Lounsbury escreveu:
</pre>
<blockquote type="cite">
<pre wrap="">I've never had any problems just installing from source
(<a class="moz-txt-link-freetext" href="ftp://ftp.remotesensing.org/proj/proj-4.4.9.tar.gz">ftp://ftp.remotesensing.org/proj/proj-4.4.9.tar.gz</a>), very simple:
tar –xvzf proj-4.4.9.tar.gz
cd proj-4.4.9
/configure –prefix /opt/proj-4.4.9
make
su
make install
echo /opt/proj-4.4.9/lib >> /etc/ld.so.conf
ldconfig
If you don't have a practical problem using source that is... Sorry if
this is too obvious and you've already considered this option, I
thought there was a slight chance it might help... :-)
Cheers,
-Jeff
Frank Koormann wrote:
</pre>
<blockquote type="cite">
<pre wrap="">* Ezequias Rodrigues da Rocha <a class="moz-txt-link-rfc2396E" href="mailto:ezequias@recife.pe.gov.br"><ezequias@recife.pe.gov.br></a> [060117
15:42]:
</pre>
<blockquote type="cite">
<pre wrap="">I have no project-devel package here.
I just download the full packages for mapserver on this website:
<a class="moz-txt-link-freetext" href="http://mappinghacks.com/rpm/fedora/4/">http://mappinghacks.com/rpm/fedora/4/</a>
Have anybody have a suggestion ?
</pre>
</blockquote>
<pre wrap="">
Hm, there isn't any proj-* file in the directory you pointed. However, I
can find proj-4.4.9 runtime and devel-packages under
<a class="moz-txt-link-freetext" href="http://mappinghacks.com/rpm/fedora/2/">http://mappinghacks.com/rpm/fedora/2/</a>
as well as
<a class="moz-txt-link-freetext" href="http://mappinghacks.com/rpm/fedora/3/">http://mappinghacks.com/rpm/fedora/3/</a>
Regards,
Frank
</pre>
</blockquote>
<pre wrap="">_______________________________________________
postgis-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a>
<a class="moz-txt-link-freetext" href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a>
</pre>
</blockquote>
<pre wrap="">--
Ezequias Rodrigues da Rocha
<a class="moz-txt-link-freetext" href="http://ezequiasrocha.blogspot.com">http://ezequiasrocha.blogspot.com</a>
<a class="moz-txt-link-abbreviated" href="mailto:msn:ezequias@hotmail.com">msn:ezequias@hotmail.com</a>
"the worst of democracies is still better than the best of dictatorship"
_______________________________________________
postgis-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a>
<a class="moz-txt-link-freetext" href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ezequias Rodrigues da Rocha
<a class="moz-txt-link-freetext" href="http://ezequiasrocha.blogspot.com">http://ezequiasrocha.blogspot.com</a>
<a class="moz-txt-link-abbreviated" href="mailto:msn:ezequias@hotmail.com">msn:ezequias@hotmail.com</a>
"the worst of democracies is still better than the best of dictatorship"
</pre>
</body>
</html>