Friday, January 19, 2007

Log Instalasi MapServer

Posting ini merupakan bagian ke 5 dari 4 posting sebelumnya. Untuk instalasi tahap akhir mapserver, selain source mapserver juga diperlukan source gdal.
Kedua paker source tersebut bisa diambil di alamat berikut:
> mapserver: htttp://mis.gis.umn.edu
> gdal: http://www.gdal.org/

1. Ekstrak gdal
[root@localhost package_install_frsource]# tar -xvzf gdal-1.3.2.tar.tar
.
.
gdal-1.3.2/wince/msvc8_gdalce_lib_test/msvc8_gdalce_lib_test.vcproj
gdal-1.3.2/wince/msvc8_gdalce_lib_test/msvc8_gdalce_lib_test.sln
gdal-1.3.2/wince/msvc8_gdalce_lib_test/stdafx.h
gdal-1.3.2/wince/msvc8_gdalce_lib_test/msvc8_gdalce_lib_test.cpp
gdal-1.3.2/wince/msvc8_gdalce_lib_test/stdafx.cpp
[root@localhost package_install_frsource]#
[root@localhost package_install_frsource]# cd gdal-1.3.2

2. Konfigurasi gdal
[root@localhost gdal-1.3.2]# ./configure \
> --with-png \
> --with-libtiff \
> --with-jpeg \
> --with-gif \
> --with-pg=/usr/local/pgsql/bin/pg_config \
> --with-geos
.
.
OCI support: no
SDE support: no
DODS support: no
SQLite support: no
DWGdirect support no
PANORAMA GIS support: no
GEOS support: yes

Statically link PROJ.4: no

Traditional Python: yes
NG SWIG Bindings:

enable OGR building: yes

[root@localhost gdal-1.3.2]#

