[postgis-users] Problem on ./configure

Ezequias Rodrigues da Rocha ezequias at recife.pe.gov.br
Wed Jan 18 04:10:26 PST 2006


Please see my strange result (on ./configure and on make) and tell me 
why the root has permission denied.

[root at dc postgis-1.1.0]# ./configure --with-pgsql=/usr/local/pgsql/bin 
--with-proj=/opt/proj-4.4.9/
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 ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether ln -s works... yes
checking for iconv_open in -liconv... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
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
checking for flex... /usr/bin/flex
checking for dllwrap... no
checking for dlltool... no
checking for yacc... /usr/bin/yacc
checking for perl... /usr/bin/perl
checking for xsltproc... /usr/bin/xsltproc
checking for pdfxmltex... no
checking for jw... /usr/bin/jw
./configure: line 4212: /usr/local/pgsql/bin: is a directory
./configure: line 4233: /usr/local/pgsql/bin: is a directory
checking which template to use... linux
configure: creating ./config.status
config.status: creating Makefile.config
config.status: creating config.h
config.status: config.h is unchanged

 SUMMARY
 -------------------------------------------------------

 HOST_OS: linux-gnu

   PGSQL: /usr/local/pgsql/bin
    GEOS: /usr/bin/geos-config
    PROJ: dir=/opt/proj-4.4.9/
   ICONV: 1 -liconv

 PORTNAME: linux
   PREFIX: /usr/local
  EPREFIX: ${prefix}
      DOC: ${prefix}/share/doc
     DATA: ${prefix}/share/postgresql/contrib
      MAN: ${prefix}/man
      BIN: ${exec_prefix}/bin
      EXT:  (\$$libdir)
 -------------------------------------------------------

[now the more strange (the make)]

