This chapter describes how to build Mellon module in Ubuntu 12.
- Install Apache Sever
If you have not got Apache server installed, use the command below to install it:
sudo apt-get install apache2 - Install Build Package
The Mellon source code is written in C++. To compile C/C++ programs using gcc you must have the build-essential package installed. The build-essential package contains gcc and all the headers that C/C++ need. To install build-essential, use the following command:
sudo apt-get install build-essential - Install Mellon Dependencies
Lasso: sudo apt-get install liblasso-dev
Apxs2: sudo apt-get install apache2-dev
Libcurl: sudo apt-get install libcurl4-openssl-dev - Download Mellon Source Code
The Mellon project is hosted at:
https://code.google.com/p/modmellon/
Use the command below to download it:
wget https://github.com/UNINETT/mod_auth_mellon/releases/download/v0.11.1/mod_auth_mellon-0.11.1.tar.gz
Unpack it to a project folder:
tar -xzvf mod_auth_mellon-0.7.0.tar.gz Compile Mellon Module
Type the command below to create the make file
./configure
Check the result. If there is any error then it is normally caused by the lack of it dependencies. Make sure that all of its dependencies have been installed.
If succeeded, then run make to compile the module
Make
Check the result and make sure that it has been successful.
Finally, install the module to the Apache server:
sudo make installLibraries have been installed in: /usr/lib/apache2/modules -rw-r--r-- 1 root root 267299 Oct 17 14:54 mod_auth_mellon.so The file name of the module is mod_auth_mellon.so and it is installed in the folder /usr/lib/apache/modules
You can copy the module to a production machine in the same folder.