3. Compiling gdal
[root@localhost gdal-1.3.2]# make
.
.
core -I/usr/local/package_install_frsource/gdal-1.3.2/alg -I/usr/local/package_install_frsource/gdal-1.3.2/ogr -I/usr/local/package_install_frsource/gdal-1.3.2/ogr/ogrsf_frmts -I/usr/local/package_install_frsource/gdal-1.3.2/frmts -DOGR_ENABLED -I/usr/local/package_install_frsource/gdal-1.3.2/port -c gdal_rasterize.cpp -fPIC -DPIC -o .libs/gdal_rasterize.o
g++ -Wall -O2 -I/usr/local/package_install_frsource/gdal-1.3.2/port -I/usr/local/package_install_frsource/gdal-1.3.2/gcore -I/usr/local/package_install_frsource/gdal-1.3.2/alg -I/usr/local/package_install_frsource/gdal-1.3.2/ogr -I/usr/local/package_install_frsource/gdal-1.3.2/ogr/ogrsf_frmts -I/usr/local/package_install_frsource/gdal-1.3.2/frmts -DOGR_ENABLED -I/usr/local/package_install_frsource/gdal-1.3.2/port -c gdal_rasterize.cpp -o gdal_rasterize.o >/dev/null 2>&1
/bin/sh /usr/local/package_install_frsource/gdal-1.3.2/libtool --mode=link g++ gdal_rasterize.o /usr/local/package_install_frsource/gdal-1.3.2/libgdal.la -o gdal_rasterize
g++ gdal_rasterize.o -o .libs/gdal_rasterize /usr/local/package_install_frsource/gdal-1.3.2/.libs/libgdal.so -L/usr/local/lib -ljpeg -ltiff -lpng -L/usr/local/pgsql/lib -lpq -lz -lrt -ldl
creating gdal_rasterize
make[1]: Leaving directory `/usr/local/package_install_frsource/gdal-1.3.2/apps'

4. Instaling gdal
[root@localhost gdal-1.3.2]#make install
.
.
/usr/local/package_install_frsource/gdal-1.3.2/install-sh -c gdalimport.py /usr/local/bin/gdalimport.py
/usr/local/package_install_frsource/gdal-1.3.2/install-sh -c gdal_merge.py /usr/local/bin/gdal_merge.py
/usr/local/package_install_frsource/gdal-1.3.2/install-sh -c pct2rgb.py /usr/local/bin/pct2rgb.py
/usr/local/package_install_frsource/gdal-1.3.2/install-sh -c rgb2pct.py /usr/local/bin/rgb2pct.py
/usr/local/package_install_frsource/gdal-1.3.2/install-sh -c gcps2vec.py /usr/local/bin/gcps2vec.py
for f in gdal.py ogr.py osr.py gdalconst.py gdalnumeric.py ; do /usr/local/package_install_frsource/gdal-1.3.2/install-sh -c -m 0644 $f /usr/lib/python2.4/site-packages ; done
# ugh! spurius relinking leaves a file owned by root into .libs/.
rm -f .libs/*.soT
make[1]: Leaving directory `/usr/local/package_install_frsource/gdal-1.3.2/pymod'
for f in data/*.* ; do /usr/local/package_install_frsource/gdal-1.3.2/install-sh -c -m 0644 $f /usr/local/share/gdal ; done
/bin/sh /usr/local/package_install_frsource/gdal-1.3.2/libtool --mode=finish --silent /usr/local/lib

5. Ekstrak mapserver
[root@localhost gdal-1.3.2]#cd ..
[root@localhost package_install_frsource]#tar -xvzf mapserver-4.10.0.tar.gz

6. Konfigurasi mapserver
[root@localhost package_install_frsource]# cd mapserver-4.10.0
[root@localhost mapserver-4.10.0]# ./configure \
> --with-proj=/usr/local \
> --with-geos=/usr/local/bin/geos-config \
> --with-ogr=/usr/local/bin/gdal-config \
> --with-gdal=/usr/local/bin/gdal-config \
> --with-postgis=/usr/local/pgsql/bin/pg_config \
> --with-curl-config=/usr/bin/curl-config \
> --with-php=/usr/local/package_install_frsource/php-5.2.0
.
.
configure: checking whether we should enable debug features...
configure: checking for PHP/MapScript module options...
checking for g++ -shared ... yes
checking for location of config.h or php_config.h... /usr/local/package_install_frsource/php-5.2.0/main/php_config.h
checking whether we have PHP3 or PHP4... -DPHP4
checking whether we should use PHP's regex... yes
found regex_extra.h - building PHP MapScript with PHP's bundled regex
PHP/MapScript module configured.
checking if --enable-runpath requested... no
checking if --with-java-include-os-name specified... no, autodetected linux
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mapscript/php3/Makefile
config.status: creating mapscript/java/Makefile
config.status: creating mapscript/csharp/Makefile

7. Compiling mapserver
[root@localhost mapserver-4.10.0]#make
.
.
PFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/local/package_install_frsource/mapserver-4.10.0 -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/package_install_frsource/php-5.2.0 -I/usr/local/package_install_frsource/php-5.2.0/dl -I/usr/local/package_install_frsource/php-5.2.0/main -I/usr/local/package_install_frsource/php-5.2.0/Zend -I/usr/local/package_install_frsource/php-5.2.0/include -I/usr/local/package_install_frsource/php-5.2.0/TSRM -c -o php_regex.o php_regex.c
g++ -shared -o php_mapscript.so php_mapscript_util.o php_mapscript.o mapscript_i.o php_regex.o -L/usr/local/package_install_frsource_batulayang/mapserver-4.10.0 -lmap -L/usr/local/pgsql/lib -lpq -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos_c -L/usr/local/lib -lproj -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lc -lz -lm -lstdc++
make[1]: Leaving directory `/usr/local/package_install_frsource/mapserver-4.10.0/mapscript/php3'
[root@localhost mapserver-4.10.0]#

8. Pindahkah file-file berikut ke /usr/local/apache2/cgi-bin/.
[root@localhost mapserver-4.10.0]# cp shptree /usr/local/apache2/cgi-bin/.
[root@localhost mapserver-4.10.0]# cp shptreetst /usr/local/apache2/cgi-bin/.
[root@localhost mapserver-4.10.0]# cp shptreevis /usr/local/apache2/cgi-bin/.
[root@localhost mapserver-4.10.0]# cp sortshp /usr/local/apache2/cgi-bin/.

9. Test mapserver
[root@localhost mapserver-4.10.0]# /usr/local/apache2/cgi-bin/mapserv
/usr/local/apache2/cgi-bin/mapserv: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory
[root@localhost mapserver-4.10.0]# ldconfig
[root@localhost mapserver-4.10.0]# /usr/local/apache2/cgi-bin/mapserv
/usr/local/apache2/cgi-bin/mapserv: error while loading shared libraries: libpq.so.4: cannot open shared object file: No such file or directory
[root@localhost mapserver-4.10.0]# vi /etc/ld.so.conf
=====
note: edit ld.so.conf tambahkan "/usr/local/pgsql/lib"
=====
[root@localhost mapserver-4.10.0]# ldconfig
[root@localhost mapserver-4.10.0]# /usr/local/apache2/cgi-bin/mapserv
This script can only be used to decode form results and
should be initiated as a CGI process via a httpd server.
[root@localhost mapserver-4.10.0]#

1 comment:

Anonymous said...

[url=http://www.casino-online.gd]casino[/url], also known as accepted casinos or Internet casinos, are online versions of traditional ("crony and mortar") casinos. Online casinos sponsorship gamblers to display and wager on casino games assiduously the Internet.
Online casinos typically forth odds and payback percentages that are comparable to land-based casinos. Some online casinos maintain on higher payback percentages against link contraption games, and some stress on upon known payout behalf audits on their websites. Assuming that the online casino is using an aptly programmed unsystematic ungrudging generator, catalogue games like blackjack preoccupy an established congress edge. The payout cut up so-called with a view these games are established at within reach of the rules of the game.
Multitudinous online casinos flake gone away from or grip their software from companies like Microgaming, Realtime Gaming, Playtech, Worldwide Rude Technology and CryptoLogic Inc.