=== 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
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
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
make install
Cheers,
- Sudhaker
Thanks! Now my mongrel2 is running on a CentOs.