[postgis-users] Building on Solaris 10 x86

Vinicius Carvalho vinicius.carvalho at ericsson.com
Thu Mar 24 02:37:00 PDT 2011


 
Thanks Jorge, after creating the symlink it passes that part but it seems that my gcc is not what postgis expects :(

Man I hate Solaris ... I found a page (http://www.mentby.com/chen-li-contractor/instructions-on-installing-postgis-on-solaris.html) where they explain the procedure for solaris I guess I'll have to wait for the sysadmins to get that done as it requires some CD installations.

Thanks for the help anyway.

Regards



Output of gmake: 

cc: unrecognized option `-Xa'
cc: unrecognized option `-Xa'
cc: unrecognized option `-KPIC'
cc: language arch=generic64 not recognized
cc: long_xact.c: linker input file unused because linking not done
/opt/studio11/SUNWspro/bin/cc -Xa -xO3 -xspace -Xa -xildoff -xCC -xarch=generic64 -KPIC -I/usr/local/include -I/usr/local//include -I/usr/include/libxml2 -I../liblwgeom -I. -I. -I/usr/postgres/9.0-pgdg/include/64/server -I/usr/postgres/9.0-pgdg/include/64/internal -I/usr/include/libxml2  -I/export/home/tmp/pg_build/proto-64/usr/include -I/usr/sfw/include  -c -o lwgeom_sqlmm.o lwgeom_sqlmm.c
cc: unrecognized option `-Xa'
cc: unrecognized option `-Xa'
cc: unrecognized option `-KPIC'
cc: language arch=generic64 not recognized
cc: lwgeom_sqlmm.c: linker input file unused because linking not done
/opt/studio11/SUNWspro/bin/cc -Xa -xO3 -xspace -Xa -xildoff -xCC -xarch=generic64 -KPIC -I/usr/local/include -I/usr/local//include -I/usr/include/libxml2 -I../liblwgeom -I. -I. -I/usr/postgres/9.0-pgdg/include/64/server -I/usr/postgres/9.0-pgdg/include/64/internal -I/usr/include/libxml2  -I/export/home/tmp/pg_build/proto-64/usr/include -I/usr/sfw/include  -c -o lwgeom_rtree.o lwgeom_rtree.c
cc: unrecognized option `-Xa'
cc: unrecognized option `-Xa'
cc: unrecognized option `-KPIC'
cc: language arch=generic64 not recognized
cc: lwgeom_rtree.c: linker input file unused because linking not done
/opt/studio11/SUNWspro/bin/cc -Xa -xO3 -xspace -Xa -xildoff -xCC -xarch=generic64 -KPIC -I/usr/local/include -I/usr/local//include -I/usr/include/libxml2 -I../liblwgeom -I. -I. -I/usr/postgres/9.0-pgdg/include/64/server -I/usr/postgres/9.0-pgdg/include/64/internal -I/usr/include/libxml2  -I/export/home/tmp/pg_build/proto-64/usr/include -I/usr/sfw/include  -c -o geography_inout.o geography_inout.c
cc: unrecognized option `-Xa'
cc: unrecognized option `-Xa'
cc: unrecognized option `-KPIC'
cc: language arch=generic64 not recognized
cc: geography_inout.c: linker input file unused because linking not done
/opt/studio11/SUNWspro/bin/cc -Xa -xO3 -xspace -Xa -xildoff -xCC -xarch=generic64 -KPIC -I/usr/local/include -I/usr/local//include -I/usr/include/libxml2 -I../liblwgeom -I. -I. -I/usr/postgres/9.0-pgdg/include/64/server -I/usr/postgres/9.0-pgdg/include/64/internal -I/usr/include/libxml2  -I/export/home/tmp/pg_build/proto-64/usr/include -I/usr/sfw/include  -c -o geography_gist.o geography_gist.c
cc: unrecognized option `-Xa'
cc: unrecognized option `-Xa'
cc: unrecognized option `-KPIC'
cc: language arch=generic64 not recognized
cc: geography_gist.c: linker input file unused because linking not done
/opt/studio11/SUNWspro/bin/cc -Xa -xO3 -xspace -Xa -xildoff -xCC -xarch=generic64 -KPIC -I/usr/local/include -I/usr/local//include -I/usr/include/libxml2 -I../liblwgeom -I. -I. -I/usr/postgres/9.0-pgdg/include/64/server -I/usr/postgres/9.0-pgdg/include/64/internal -I/usr/include/libxml2  -I/export/home/tmp/pg_build/proto-64/usr/include -I/usr/sfw/include  -c -o geography_btree.o geography_btree.c
cc: unrecognized option `-Xa'
cc: unrecognized option `-Xa'
cc: unrecognized option `-KPIC'
cc: language arch=generic64 not recognized
cc: geography_btree.c: linker input file unused because linking not done
/opt/studio11/SUNWspro/bin/cc -Xa -xO3 -xspace -Xa -xildoff -xCC -xarch=generic64 -KPIC -I/usr/local/include -I/usr/local//include -I/usr/include/libxml2 -I../liblwgeom -I. -I. -I/usr/postgres/9.0-pgdg/include/64/server -I/usr/postgres/9.0-pgdg/include/64/internal -I/usr/include/libxml2  -I/export/home/tmp/pg_build/proto-64/usr/include -I/usr/sfw/include  -c -o geography_estimate.o geography_estimate.c
cc: unrecognized option `-Xa'
cc: unrecognized option `-Xa'
cc: unrecognized option `-KPIC'
cc: language arch=generic64 not recognized
cc: geography_estimate.c: linker input file unused because linking not done
/opt/studio11/SUNWspro/bin/cc -Xa -xO3 -xspace -Xa -xildoff -xCC -xarch=generic64 -KPIC -I/usr/local/include -I/usr/local//include -I/usr/include/libxml2 -I../liblwgeom -I. -I. -I/usr/postgres/9.0-pgdg/include/64/server -I/usr/postgres/9.0-pgdg/include/64/internal -I/usr/include/libxml2  -I/export/home/tmp/pg_build/proto-64/usr/include -I/usr/sfw/include  -c -o geography_measurement.o geography_measurement.c
cc: unrecognized option `-Xa'
cc: unrecognized option `-Xa'
cc: unrecognized option `-KPIC'
cc: language arch=generic64 not recognized
cc: geography_measurement.c: linker input file unused because linking not done
/opt/studio11/SUNWspro/bin/cc -Xa -xO3 -xspace -Xa -xildoff -xCC -xarch=generic64 -KPIC -G -o postgis-1.5.so lwgeom_pg.o lwgeom_debug.o lwgeom_accum.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_inout.o lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o lwgeom_chip.o lwgeom_geos.o lwgeom_geos_prepared.o lwgeom_export.o lwgeom_svg.o lwgeom_gml.o lwgeom_kml.o lwgeom_geojson.o lwgeom_in_gml.o lwgeom_in_kml.o lwgeom_triggers.o lwgeom_dump.o lwgeom_functions_lrs.o long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o geography_inout.o geography_gist.o geography_btree.o geography_estimate.o geography_measurement.o  -L/usr/postgres/9.0-pgdg/lib/64 -L/usr/lib  -L/export/home/tmp/pg_build/proto-64/usr/lib/64 -L/usr/sfw/lib/64 -Wl,-R'/usr/postgres/9.0-pgdg/lib/64'  -L/usr/local/lib -L/usr/local//lib -lgeos_c -lproj -L/usr/lib -R/usr/lib -lxml2 -lz -lpthread -lm -lsocket -lnsl ../liblwgeom/liblwgeom.a
cc: lwgeom_pg.o: No such file or directory
cc: lwgeom_debug.o: No such file or directory
cc: lwgeom_accum.o: No such file or directory
cc: lwgeom_spheroid.o: No such file or directory
cc: lwgeom_ogc.o: No such file or directory
cc: lwgeom_functions_analytic.o: No such file or directory
cc: lwgeom_inout.o: No such file or directory
cc: lwgeom_estimate.o: No such file or directory
cc: lwgeom_functions_basic.o: No such file or directory
cc: lwgeom_gist.o: No such file or directory
cc: lwgeom_btree.o: No such file or directory
cc: lwgeom_transform.o: No such file or directory
cc: lwgeom_box.o: No such file or directory
cc: lwgeom_box3d.o: No such file or directory
cc: lwgeom_box2dfloat4.o: No such file or directory
cc: lwgeom_chip.o: No such file or directory
cc: lwgeom_geos.o: No such file or directory
cc: lwgeom_geos_prepared.o: No such file or directory
cc: lwgeom_export.o: No such file or directory
cc: lwgeom_svg.o: No such file or directory
cc: lwgeom_gml.o: No such file or directory
cc: lwgeom_kml.o: No such file or directory
cc: lwgeom_geojson.o: No such file or directory
cc: lwgeom_in_gml.o: No such file or directory
cc: lwgeom_in_kml.o: No such file or directory
cc: lwgeom_triggers.o: No such file or directory
cc: lwgeom_dump.o: No such file or directory
cc: lwgeom_functions_lrs.o: No such file or directory
cc: long_xact.o: No such file or directory
cc: lwgeom_sqlmm.o: No such file or directory
cc: lwgeom_rtree.o: No such file or directory
cc: geography_inout.o: No such file or directory
cc: geography_gist.o: No such file or directory
cc: geography_btree.o: No such file or directory
cc: geography_estimate.o: No such file or directory
cc: geography_measurement.o: No such file or directory
cc: unrecognized option `-Xa'
cc: unrecognized option `-Xa'
cc: unrecognized option `-KPIC'
cc: language arch=generic64 not recognized
gmake[1]: *** [postgis-1.5.so] Error 1
gmake[1]: Leaving directory `/tmp/postgis-1.5.2/postgis'
gmake: *** [postgis] Error 2
-----Original Message-----
From: Jorge Arévalo [mailto:jorge.arevalo at deimos-space.com] 
Sent: 23 March 2011 16:23
To: Vinicius Carvalho
Subject: Re: [postgis-users] Building on Solaris 10 x86

2011/3/23 Vinicius Carvalho <vinicius.carvalho at ericsson.com>:
> No it doesn't. My gcc is not located there, it's on /usr/sfw/bin/gcc.
>
> Exporting does not work. I wonder, why is it trying to get my c compiler from such location where my gcc is in another location. I re-configured it with the export CC option, and even that way it still compains about the directory.
> What is akward is that during the configure phase it tests the gcc on the correct location.
>
> BR
>

Try with whereis cc, or which cc. Then, create a symlink to the real gcc path in  /opt/studio11/SUNWspro/bin/cc

ln -s  /path/to/gcc /opt/studio11/SUNWspro/bin/cc


> -----Original Message-----
> From: Jorge Arévalo [mailto:jorge.arevalo at deimos-space.com]
> Sent: 23 March 2011 16:08
> To: Vinicius Carvalho
> Subject: Re: [postgis-users] Building on Solaris 10 x86
>
> 2011/3/23 Vinicius Carvalho <vinicius.carvalho at ericsson.com>:
>> Don't think so, I was able to compile other packages. Besides there's a gcc as compiler info on the configure options.
>>
>
> Does the path /opt/studio11/SUNWspro/bin/cc exist?
>
> I'm not a Solaris user, but in Ubuntu this worked for me:
>
> export CC=/path/to/gcc
>
>
>>
>> -----Original Message-----
>> From: Jorge Arévalo [mailto:jorge.arevalo at deimos-space.com]
>> Sent: 23 March 2011 14:58
>> To: PostGIS Users Discussion
>> Cc: Vinicius Carvalho
>> Subject: Re: [postgis-users] Building on Solaris 10 x86
>>
>> On Wed, Mar 23, 2011 at 3:49 PM, Vinicius Carvalho <vinicius.carvalho at ericsson.com> wrote:
>>> Hi there! I'm trying to install Postgis on a solaris box with x86 arch.
>>>
>>> I managed (after some help from the guys from Proj4) to get Proj4 
>>> and geos compiled and installed on my box. I have a postgres 9.0.3 installed as well.
>>>
>>> So here's what I've done:
>>>
>>> ./configure --with-pgconfig=/usr/postgres/9.0-pgdg/bin/64/pg_config
>>> --with-geosconfig=/usr/local/bin/geos-config
>>> --with-projdir=/usr/local/
>>>
>>> The output:
>>>
>>> PostGIS is now configured for i386-pc-solaris2.10
>>>
>>> -------------- Compiler Info -------------
>>>   C compiler:           gcc -g -O2
>>>   C++ compiler:         g++ -g -O2
>>>
>>> -------------- Dependencies --------------
>>>   GEOS config:          /usr/local/bin/geos-config
>>>   GEOS version:         3.2.2
>>>   PostgreSQL config:    /usr/postgres/9.0-pgdg/bin/64/pg_config
>>>   PostgreSQL version:   PostgreSQL 9.0.3
>>>   PROJ4 version:        47
>>>   Libxml2 config:       /usr/bin/xml2-config
>>>   Libxml2 version:      2.6.23
>>>   PostGIS debug level:  0
>>>
>>> -------- Documentation Generation --------
>>>   xsltproc:             /usr/bin/xsltproc
>>>   xsl style sheets:     /usr/share/sgml/docbook/xsl-stylesheets
>>>   dblatex:
>>>   convert:              /usr/sfw/bin/convert
>>>
>>> So I run gmake, but get this error:
>>>
>>> #: gmake
>>> gmake -C liblwgeom
>>> gmake[1]: Entering directory `/tmp/postgis-1.5.2/liblwgeom'
>>> gmake[1]: Nothing to be done for `all'.
>>> gmake[1]: Leaving directory `/tmp/postgis-1.5.2/liblwgeom'
>>> gmake -C postgis
>>> gmake[1]: Entering directory `/tmp/postgis-1.5.2/postgis'
>>> /opt/studio11/SUNWspro/bin/cc -Xa -E -traditional-cpp 
>>> postgis.sql.in.c
>>> | grep -v '^#' > postgis.sql.in
>>> /bin/sh: /opt/studio11/SUNWspro/bin/cc: not found
>>> gmake[1]: *** [postgis.sql.in] Error 1
>>> gmake[1]: *** Deleting file `postgis.sql.in'
>>> gmake[1]: Leaving directory `/tmp/postgis-1.5.2/postgis'
>>> gmake: *** [postgis] Error 2
>>>
>>> I'm pretty new to solaris (first time trying to build and compile 
>>> packages), anyone has an idea on how to get this running?
>>>
>>> Regards
>>>
>>>
>>>
>>> VINICIUS CARVALHO
>>> "Creative doing beats creative thinking"
>>> Athlone, Westmeath
>>> Phone 090 64 38579
>>> Mobile 087 298 1434
>>> vinicius.carvalho at ericsson.com
>>> www.ericsson.com
>>>
>>> http://www.ericsson.com/
>>> This Communication is Confidential. We only send and receive email 
>>> on the basis of the terms set out at 
>>> www.ericsson.com/email_disclaimer
>>>
>>>
>>> _______________________________________________
>>> postgis-users mailing list
>>> postgis-users at postgis.refractions.net
>>> http://postgis.refractions.net/mailman/listinfo/postgis-users
>>>
>>>
>>
>> Looks like you don't have the C compiler installed. You may try this:
>> http://frankmash.blogspot.com/2006/08/installing-gcc-compiler-on-sola
>> r
>> is-10.html
>>
>> --
>> Jorge Arévalo
>> Internet & Mobilty Division, DEIMOS
>> jorge.arevalo at deimos-space.com
>> http://es.linkedin.com/in/jorgearevalo80
>> http://mobility.grupodeimos.com/
>> http://gis4free.wordpress.com
>> http://geohash.org/ezjqgrgzz0g
>>
>
>
>
> --
> Jorge Arévalo
> Internet & Mobilty Division, DEIMOS
> jorge.arevalo at deimos-space.com
> http://es.linkedin.com/in/jorgearevalo80
> http://mobility.grupodeimos.com/
> http://gis4free.wordpress.com
> http://geohash.org/ezjqgrgzz0g
>



--
Jorge Arévalo
Internet & Mobilty Division, DEIMOS
jorge.arevalo at deimos-space.com
http://es.linkedin.com/in/jorgearevalo80
http://mobility.grupodeimos.com/
http://gis4free.wordpress.com
http://geohash.org/ezjqgrgzz0g



More information about the postgis-users mailing list