make -C lwgeom
make[1]: execvp: /usr/local/pgsql/bin: Permission Denied
make[1]: Entering directory 
`/home/ezequias/1A/SuperProject/server/mapserver/postgis-1.1.0/lwgeom'
make[1]: execvp: /usr/local/pgsql/bin: Permission Denied
make[1]: execvp: /usr/local/pgsql/bin: Permission Denied
make[1]: execvp: /usr/local/pgsql/bin: Permission Denied
make[1]: execvp: /usr/local/pgsql/bin: Permission Denied
make[1]: execvp: /usr/local/pgsql/bin: Permission Denied
sh ../geos_version.sh /usr > postgis_geos_version.h
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
In file included from liblwgeom.c:26:
lwgeom_pg.h:4:22: error: postgres.h: File or directory not found
lwgeom_pg.h:5:29: error: utils/geo_decls.h: File or directory not found
lwgeom_pg.h:6:18: error: fmgr.h: File or directory not found
In file included from liblwgeom.c:26:
lwgeom_pg.h:28: error: syntax error before 'getGeometryOID'
lwgeom_pg.h:28: warning: type defaults to 'int' in declaration of 
'getGeometryOID'
lwgeom_pg.h:28: warning: data definition has no type or storage class
lwgeom_pg.h:35: error: syntax error before '*' token
lwgeom_pg.h:36: error: syntax error before 'box2df_to_box'
lwgeom_pg.h:36: warning: type defaults to 'int' in declaration of 
'box2df_to_box'
lwgeom_pg.h:36: warning: data definition has no type or storage class
lwgeom_pg.h:37: error: syntax error before 'BOX'
lwgeom_pg.h:40: error: syntax error before 'BOX2D_same'
lwgeom_pg.h:40: warning: type defaults to 'int' in declaration of 
'BOX2D_same'
lwgeom_pg.h:40: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:40: warning: data definition has no type or 
storage class
lwgeom_pg.h:41: error: syntax error before 'BOX2D_overlap'
lwgeom_pg.h:41: warning: type defaults to 'int' in declaration of 
'BOX2D_overlap'
lwgeom_pg.h:41: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:41: warning: data definition has no type or 
storage class
lwgeom_pg.h:42: error: syntax error before 'BOX2D_overleft'
lwgeom_pg.h:42: warning: type defaults to 'int' in declaration of 
'BOX2D_overleft'
lwgeom_pg.h:42: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:42: warning: data definition has no type or 
storage class
lwgeom_pg.h:43: error: syntax error before 'BOX2D_left'
lwgeom_pg.h:43: warning: type defaults to 'int' in declaration of 
'BOX2D_left'
lwgeom_pg.h:43: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:43: warning: data definition has no type or 
storage class
lwgeom_pg.h:44: error: syntax error before 'BOX2D_right'
lwgeom_pg.h:44: warning: type defaults to 'int' in declaration of 
'BOX2D_right'
lwgeom_pg.h:44: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:44: warning: data definition has no type or 
storage class
lwgeom_pg.h:45: error: syntax error before 'BOX2D_overright'
lwgeom_pg.h:45: warning: type defaults to 'int' in declaration of 
'BOX2D_overright'
lwgeom_pg.h:45: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:45: warning: data definition has no type or 
storage class
lwgeom_pg.h:46: error: syntax error before 'BOX2D_overbelow'
lwgeom_pg.h:46: warning: type defaults to 'int' in declaration of 
'BOX2D_overbelow'
lwgeom_pg.h:46: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:46: warning: data definition has no type or 
storage class
lwgeom_pg.h:47: error: syntax error before 'BOX2D_below'
lwgeom_pg.h:47: warning: type defaults to 'int' in declaration of 
'BOX2D_below'
lwgeom_pg.h:47: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:47: warning: data definition has no type or 
storage class
lwgeom_pg.h:48: error: syntax error before 'BOX2D_above'
lwgeom_pg.h:48: warning: type defaults to 'int' in declaration of 
'BOX2D_above'
lwgeom_pg.h:48: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:48: warning: data definition has no type or 
storage class
lwgeom_pg.h:49: error: syntax error before 'BOX2D_overabove'
lwgeom_pg.h:49: warning: type defaults to 'int' in declaration of 
'BOX2D_overabove'
lwgeom_pg.h:49: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:49: warning: data definition has no type or 
storage class
lwgeom_pg.h:50: error: syntax error before 'BOX2D_contained'
lwgeom_pg.h:50: warning: type defaults to 'int' in declaration of 
'BOX2D_contained'
lwgeom_pg.h:50: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:50: warning: data definition has no type or 
storage class
lwgeom_pg.h:51: error: syntax error before 'BOX2D_contain'
lwgeom_pg.h:51: warning: type defaults to 'int' in declaration of 
'BOX2D_contain'
lwgeom_pg.h:51: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:51: warning: data definition has no type or 
storage class
lwgeom_pg.h:52: error: syntax error before 'BOX2D_intersects'
lwgeom_pg.h:52: warning: type defaults to 'int' in declaration of 
'BOX2D_intersects'
lwgeom_pg.h:52: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:52: warning: data definition has no type or 
storage class
lwgeom_pg.h:53: error: syntax error before 'BOX2D_union'
lwgeom_pg.h:53: warning: type defaults to 'int' in declaration of 
'BOX2D_union'
lwgeom_pg.h:53: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:53: warning: data definition has no type or 
storage class
lwgeom_pg.h:55: error: syntax error before 'LWGEOM_same'
lwgeom_pg.h:55: warning: type defaults to 'int' in declaration of 
'LWGEOM_same'
lwgeom_pg.h:55: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:55: warning: data definition has no type or 
storage class
lwgeom_pg.h:56: error: syntax error before 'BOX3D_construct'
lwgeom_pg.h:56: warning: type defaults to 'int' in declaration of 
'BOX3D_construct'
lwgeom_pg.h:56: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:56: warning: data definition has no type or 
storage class
lwgeom_pg.h:57: error: syntax error before 'BOX2DFLOAT4_ymin'
lwgeom_pg.h:57: warning: type defaults to 'int' in declaration of 
'BOX2DFLOAT4_ymin'
lwgeom_pg.h:57: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:57: warning: data definition has no type or 
storage class
lwgeom_pg.h:59: error: syntax error before 'LWGEOM_force_2d'
lwgeom_pg.h:59: warning: type defaults to 'int' in declaration of 
'LWGEOM_force_2d'
lwgeom_pg.h:59: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:59: warning: data definition has no type or 
storage class
lwgeom_pg.h:60: error: syntax error before 'LWGEOM_force_3dm'
lwgeom_pg.h:60: warning: type defaults to 'int' in declaration of 
'LWGEOM_force_3dm'
lwgeom_pg.h:60: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:60: warning: data definition has no type or 
storage class
lwgeom_pg.h:61: error: syntax error before 'LWGEOM_force_3dz'
lwgeom_pg.h:61: warning: type defaults to 'int' in declaration of 
'LWGEOM_force_3dz'
lwgeom_pg.h:61: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:61: warning: data definition has no type or 
storage class
lwgeom_pg.h:62: error: syntax error before 'LWGEOM_force_4d'
lwgeom_pg.h:62: warning: type defaults to 'int' in declaration of 
'LWGEOM_force_4d'
lwgeom_pg.h:62: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:62: warning: data definition has no type or 
storage class
lwgeom_pg.h:63: error: syntax error before 'LWGEOM_force_collection'
lwgeom_pg.h:63: warning: type defaults to 'int' in declaration of 
'LWGEOM_force_collection'
lwgeom_pg.h:63: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:63: warning: data definition has no type or 
storage class
lwgeom_pg.h:64: error: syntax error before 'LWGEOM_force_multi'
lwgeom_pg.h:64: warning: type defaults to 'int' in declaration of 
'LWGEOM_force_multi'
lwgeom_pg.h:64: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:64: warning: data definition has no type or 
storage class
lwgeom_pg.h:66: error: syntax error before 'LWGEOMFromWKB'
lwgeom_pg.h:66: warning: type defaults to 'int' in declaration of 
'LWGEOMFromWKB'
lwgeom_pg.h:66: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:66: warning: data definition has no type or 
storage class
lwgeom_pg.h:67: error: syntax error before 'WKBFromLWGEOM'
lwgeom_pg.h:67: warning: type defaults to 'int' in declaration of 
'WKBFromLWGEOM'
lwgeom_pg.h:67: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:67: warning: data definition has no type or 
storage class
lwgeom_pg.h:69: error: syntax error before 'LWGEOM_getBBOX'
lwgeom_pg.h:69: warning: type defaults to 'int' in declaration of 
'LWGEOM_getBBOX'
lwgeom_pg.h:69: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:69: warning: data definition has no type or 
storage class
lwgeom_pg.h:70: error: syntax error before 'LWGEOM_addBBOX'
lwgeom_pg.h:70: warning: type defaults to 'int' in declaration of 
'LWGEOM_addBBOX'
lwgeom_pg.h:70: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:70: warning: data definition has no type or 
storage class
lwgeom_pg.h:71: error: syntax error before 'LWGEOM_dropBBOX'
lwgeom_pg.h:71: warning: type defaults to 'int' in declaration of 
'LWGEOM_dropBBOX'
lwgeom_pg.h:71: warning: parameter names (without types) in function 
declarationlwgeom_pg.h:71: warning: data definition has no type or 
storage class
liblwgeom.c: In function 'trim_trailing_zeros':
liblwgeom.c:158: warning: implicit declaration of function 'strchr'
liblwgeom.c:158: warning: incompatible implicit declaration of built-in 
function 'strchr'
liblwgeom.c:163: warning: implicit declaration of function 'strlen'
liblwgeom.c:163: warning: incompatible implicit declaration of built-in 
function 'strlen'
make[1]: ** [liblwgeom.o] Erro 1
make[1]: Leaving directory 
`/home/ezequias/1A/SuperProject/server/mapserver/postgis-1.1.0/lwgeom'
make: ** [liblwgeom] Error 2


