Difference between revisions of "Building MapGuide on Fedora Core 6"

From OSGeo
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 10: Line 10:
  
 
=Install MapGuide Linux, Apache, Tomcat package=
 
=Install MapGuide Linux, Apache, Tomcat package=
Download mapguideaptinstaller-1.2.0rc2.tar.gz from http://mapguide.osgeo.org/download1.2.0.html.  
+
Download mapguideaptinstaller-1.2.0.tar.gz from http://mapguide.osgeo.org/download1.2.0.html.  
  
 
In a shell window execute the following commands in the directory where you downloaded the apt installer file:
 
In a shell window execute the following commands in the directory where you downloaded the apt installer file:
  
  tar zxf mapguideaptinstaller-1.2.0rc2.tar.gz
+
  tar zxf mapguideaptinstaller-1.2.0.tar.gz
 
  cd LinuxApt
 
  cd LinuxApt
 
  ./build_apt.sh
 
  ./build_apt.sh
  
 
+
=Install FDO 3.2=
''If you get an error about libgcrypt not found.  Try ONE of the following:''
 
 
 
''yum install libgcrypt-devel''
 
 
 
''or''
 
 
 
''go to http://rpm.pbone.net/index.php3?stat=3&search=libgcrypt-devel&srodzaj=3 and install the appropriate rpm for the correct distribution.''
 
 
 
''then''
 
 
 
''./build_apt.sh''
 
 
 
 
 
=Install FDO 3.3=
 
 
Details about the following can be found on the http://fdo.osgeo.org/.  And in the OpenSourceBuild__README.txt file that is checked out when subversion is used to get the fdocore trunk.
 
Details about the following can be found on the http://fdo.osgeo.org/.  And in the OpenSourceBuild__README.txt file that is checked out when subversion is used to get the fdocore trunk.
  
 
In a shell window execute the following commands:
 
In a shell window execute the following commands:
  
svn checkout http://svn.osgeo.org/fdo/trunk/ fdocore --username guest
+
svn checkout http://svn.osgeo.org/fdocore/branches/3.2.x/ fdocore
 +
 +
cd fdocore
 +
mkdir Providers
 +
cd Providers
 +
 +
svn checkout http://svn.osgeo.org/fdosdf/branches/3.2.x/Providers/SDF SDF
 +
svn checkout http://svn.osgeo.org/fdoshp/branches/3.2.x/Providers/SHP SHP
  
(Press Enter without password when asked for password)
 
  
cd fdocore
+
''Similarly for any other providers that you are interested in. Make sure to read the relevant section in the OpenSourceBuild__README.txt file for other providers.''
  
source ./setenvironment.sh
+
Other providers:
  
./build_thirdparty.sh
+
svn checkout http://svn.osgeo.org/fdogdal/branches/3.2.x/Providers/GDAL GDAL
 +
svn checkout http://svn.osgeo.org/fdordbms/branches/3.2.x/Providers/GenericRdbms GenericRdbms
 +
svn checkout http://svn.osgeo.org/fdoogr/branches/3.2.x/Providers/OGR OGR
 +
svn checkout http://svn.osgeo.org/fdowms/branches/3.2.x/Providers/WMS WMS
 +
svn checkout http://svn.osgeo.org/fdowfs/branches/3.2.x/Providers/WFS WFS
  
./build_linux.sh
+
 
 +
cd ..
 +
source ./setenvironment.sh
 +
./build_thirdparty.sh
 +
./build_linux.sh
  
 
=Install MapGuide=
 
=Install MapGuide=
Details about the following can be found in http://mapguide.osgeo.org/1.2/docs/BuildConfigureMgOpenSourceOnLinux/Index.html.).
+
Details about the following can be found in http://mapguide.osgeo.org/1.2/docs/BuildConfigureMgOpenSourceOnLinux/Index.html.
  
 
In a shell window execute the following commands:
 
In a shell window execute the following commands:
  
svn checkout http://svn.osgeo.org/mapguide/trunk/MgDev mapguide --username guest
+
svn checkout http://svn.osgeo.org/mapguide/trunk/MgDev mapguide
 
+
(Press Enter without password when asked for password)
+
cd mapguide
 
+
./build_oem.sh
cd mapguide
 
 
 
./build_oem.sh
 
  
  
 
''There is an error that will occur the first time this is run.  You will need to fix the Svc_Conf_l.cpp file using the following commands:''
 
''There is an error that will occur the first time this is run.  You will need to fix the Svc_Conf_l.cpp file using the following commands:''
  
''pushd Oem/ACE/ACE_wrappers/ace''
+
''pushd Oem/ACE/ACE_wrappers/ace''
 
+
''rm Svc_Conf_l.cpp''
''rm Svc_Conf_l.cpp''
+
''svn update''
 
+
''popd''
''svn update''
+
''./build_oem.sh''
 
 
''popd''
 
 
 
''./build_oem.sh''
 
 
 
  
 
''Also if you get an error building CppUnit.  Try the following:''
 
''Also if you get an error building CppUnit.  Try the following:''
  
''pushd Oem/CppUnit-1.9.14''
+
''pushd Oem/CppUnit-1.9.14''
 
