Difference between revisions of "Building MapGuide on CentOS 5"

From OSGeo
Jump to navigation Jump to search
(start instructions for CentOS5)
 
(... still in progress ...)
Line 2: Line 2:
 
===User account===
 
===User account===
 
If you have just installed the OS, be sure to create a user account for yourself from root:
 
If you have just installed the OS, be sure to create a user account for yourself from root:
  adduser <username>
+
  adduser ''<username>''
  passwd <username>
+
  passwd ''<username>''
 
Add yourself to the sudoer list from root:
 
Add yourself to the sudoer list from root:
  visudo # (add your entry after root "<username> ALL=(ALL)  ALL", at about line 77)
+
  visudo
 +
Add your entry after root <code>"''<username>'' ALL=(ALL)  ALL"</code>, at about line 77. The program uses commands from <code>vi</code> or <code>vim</code>, so you need to insert text using <code>i</code>, then after inserting text, you need to hit the ESC key, then<code>:wq</code> (write, quit).
 
Logout of root, and log in as yourself.
 
Logout of root, and log in as yourself.
  
===System development tools and libraries==
+
===System development tools and libraries===
 
Install system development tools (as root via su):
 
Install system development tools (as root via su):
 
  yum install gcc*
 
  yum install gcc*
Line 14: Line 15:
  
 
===Sun Java===
 
===Sun Java===
A Sun Java Development Kit is required.  The plain package is fine, no need for NetBeans or Java EE. You can download the JDK from http://java.sun.com/javase/downloads/index.jsp. Detailed installation instructions are found at http://wiki.centos.org/HowTos/JavaOnCentOS (follow the instructions for "Sun JDK 1.6").
+
A Sun Java Development Kit is required.  The plain package is fine, no need for NetBeans or Java EE. You can download the JDK from http://java.sun.com/javase/downloads/index.jsp. Detailed installation instructions can be found at http://wiki.centos.org/HowTos/JavaOnCentOS (follow the instructions for "Sun JDK 1.6").
 +
 
 +
Check <code>java -version<code> and should see "Java(TM)" somewhere in the output.
 +
 
 +
===Optional: PostgreSQL and PostGIS===
 +
Current versions of PostgreSQL are maintained at http://yum.pgsqlrpms.org/. An overview for beginners can be found here: http://www.postgresonline.com/journal/index.php?/archives/45-An-Almost-Idiots-Guide-to-PostgreSQL-YUM.html
 +
 
 +
To use the repository, first block all others by editing the repos file. As root, edit the file (e.g.):
 +
vim /etc/yum.repos.d/CentOS-Base.repo</code>
 +
add to the bottom of the file:
 +
exclude=postgresql*
 +
 
 +
Choose a version of PostgreSQL from http://yum.pgsqlrpms.org/reporpms/repoview/pgdg-centos.html, the current version 8.3.x is recommended
  
 
==Download source==
 
==Download source==

Revision as of 17:14, 6 October 2008

Prerequisite

User account

If you have just installed the OS, be sure to create a user account for yourself from root:

adduser <username>
passwd <username>

Add yourself to the sudoer list from root:

visudo

Add your entry after root "<username> ALL=(ALL) ALL", at about line 77. The program uses commands from vi or vim, so you need to insert text using i, then after inserting text, you need to hit the ESC key, then:wq (write, quit). Logout of root, and log in as yourself.

System development tools and libraries

Install system development tools (as root via su):

yum install gcc*
yum install subversion* expat* libtool* automake* bison* flex doxygen libjpeg-devel libpng libpng-devel

Sun Java

A Sun Java Development Kit is required. The plain package is fine, no need for NetBeans or Java EE. You can download the JDK from http://java.sun.com/javase/downloads/index.jsp. Detailed installation instructions can be found at http://wiki.centos.org/HowTos/JavaOnCentOS (follow the instructions for "Sun JDK 1.6").

Check java -version and should see "Java(TM)" somewhere in the output.

Optional: PostgreSQL and PostGIS

Current versions of PostgreSQL are maintained at http://yum.pgsqlrpms.org/. An overview for beginners can be found here: http://www.postgresonline.com/journal/index.php?/archives/45-An-Almost-Idiots-Guide-to-PostgreSQL-YUM.html

To use the repository, first block all others by editing the repos file. As root, edit the file (e.g.):

vim /etc/yum.repos.d/CentOS-Base.repo

add to the bottom of the file:

exclude=postgresql*

Choose a version of PostgreSQL from http://yum.pgsqlrpms.org/reporpms/repoview/pgdg-centos.html, the current version 8.3.x is recommended

Download source

Download the source code for FDO-3.3.1 and MapGuide-2.0.2:

svn checkout http://svn.osgeo.org/fdo/tags/3.3.1/ fdo-3.3.1
svn checkout http://svn.osgeo.org/mapguide/tags/MAPGUIDE2.0.2/ mapguide-2.0.2