[postgis-users] Problem with Installation
Rubén Ruiz
rruiz at zer09ine.com
Thu Nov 24 06:50:03 PST 2005
Hi,
Try editing the PostGIS Makefile and set the correct path for your Proj lib
directory.
Good luck,
Rubén Ruiz.
-----Mensaje original-----
De: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] En nombre de Maik
Trömel
Enviado el: jueves, 24 de noviembre de 2005 14:17
Para: davidtecher at yahoo.fr; PostGIS Users Discussion
Asunto: Re: [postgis-users] Problem with Installation
Ok,
PostgreSQL runs now. It wasn't installed right.
Now I copied PostGIS....tar.gz to /contib and unpacked it.
As in the manual I tried:
maik at blubb:~/postgresql-7.4.7/contrib/postgis-1.0.0> make
make -C lwgeom
make[1]: Entering directory
`/home/maik/postgresql-7.4.7/contrib/postgis-1.0.0/lwgeom'
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -g -O2 -fexceptions -fPIC -DUSE_VERSION=74
-DPOSTGIS_LIB_VERSION='"1.0.0"' -DPOSTGIS_SCRIPTS_VERSION='"0.3.0"'
-DPOSTGIS_BUILD_DATE='"2005-11-24 13:07:24"' -I/usr/bin/../include
-DUSE_PROJ -I/usr/bin/../include -DAUTOCACHE_BBOX=1 -DUSE_STATS -fpic
-shared -Wl,-soname,liblwgeom.so.1 measures.o box2d.o ptarray.o
lwgeom_api.o lwgeom.o lwpoint.o lwline.o lwpoly.o lwmpoint.o lwmline.o
lwmpoly.o lwcollection.o wktunparse.o lwgparse.o wktparse.tab.o
lex.yy.o vsprintf.o liblwgeom.o lwgeom_pg.o lwgeom_debug.o
lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o
lwgeom_nojts.o lwgeom_inout.o lwgeom_estimate.o lwgeom_functions_basic.o
lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o stringBuffer.o
lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o lwgeom_chip.o
lwgeom_svg.o lwgeom_gml.o lwgeom_triggers.o lwgeom_dump.o
-L/home/maik/postgresql-7.4.7/contrib/postgis-1.0.0/../../src/port
-L/home/maik/postgresql-7.4.7/contrib/postgis-1.0.0/../../src/port
-L/usr/bin/../lib -lproj -Wl,-rpath,/usr/local/pgsql/lib -o
liblwgeom.so.1.0
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin
/ld:
skipping incompatible /usr/bin/../lib/libproj.so when searching for -lproj
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin
/ld:
skipping incompatible /usr/bin/../lib/libproj.a when searching for -lproj
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin
/ld:
skipping incompatible /usr/lib/libproj.so when searching for -lproj
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin
/ld:
skipping incompatible /usr/lib/libproj.a when searching for -lproj
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin
/ld:
cannot find -lproj
collect2: ld returned 1 exit status
make[1]: *** [liblwgeom.so.1.0] ERROR 1
make[1]: Leaving directory
`/home/maik/postgresql-7.4.7/contrib/postgis-1.0.0/lwgeom'
make: *** [liblwgeom] ERROR 2
....????
proj-4.4.9-1suse93 is installed. Is it the wrong version?
david techer wrote:
>Hi Maik,
>
>Diez is right!
>
>This is not the firs times for us receiving a such problem!
>
>It a typical/usual problem!
>
>First of all, U have to install PostgreSQL from sources by compiling it
>
>yourself.
>
>I think there are already rpm for postgis on Suse Linux...
>
>Better solution seems to include a example of compiling every tools in
PostGIS Wiki
>
>and in PostGIS doc (html and pdf) too. But a example of instructions which
means that
>
>you want to install postgresql,proj,geos and postgis for the FIRST
TIMES...not including
>
>that you want to upgrading or something else...that means that the user
have nothing already install on his computer.
>
>That's my point of view in order to avoiding each time for the community to
give a complete example
>
>of instructions installations:
>
>- INSTRUCTIONS FOR COMPILING FROM SOURCES FOR A FIRST TIMES!
>
>
>- INSTRUCTIONS FOR INSTALLING FOR DIFFERENT DISTRIBUTION: Suse, Fedora,
Debian ....
>
>What's other PostGISers think?
>
>#
># EXAMPLE INSTRUCTIONS FOR A FIRST INSTALLATION
># for PostgreSQL <= 8.X.X, PostGIS <= 1.0.X
>
>Ensure that U don't have a PostgreSQL Distrib already installed on your
computer
>
># PostgreSQL
>
>
>wget ftp://ftp.fr.postgresql.org/source/v8.0.3/postgresql-8.0.3.tar.gz
<ftp://ftp.fr.postgresql.org/source/v8.0.3/postgresql-8.0.3.tar.gz>
>
>tar xvzf postgresql-8.0.3.tar.gz
>
>cd postgresql-8.0.3
>
>./configure --prefix=/usr/local --with-CXX --enable-multibyte --enable-nls
[OTHERS OPTIONS YOU WANT]
>
>make;make install
>
># Geos
>
>wget http://geos.refractions.net/geos-2.1.4.tar.bz2
>
>tar xvjf geos-2.1.4.tar.bz2
>
>cd geos-2.1.4
>
>./configure && make && make install
>
># Proj
>
>wget ftp://ftp.remotesensing.org/proj/proj-4.4.9.tar.gz
>
>tar xvzf proj-4.4.9.tar.gz
>
>cd proj-4.4.9
>
>./configure && make && make install
>
>echo /usr/local/lib >> /etc/ld.so.conf
>
>ldconfig
>
># PostGIS
>
>cd ../postgresql-8.0.3/contrib
>
>wget http://postgis.refractions.net/download/postgis-1.0.4.tar.gz
>
>tar xzvf postgis-1.0.4.tar.gz
>
>cd postgis-1.0.4.tar.gz
>
>configure --enable-autoconf --with-geos=/usr/local/bin/geos-config \
>--with-proj=/usr/local
>
>make && make install
>
>--david;
>-------------------------------------------------
>Jean David TECHER
>e-mail: davidtecher(at)yahoo(dot)fr
>site: http://techer.pascal.free.fr/postgis/
>-------------------------------------------------
>
>
>Maik Trömel a écrit :
>
>>Hallo PostGis-Users,
>>
>>
>>i've got some Problems with the installation of PostGIS.
>>
>>
>>I'm running PostgreSQL 8.0.3 und Suse Linux.
>>
>>
>>The installation guide says:
>>
>>
>>Retrieve the PostGIS source archive from
>>http://postgis.refractions.net/postgis-1.0.4.tar.gz. Uncompress and
>>untar the archive in the "contrib" directory of the PostgreSQL source
tree.
>>
>>
>># cd [postgresql source tree]/contrib
>>
>>
>># gzip -d -c postgis-1.0.4.tar.gz | tar xvf
>>
>>
>>My problem:
>>
>>
>>I can't find the contrib-file.
>>
>>
>>Anybody knows some help?
>>
>>
>>
>>
>>Greetings
>>
>>
>>Maik
>>
>>
>>_______________________________________________
>>
>>
>>postgis-users mailing list
>>
>>
>>postgis-users at postgis.refractions.net
>>
>>
>>http://postgis.refractions.net/mailman/listinfo/postgis-users
>>
>>
>>
>>
>
___________________________________________________________________________
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo!
> Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
>
>------------------------------------------------------------------------
>
>_______________________________________________
>postgis-users mailing list
>postgis-users at postgis.refractions.net
>http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
More information about the postgis-users
mailing list