Sincerely
Ezequias

strk at refractions.net escreveu:
> --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:
>   
>> 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 at 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 at dc postgis-1.1.0]#
>>
>> What I did incorrectly ?
>>
>> Ezequias
>>
>>
>> Jeff Lounsbury escreveu:
>>     
>>> I've never had any problems just installing from source 
>>> (ftp://ftp.remotesensing.org/proj/proj-4.4.9.tar.gz), 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:
>>>       
>>>> * Ezequias Rodrigues da Rocha <ezequias at recife.pe.gov.br> [060117 
>>>> 15:42]:
>>>>
>>>>         
>>>>> I have no project-devel package here.
>>>>>
>>>>> I just download the full packages for mapserver on this website:
>>>>>
>>>>> http://mappinghacks.com/rpm/fedora/4/
>>>>>
>>>>> Have anybody have a suggestion ?
>>>>>           
>>>> 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
>>>> http://mappinghacks.com/rpm/fedora/2/
>>>>
>>>> as well as
>>>> http://mappinghacks.com/rpm/fedora/3/
>>>>
>>>> Regards,
>>>>
>>>>        Frank
>>>>
>>>>         
>>> _______________________________________________
>>> postgis-users mailing list
>>> postgis-users at postgis.refractions.net
>>> http://postgis.refractions.net/mailman/listinfo/postgis-users
>>>
>>>       
>> -- 
>> Ezequias Rodrigues da Rocha
>> http://ezequiasrocha.blogspot.com
>> msn:ezequias at hotmail.com
>> "the worst of democracies is still better than the best of dictatorship"
>>
>> _______________________________________________
>> postgis-users mailing list
>> postgis-users at postgis.refractions.net
>> http://postgis.refractions.net/mailman/listinfo/postgis-users
>>     
>
>   

-- 
Ezequias Rodrigues da Rocha
http://ezequiasrocha.blogspot.com
msn:ezequias at hotmail.com
"the worst of democracies is still better than the best of dictatorship"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20060118/46a21c86/attachment.html>


More information about the postgis-users mailing list