Need help in installing and configuring mapserver for oracle support
Silke Reimer
Silke.Reimer at INTEVATION.DE
Wed Aug 24 00:48:42 PDT 2005
Hi Aniruddha,
On Wed, Aug 24, 2005 at 10:04:51AM +0530, Aniruddha S. Khadkikar wrote:
> Hi all.
> I am new to the installation of Mapserver with Oracle Spatial support. I
> have downloaded the Oracle related binaries (for Oracle 9.2). Could
> anyone please give me a guide to configuring and installing Mapserver? I
> want to document the process step by step and create a guide for future
> reference.
I once wrote a Specfile for the mapserver for my own needs. I didn't
publish it since it is very difficult to create a general
RPM-package which is helpful in different environments. I know
attached it to this email and I hope it helps.
In general, a SPEC-files contains all commands that are necessary to
build the software in differenct sections (prep, build and install).
Perhaps this SPEC-file helps you to figure out the right steps.
Of course you need to have Oracle installed and set ORACLE_HOME to
the right value. The main configuration of the UMN MapServer is done
by
./configure --with-proj --with-gd=static,./gd-2.0.15 --with-gdal --with-wmsclient --with-oraclespatial
(line 49 of specfile). Depending on your system you probably don't
need to define --with-gd and depending on your needs you don't need
--with-wmsclient or --with-gdal
Furthermore I needed python mapscript. This is why I depend on
python when building the package. You won't need that.
Another remark: There have been several improvements and bugfixes to
the Oracle driver from version 4.4 to 4.6 of UMN MapServer. So I
would suggest to use the newest version.
BTW: I am referreing to installation on a GNU/Linux system. Of
course this has to be done in a different way on other systems (like
Window).
Many greetings,
Silke
BTW: If anybody thinks that this is useful you can of course add the
specfile to CVS, perhaps with changed configure-options and an
updated version number of the UMN MapServer.
--
Intevation GmbH
Georgstrasse 4 49074 Osnabrück, Germany
http://intevation.de http://intevation.de/~silke
FreeGIS.org http://freegis.org/
-------------- next part --------------
%define PACKAGE_NAME mapserver
%define PACKAGE_VERSION 4.4.2
%define mapserv_version 4.4.2
%define PACKAGE_URL http://mapserver.gis.umn.edu/index.html
%define _cgidir /var/www/cgi-bin
%define _libdir /usr/lib/
%define release 3.rh30.intevation
Summary: The MapServer is a system for developing web-based GIS applications.
Name: %PACKAGE_NAME
Version: %PACKAGE_VERSION
Release: %{release}
Source0: %{name}-%{version}.tar.gz
Source1: gd-2.0.15.tar.gz
Patch0: patch_gd2.0.15_gif_030801.gz
Copyright: Free Software; Copyright (c) 1996-1999 Regents of the University of Minnesota.
Group: Applications/GIS
Vendor: Intevation GmbH <http://intevation.net>
BuildRoot: %{_builddir}/%{name}-root
Prefix: %{_prefix}
BuildRequires: gdal-devel proj-devel shapelib-devel curl-devel python
Requires: gdal proj shapelib curl
%description
The basic system consists of a CGI program that can be configured to
respond to a variety of spatial requests like making maps, scalebars,
and point, area and feature queries. Virtually all aspects of an
application, from web interface to map appearance can be developed
without any programming. For the more ambitious user, MapServer
applications can be enhanced using Java, JavaScript or many other web
technologies. MapServer is distributed with MapScript a Perl module
that provides access to the basic MapServer C API and allows developers
to add mapping functions to their Perl scripts. In addition, MapScript
provides a basic interface for reading/writing ESRI shapefiles.
This package includes also a demo for the MapServer (named 'itasca')
and a mini httpd for an offline demonstration.
%prep
%setup -D -a 1 -n %{name}-%{mapserv_version}
cd gd-2.0.15
cat %{_sourcedir}/patch_gd2.0.15_gif_030801.gz | gzip -d | patch -p1
./configure
make
cd ..
cd %{_builddir}/%{name}-%{mapserv_version}
./configure --with-proj --with-gd=static,./gd-2.0.15 --with-gdal --with-ogr --with-wmsclient --with-oraclespatial
%build
# build mapserver
make
# build python mapscript
(cd mapscript/python; python2 setup.py build)
%install
rm -rf %{buildroot}
install -d %{buildroot}/%{_cgidir}
cp mapserv %{buildroot}/%{_cgidir}
install -d %{buildroot}/%{_bindir}
cp shp2img legend mapserv shptree scalebar sortshp tile4ms %{buildroot}/%{_bindir}
(cd mapscript/python; python2 setup.py install --root %{buildroot} ;)
%clean
rm -rf %{_builddir}/%{name}-%{mapserv_version}
rm -rf %{_builddir}/gd-2.0.15
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_cgidir}/*
%{_bindir}/*
%{_libdir}/python2.2/site-packages/*
%doc README
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050824/3dae9f73/attachment.sig>
More information about the MapServer-users
mailing list