Difference between revisions of "Building MapGuide on Debian Sarge"
(copy/paste from ubuntu build + some differences) |
|||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Installing Mapguide Open Source on Debian Sarge == | == Installing Mapguide Open Source on Debian Sarge == | ||
+ | |||
+ | |||
+ | To date, THIS HAS NEVER BEEN WORKING. Please use another dist. | ||
This work is based on the other compilation guides. | This work is based on the other compilation guides. | ||
Line 6: | Line 9: | ||
'''Basic Setup''' | '''Basic Setup''' | ||
− | Install a basic | + | Install a basic Debian Sarge (the rest of this guide assumes no GUI and that you are not running as the root user) |
+ | |||
+ | Edit /etc/apt/sources.list to include sarge backports. (add this line :) | ||
− | + | deb http://www.backports.org/debian/ sarge-backports non-free | |
− | subversion | + | then : |
+ | |||
+ | apt-get update (as root) | ||
+ | |||
+ | Install the following packages: | ||
+ | |||
+ | apt-get install subversion gcc-3.4 g++-3.4 flex bison automake1.9 libjpeg62 libjpeg62-dev libtool zlib1g zlib1g-dev libxml2-dev make libcurl3 libcurl3-dev libxslt1.1 libxslt1-dev expat sun-java5-jdk libexpat1 libexpat1-dev doxygen | ||
'''FDO''' | '''FDO''' | ||
+ | cd ~ | ||
wget http://svn.osgeo.org/fdocore/branches/3.2.x/checkoutsvn.sh | wget http://svn.osgeo.org/fdocore/branches/3.2.x/checkoutsvn.sh | ||
− | + | Edit checkoutsvn.sh with the following: | |
− | FDO_SVN_USERNAME=guest | + | FDO_SVN_USERNAME=guest |
− | + | FDO_SVN_PASSWORD=guest | |
− | FDO_SVN_PASSWORD=guest | + | FDO_SVN_SOURCEDIR=branches/3.2.x |
− | |||
− | FDO_SVN_SOURCEDIR=branches/3.2.x | ||
+ | Then, | ||
mkdir fdosvn | mkdir fdosvn | ||
cd fdosvn | cd fdosvn | ||
− | + | bash ../checkoutsvn.sh | |
− | + | Permanently accept the certificates and then cancel the script (ctrl+c for each checkout) | |
+ | vim ../.subversion/config | ||
− | + | Edit config file with the following (either by commenting out or adding): | |
− | |||
− | |||
− | |||
in the [miscellany] section: | in the [miscellany] section: | ||
− | use-commit-times=yes | + | use-commit-times=yes |
− | + | enable-auto-props=yes | |
− | enable-auto-props=yes | ||
in the [auto-props] section: | in the [auto-props] section: | ||
Line 50: | Line 58: | ||
*.sh = svn:executable | *.sh = svn:executable | ||
+ | Then, always in the fdosvn dir : | ||
− | rm -rf | + | rm -rf * |
− | rm -rf | + | rm -rf .svn |
− | + | bash ../checkoutsvn.sh | |
− | |||
− | checkoutsvn.sh | ||
− | |||
cd /usr/local | cd /usr/local | ||
sudo mkdir fdo-3.2.0 | sudo mkdir fdo-3.2.0 | ||
sudo mkdir fdo-3.2.2 | sudo mkdir fdo-3.2.2 | ||
− | sudo chown (your user) fdo-3.2. | + | sudo chown (your user) fdo-3.2.* |
− | |||
+ | Then, | ||
cd ~/fdosvn | cd ~/fdosvn | ||
Line 74: | Line 80: | ||
cd | cd | ||
− | |||
− | |||
svn co http://svn.osgeo.org/mapguide/branches/1.2.x/MgDev | svn co http://svn.osgeo.org/mapguide/branches/1.2.x/MgDev | ||
− | |||
− | |||
− | |||
− | |||
− | |||
sudo mkdir /usr/local/mapguideopensource | sudo mkdir /usr/local/mapguideopensource | ||
sudo chown (your user) /usr/local/mapguideopensource | sudo chown (your user) /usr/local/mapguideopensource | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.10/ (or similar) | export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.10/ (or similar) | ||
− | cd / | + | cd ~/MgDev/Oem/LinuxApt |
− | + | Extract all the tar.gz files: | |
+ | find . -name "*.gz" -exec tar xvzf {} \; | ||
− | ./build_apt.sh | + | Then, |
+ | ./build_apt.sh >& ~/build_apt.log | ||
'''Build_oem''' | '''Build_oem''' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
./build_oem.sh | ./build_oem.sh | ||
− | + | It should fail here at building fcgi-2.4.0, and the following method did not help really: | |
− | + | Then, as root, install using apt: | |
− | |||
− | |||
− | + | apt-get install automake1.7 (but don't change symlinks or anything) | |
+ | update-alternatives --config automake (choose version 1.7) | ||
− | + | Then, | |
− | rm aclocal.m4 | + | |
− | + | cd ~/MgDev/Oem/fcgi/fcgi-2.4.0 | |
+ | rm -rf aclocal.m4 | ||
+ | aclocal | ||
+ | make | ||
− | + | Once this is done, restore automake 1.9 | |
+ | update-alternatives --config automake (choose version 1.9) | ||
− | ./ | + | Then, |
− | + | cd ~/MgDev/Oem | |
− | + | pushd ../BuildTools/WebTools/IMake | |
+ | mkdir -p Linux/obj/debug | ||
+ | make | ||
'''Build Mapguide''' | '''Build Mapguide''' | ||
− | |||
− | |||
− | |||
− | |||
− | sudo chown (your user) /usr/lib/python2. | + | sudo chown (your user) /usr/lib/python2.3 |
aclocal | aclocal | ||
− | libtoolize | + | libtoolize --force |
− | automake | + | automake --add-missing --copy |
autoconf | autoconf | ||
− | ./configure | + | ./configure --enable-optimized |
make | make | ||
make install | make install |
Latest revision as of 03:39, 9 November 2007
Installing Mapguide Open Source on Debian Sarge
To date, THIS HAS NEVER BEEN WORKING. Please use another dist.
This work is based on the other compilation guides.
Basic Setup
Install a basic Debian Sarge (the rest of this guide assumes no GUI and that you are not running as the root user)
Edit /etc/apt/sources.list to include sarge backports. (add this line :)
deb http://www.backports.org/debian/ sarge-backports non-free
then :
apt-get update (as root)
Install the following packages:
apt-get install subversion gcc-3.4 g++-3.4 flex bison automake1.9 libjpeg62 libjpeg62-dev libtool zlib1g zlib1g-dev libxml2-dev make libcurl3 libcurl3-dev libxslt1.1 libxslt1-dev expat sun-java5-jdk libexpat1 libexpat1-dev doxygen
FDO
cd ~ wget http://svn.osgeo.org/fdocore/branches/3.2.x/checkoutsvn.sh
Edit checkoutsvn.sh with the following:
FDO_SVN_USERNAME=guest FDO_SVN_PASSWORD=guest FDO_SVN_SOURCEDIR=branches/3.2.x
Then,
mkdir fdosvn cd fdosvn bash ../checkoutsvn.sh
Permanently accept the certificates and then cancel the script (ctrl+c for each checkout)
vim ../.subversion/config
Edit config file with the following (either by commenting out or adding):
in the [miscellany] section:
use-commit-times=yes enable-auto-props=yes
in the [auto-props] section:
*.* = svn:eol-style=native *.sh = svn:executable
Then, always in the fdosvn dir :
rm -rf * rm -rf .svn bash ../checkoutsvn.sh
cd /usr/local sudo mkdir fdo-3.2.0 sudo mkdir fdo-3.2.2 sudo chown (your user) fdo-3.2.*
Then,
cd ~/fdosvn source ./setenvironment.sh nohup ./build_thirdparty.sh >& buildthirdparty.log (if you want to log the build) nohup ./build_linux.sh >& buildlinux.log
Apache/Php
cd svn co http://svn.osgeo.org/mapguide/branches/1.2.x/MgDev sudo mkdir /usr/local/mapguideopensource sudo chown (your user) /usr/local/mapguideopensource
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.10/ (or similar)
cd ~/MgDev/Oem/LinuxApt
Extract all the tar.gz files:
find . -name "*.gz" -exec tar xvzf {} \;
Then,
./build_apt.sh >& ~/build_apt.log
Build_oem
./build_oem.sh
It should fail here at building fcgi-2.4.0, and the following method did not help really:
Then, as root, install using apt:
apt-get install automake1.7 (but don't change symlinks or anything) update-alternatives --config automake (choose version 1.7)
Then,
cd ~/MgDev/Oem/fcgi/fcgi-2.4.0 rm -rf aclocal.m4 aclocal make
Once this is done, restore automake 1.9
update-alternatives --config automake (choose version 1.9)
Then,
cd ~/MgDev/Oem pushd ../BuildTools/WebTools/IMake mkdir -p Linux/obj/debug make
Build Mapguide
sudo chown (your user) /usr/lib/python2.3 aclocal libtoolize --force automake --add-missing --copy autoconf ./configure --enable-optimized make make install
Problems?
Can't find webstudio?
cp -R /your/home/directory/mgdev/Web/Src/webstudio /usr/local/mapguideopensource/webserverextensions/www/webstudio