+
''rm aclocal.m4''
''rm aclocal.m4''
+
''popd''
 
+
''./build_oem.sh''
''popd''
 
 
 
''./build_oem.sh''
 
 
 
 
 
  
aclocal
 
  
libtoolize --force
+
aclocal
 
+
libtoolize --force
automake --add-missing --copy
+
automake --add-missing --copy
 
+
autoconf
autoconf
+
./configure --enable-optimized
 
+
make
./configure --enable-optimized
+
make install
 
 
make
 
 
 
make install
 
  
 
=Run the MapGuide web tier and server=
 
=Run the MapGuide web tier and server=
Line 106: Line 88:
 
Execute the following commands in a shell window:
 
Execute the following commands in a shell window:
  
cd /usr/local/mapguideopensource/webtierextensions/apache2/bin
+
cd /usr/local/mapguideopensource/webtierextensions/apache2/bin
 
+
./httpd
./httpd
+
 
+
cd /usr/local/mapguideopensource/server/bin
cd /usr/local/mapguideopensource/server/bin
+
./mgserver.sh
 
 
./mgserver.sh
 
  
 
If you open up a browser, you should be able to open http://localhost:8008/mapguide/mapagent/index.html and see the server test web pages.
 
If you open up a browser, you should be able to open http://localhost:8008/mapguide/mapagent/index.html and see the server test web pages.

Latest revision as of 13:13, 18 June 2007

These instructions are for building and installing the latest MapGuide Open Source on Fedora Core 6. All of the following are done with root privileges.

Prerequisite software

Install the Java Development Kit: The JDK is available from http://java.sun.com/javase/downloads/index.jsp (the plain package is fine, no need for NetBeans or Java EE).

For Fedora Core 6, you need GCC 4.1.1. To check what version you have type gcc --version at the command line. GCC is available from http://gcc.gnu.org/.

Install subversion available from http://subversion.tigris.org/. For this, make sure to run "./configure --with-ssl" because the osgeo subversion vaults use https.

Install MapGuide Linux, Apache, Tomcat package

Download mapguideaptinstaller-1.2.0.tar.gz from http://mapguide.osgeo.org/download1.2.0.html.

In a shell window execute the following commands in the directory where you downloaded the apt installer file:

tar zxf mapguideaptinstaller-1.2.0.tar.gz
cd LinuxApt
./build_apt.sh

Install FDO 3.2

Details about the following can be found on the http://fdo.osgeo.org/. And in the OpenSourceBuild__README.txt file that is checked out when subversion is used to get the fdocore trunk.

In a shell window execute the following commands:

svn checkout http://svn.osgeo.org/fdocore/branches/3.2.x/ fdocore

cd fdocore
mkdir Providers
cd Providers

svn checkout http://svn.osgeo.org/fdosdf/branches/3.2.x/Providers/SDF SDF
svn checkout http://svn.osgeo.org/fdoshp/branches/3.2.x/Providers/SHP SHP


Similarly for any other providers that you are interested in. Make sure to read the relevant section in the OpenSourceBuild__README.txt file for other providers.

Other providers:

svn checkout http://svn.osgeo.org/fdogdal/branches/3.2.x/Providers/GDAL GDAL
svn checkout http://svn.osgeo.org/fdordbms/branches/3.2.x/Providers/GenericRdbms GenericRdbms
svn checkout http://svn.osgeo.org/fdoogr/branches/3.2.x/Providers/OGR OGR
svn checkout http://svn.osgeo.org/fdowms/branches/3.2.x/Providers/WMS WMS
svn checkout http://svn.osgeo.org/fdowfs/branches/3.2.x/Providers/WFS WFS


cd ..
source ./setenvironment.sh
./build_thirdparty.sh
./build_linux.sh

Install MapGuide

Details about the following can be found in http://mapguide.osgeo.org/1.2/docs/BuildConfigureMgOpenSourceOnLinux/Index.html.

In a shell window execute the following commands:

svn checkout http://svn.osgeo.org/mapguide/trunk/MgDev mapguide

cd mapguide
./build_oem.sh


There is an error that will occur the first time this is run. You will need to fix the Svc_Conf_l.cpp file using the following commands:

pushd Oem/ACE/ACE_wrappers/ace
rm Svc_Conf_l.cpp
svn update
popd
./build_oem.sh

Also if you get an error building CppUnit. Try the following:

pushd Oem/CppUnit-1.9.14
rm aclocal.m4
popd
./build_oem.sh


aclocal
libtoolize --force
automake --add-missing --copy
autoconf
./configure --enable-optimized
make
make install

Run the MapGuide web tier and server

Execute the following commands in a shell window:

cd /usr/local/mapguideopensource/webtierextensions/apache2/bin
./httpd

cd /usr/local/mapguideopensource/server/bin
./mgserver.sh

If you open up a browser, you should be able to open http://localhost:8008/mapguide/mapagent/index.html and see the server test web pages.

Recompile with latest updates

To update to the latest code for any of the components above change to the directory where "svn checkout ..." was run and run "svn update" (without any other arguments) instead. If any files were updated, deleted or added (subversion will output any changes to the screen) rerun the steps to build that component.