[postgis-users] problem install postgis in FreeBSD

Craig Miller craig at millerfam.net
Fri Sep 26 17:58:13 PDT 2003


I think you skipped step 2.  Please cvsup your ports tree and try again.

--Craig

<quote who="Ricardo Javier Aranibar León">
> Hi Craig,
>  
> I recive your message and I don't find the source of postgresql, I
> installed Postgresql from CD ports then this lines don't function  
> #  gmake
> PGSQL_SRC=/usr/ports/databases/postgresql7/work/postgresql-7.3.4# 
> gmake
> PGSQL_SRC=/usr/ports/databases/postgresql7/work/postgresql-7.3.4install
> and when I run only gmake I have this message:
> Makefile:27:../../src/Makefile.global:No such file or directory
> Makefile:111:/src/Makefile.shlib:no such file or directory
> gmake: *** No rule to make target '/src/Makefile.shlib' stop
>  
>  
> I have FreeBSD4.8, postgresql-7.3.2 for example I can installed without
> problem the proj4  
> Regards,
> Ricardo
>  
>  
> //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> Craig wrote
> Here are some notes I took last week.Install FreeBSD 4.8cvsup the ports
> collectionDo the following as root  E.g.$ su -Password: 
> <enter your password># cd /rootInstall postgresqlcd
> /usr/ports/databases/postgresql7makemake installInstall proj4cd
> /rootfetch ftp://ftp.remotesensing.org/pub/proj/proj-4.4.7.tar.gzgzip
> -dc proj-4.4.7.tar.gz | tar xvf -cd proj-4.4.7./configuremakemake
> installInstall postgis#  cd /root#  fetch
> http://postgis.refractions.net/postgis-0.7.5.tar.gz#  gzip -dc
> postgis-0.7.5.tar.gz | tar xvf -#  cd postgis-0.7.5#  vi
> Makefile/USE_PROJ=0:s/USE_PROJ=0/USE_PROJ=1/:wq#  gmake
> PGSQL_SRC=/usr/ports/databases/postgresql7!
> /work/postgresql-7.3.4#  gmake
> PGSQL_SRC=/usr/ports/databases/postgresql7/work/postgresql-7.3.4installInitialize
> PostgreSQL# cd /usr/local/share/postgresql# su -l pgsql -c "initdb -E
> UNICODE"# /usr/local/etc/rc.d/010.pgsql.sh startEnable remote accessedit
> ~pgsql/data/postgresql.confuncomment tcpip=false, and change it to
> tcpip=trueedit ~pgsql/data/pg_hba.conf and add an entry to trust the
> host you wantto connect from.# su -l pgsql pg_ctl restartRead a few docs
> -- get familiarFor postmaster settings, see
> /usr/local/pgsql/data/postgresql.confFor more tips, read
> /usr/local/pgsql/post-install-notesFor complete PostgreSQL docs, look in
> /usr/local/share/postgresqlFor PostGIS docs, look in
> /usr/local/share/postgresql/contribPlay with itCreate your database# cd
> /usr/local/share/postgresql/contrib# su -l pgsql -c "createdb -E UNICODE
> <yourtestdatabase>"Add plpgsq! l support# su -l pgsql -c
> "createlang plpgsql <yourtestdatabase>"Add all the postgis
> extensions, and create the postgis tables (e.g.spatial ref sys.# su -l
> pgsql -c "psql -d <yourtestdatabase>
> -f/usr/local/share/postgresql/contrib/postgis.sql"Populate the Spatial
> Ref System tables.# su -l pgsql -c "psql -d <yourtestdatabase>
> -f/usr/local/share/postgresql/contrib/spatial_ref_sys.sql"¿Estás
> buscando un auto nuevo?  Haz clic aquí...


-- 
Craig Miller
craig at millerfam.net





More information about the postgis-users mailing list