Compile Mongrel2 on CentOS 5.6

=== install build pre-rquisite ===

yum install e2fsprogs-devel.x86_64 -y

=== build zeromq ===

./configure --prefix=/opt/zeromq
make
make install

echo /opt/zeromq/lib > /etc/ld.so.conf.d/zeromq.conf
ldconfig

=== build mongrel2 ===

Add sqlite3 code (amalgamation version) into mongrel3 source directory

Then make following changes in given Makefile

## add these lines on top
OPTFLAGS=-I/opt/zeromq/include
OPTLIBS=-L/opt/zeromq/lib
## modify existing line as followings
#LIBS=-lzmq -ldl -lsqlite3 $(OPTLIBS)
LIBS=-lzmq -ldl $(OPTLIBS)
#PREFIX?=/usr/local
PREFIX=/opt/mongrel2

And build the mongrel2

make
make install

Cheers,
- Sudhaker

This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Compile Mongrel2 on CentOS 5.6

  1. Gustavo Chapim says:

    Thanks! Now my mongrel2 is running on a CentOs.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

What is 25 + 42 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)