Mercurial > mxd2map
annotate INSTALL_Linux.txt @ 356:1e0c7e134e7b tip
Update contact details
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 04 Jan 2021 15:52:40 +0100 |
parents | ab4e4c4b83c9 |
children |
rev | line source |
---|---|
346
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
1 ------------ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
2 Installation from Source |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
3 ------------ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
4 This Documentation describes how you can install MXD2Map from source on GNU/Linux Systems. |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
5 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
6 Download the Source tarball of mxd2map and extract it into a directory. |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
7 The Path used in this example is ~/mxd2map. |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
8 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
9 Requirements |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
10 ------------ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
11 To run the converter you need at least the following components: |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
12 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
13 * Sun Java6 SDK / JRE and ant |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
14 * ArcEngine10.x with a valid licence enabled |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
15 * Some additional Java Tools and libraries as documented below |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
16 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
17 Install ArcGIS SDK |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
18 ------------------ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
19 # As root: |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
20 # !!! Deactivate SELINUX !!! |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
21 # ArcGIS fails in many mysterious ways otherwise. |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
22 # write SELINUX=permissive into: /etc/sysconfig/selinux |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
23 setenforce Permissive |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
24 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
25 yum-install compat-libstdc++-33 compat-libstdc++-296 compat-libf2c compat-libgcc-296 \ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
26 compat-openldap-2.3 cairo compat-libf2c-34 mesa-libGLU compat-gcc-34 freeglut-2.4 gmp glibc gtk2 gtk2-devel \ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
27 libidn mesa-libGL mesa-libGLU openldap openmotif-devel openmotif openssl convmv |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
28 yum-groupinstall "Legacy Software Support" |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
29 yum-groupinstall "X Window System" |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
30 yum-groupinstall "Legacy Software Development" |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
31 yum-groupinstall "X Software Development" |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
32 yum-groupinstall "Development Tools" |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
33 useradd mxd2map |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
34 groupadd arcgis-users |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
35 usermod -a -G arcgis-users mxd2map |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
36 mkdir -p /usr/local/share/macrovision/storage |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
37 chmod g+w /usr/local/share/macrovision/storage |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
38 chgrp arcgis-users /usr/local/share/macrovision/storage |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
39 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
40 # Set passwd for user mxd2map and log in as that user |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
41 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
42 /mnt/ArcGIS-SDK/linux/EngineRT/Setup |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
43 # Click through the dialog leave everything as default |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
44 /mnt/ArcGIS-SDK/linux/ArcObjectsSDKJava/Setup |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
45 # Click through the dialog leave everything as default |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
46 # Register "ArcGIS Engine Runtime and ArcGIS Engine Developer Kit (Single Use)" |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
47 export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
48 . ~/arcgis/developerkit10.0/init_devkit.sh |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
49 . ~/arcgis/developerkit10.0/java/tools/setenv_ant.sh |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
50 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
51 Install additional libraries |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
52 ---------------------------- |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
53 cd ~/mxd2map |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
54 mkdir lib |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
55 ## Jargs |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
56 wget http://sourceforge.net/projects/jargs/files/jargs/1.0/jargs-1.0.tar.bz2/download -O - | \ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
57 tar -xj jargs.jar -O > jargs.jar |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
58 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
59 ## log4j |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
60 wget http://archive.apache.org/dist/logging/log4j/1.2.9/logging-log4j-1.2.9.tar.gz -O - | \ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
61 tar -xz log4j-1.2.9.jar -O > log4j.jar |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
62 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
63 ## Commons codec |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
64 wget http://apache.openmirror.de/commons/codec/binaries/commons-codec-1.7-bin.tar.gz -O - | \ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
65 tar -xz commons-codec-1.7.jar -O > commons-codec.jar |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
66 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
67 Install Mapserver from Source |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
68 ----------------------------- |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
69 This documentation is a log of the steps neccessary to |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
70 build mapserver 6.2.0-rc1 on CentOS 5. |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
71 You might just want to install a binary package for your distribution |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
72 For a real documentation please refer to: http://mapserver.org/installation/unix.html |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
73 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
74 # Everything is installed into ~/dev |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
75 # As root: |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
76 yum groupinstall "Development Tools" |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
77 yum install freetype-devel libpng-devel zlib-devel curl-devel libtiff-devel libjpeg-devel fontconfig-devel \ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
78 libXpm-devel libxml2-devel expat-devel sqlite-devel agg-devel giflib-devel libxslt-devel libexslt-devel httpd-devel |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
79 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
80 # As user: |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
81 # set up some convienance |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
82 export DEVELDIR=~/devel |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
83 export SRCDIR=$DEVELDIR/src |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
84 alias configure="./configure --prefix=$DEVELDIR" |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
85 function cs { |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
86 mkdir -p "$SRCDIR" |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
87 if test -n "$1"; then |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
88 cd "$SRCDIR/$1" |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
89 else |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
90 cd "$SRCDIR" |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
91 fi |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
92 } |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
93 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
94 cs |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
95 wget http://download.osgeo.org/proj/proj-4.8.0.tar.gz |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
96 tar -xf proj-4.8.0.tar.gz |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
97 cs proj-4.8.0 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
98 configure && make && make install |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
99 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
100 cs |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
101 wget https://bitbucket.org/pierrejoye/gd-libgd/get/GD_2_0_33.tar.bz2 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
102 tar -xf GD_2_0_33.tar.bz2 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
103 cs pierrejoye-gd-libgd-5551f61978e3/src |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
104 configure && make && make install |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
105 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
106 cs |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
107 wget http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.4.0.tar.gz |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
108 tar -xf libgeotiff-1.4.0.tar.gz |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
109 cd libgeotiff-1.4.0 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
110 configure --with-proj=$DEVELDIR && make && make install |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
111 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
112 cs |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
113 wget http://downloads.esri.com/Support/downloads/ao_/FileGDB_API_1_2-32.tar.gz |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
114 tar -xf FileGDB_API_1_2-32.tar.gz |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
115 cs -ri FileGDB_API/include FileGDB_API/lib $DEVELDIR |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
116 export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
117 . ~/arcgis/engine10.0/init_engine.sh |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
118 . ~/arcgis/engine10.0/java/tools/init_java.sh |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
119 . ~/arcgis/developerkit10.0/java/tools/setenv_ant.sh |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
120 . ~/arcgis/developerkit10.0/init_devkit.sh |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
121 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
122 cs |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
123 wget http://download.osgeo.org/gdal/gdal-1.9.2.tar.gz |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
124 tar -xf gdal-1.9.2.tar.gz |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
125 cs gdal-1.9.2 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
126 configure --enable-shared=no --enable-static=yes --with-fgdb=$DEVELDIR && make && make install |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
127 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
128 cs |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
129 wget http://download.osgeo.org/mapserver/mapserver-6.2.0-rc1.tar.gz |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
130 tar -xf mapserver-6.2.0-rc1.tar.gz |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
131 cs mapserver-6.2.0-rc1 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
132 configure -with-proj=$DEVELDIR --with-gd=$DEVELDIR \ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
133 --with-ogr=$DEVELDIR/bin/gdal-config \ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
134 --with-gdal=$DEVELDIR/bin/gdal-config \ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
135 --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-sos \ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
136 --with-xml2-config=/usr/bin/xml2-config --with-apache-module \ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
137 --with-apxs=/usr/sbin/apxs --with-exslt=yes --with-xslt=yes |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
138 # in this specific version you also need to apply https://github.com/unicolet/mapserver/commit/8ac6841c4c4857acddd87bdb4dfafb729aea91c3 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
139 # when building on x86 systems |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
140 make && make install |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
141 cd mapscript/java |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
142 make && make install |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
143 cp mapscript.jar ~/mxd2map/lib |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
144 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
145 Build MXD2map |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
146 ------------- |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
147 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
148 cd ~/mxd2map |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
149 ant jar-norevision |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
150 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
151 Run MXD2map |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
152 ----------- |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
153 ArcGIS needs some weird environment settings. Additionally it provides it's own versions |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
154 of basic libraries like libstdc++. Here is what you have to do (or at least what worked for me): |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
155 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
156 export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
157 . ~/arcgis/engine10.0/init_engine.sh |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
158 . ~/arcgis/engine10.0/java/tools/init_java.sh |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
159 . ~/arcgis/developerkit10.0/java/tools/setenv_ant.sh |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
160 . ~/arcgis/developerkit10.0/init_devkit.sh |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
161 export LD_LIBRARY_PATH=$DEVELDIR/lib:$LD_LIBRARY_PATH |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
162 export LD_PRELOAD=$LD_PRELOAD:/usr/lib/libstdc++.so.6 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
163 export AWT_TOOLKIT=XToolkit |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
164 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
165 # Set the locale to some utf-8 value like |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
166 export LC_ALL=en_US.UTF-8 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
167 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
168 # Run it with: |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
169 LD_PRELOAD=$LD_PRELOAD:/usr/lib/libstdc++.so.6 java -Xss2m -jar mxd2map.jar |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
170 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
171 # Now edit the converter.properties sample so that it points to a valid mxd file |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
172 # together with a valid mapfile template. |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
173 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
174 # If your files contain special characters in windows encoding |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
175 # convert them with convmv: |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
176 convmv --notest -r -fcp1252 -t utf8 Bereisungen/ |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
177 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
178 Setup Mapserver with Apache |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
179 --------------------------- |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
180 vim /etc/httpd/conf/httpd.con |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
181 # Change setting Directory "/var/www/cgi-bin" |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
182 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
183 <Directory "/var/www/cgi-bin"> |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
184 AllowOverride None |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
185 Options ExecCGI |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
186 Order allow,deny |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
187 Allow from all |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
188 </Directory> |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
189 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
190 /etc/sysconfig/httpd |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
191 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
192 # Notes: |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
193 # Generate parameters to include all layers |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
194 export MAPNAME=ausbaustrecken_west && grep wms_title ${MAPNAME}.map | grep -v \"Layer\" | awk '{printf "&layers=" $2}' | sed s/\"//g | xargs -Ifoo echo "http://giid.polyhedra.intevation.de/cgi-bin/$MAPNAME.cgi?mode=browse&template=openlayers&foo" |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
195 |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
196 # Modify the fonts.txt with fonts according to your installation. |
ab4e4c4b83c9
Add Install_Linux.txt with all my notes from the installtion
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
197 sed -i 's/C:\/Windows\/Fonts/\/home\/aheinecke\/arcgis\/engine10.0\/fonts/' ttf-fonts/fonts.txt |