Installing nginx-gridfs on RHEL5

Now, installing on RHEL5. This took a while to work out!

cd ~/src
mkdir nginx_gridfs && cd nginx_gridfs
 
yum install scons boost boost-devel pcre pcre-devel
 
git clone git://github.com/mdirolf/nginx-gridfs.git  
wget http://sysoev.ru/nginx/nginx-0.7.62.tar.gz
tar -zxvf nginx-0.7.62.tar.gz
 
#note my mongo install path; different from on OSX
export MONGO_INCLUDE_PATH=/root/src/mongodb-linux-x86_64-1.0.0/include/mongo/
export LIBMONGOCLIENT=/root/src/mongodb-linux-x86_64-1.0.0/lib64/libmongoclient.a
export BOOST_INCLUDE_PATH=/usr/lib64/
export LIBBOOST_THREAD=/usr/lib64/libboost_thread.so
export LIBBOOST_FILESYSTEM=/usr/lib64/libboost_filesystem.so
 
cd nginx-0.7.62/
 
./configure --add-module=/root/src/nginx_gridfs/nginx-gridfs
make
make install

I’d like to point out that this install was by pure trial and error; a lot of trials, and a lot of errors, since I have no clue whatsoever about C++. The above Works For Me™ but is probably suboptimal and your mileage may vary.

update: it should be noted that this is very early version software; there are bugs and it’s probably not a production option yet. Great potential though, so check it out.

Tags: ,

6 Responses to “Installing nginx-gridfs on RHEL5”

  1. Wincent Colaiuta Says:

    You sure have a knack for using a bunch of incipient products that I’ve never heard of before!

  2. Sho Says:

    Ha! You’re right, but this is a good one, trust me. MongoDB is a really good product, and its filesystem solution goes well with it. Unlike MySQL et al, it’s actually fast and capable.

    The re-write of this blog which I’ve mentioned several times is based on MongoDB and GridFS so you’ll be seeing more of it : D and by the way, it’s awesome to have a single file to deal with rather than thousands.

  3. Wincent Colaiuta Says:

    Looking forward to seeing it.

  4. Sho Says:

    Not exactly ready for prime time yet unfortunately. I’ve been finding a few bugs with the module which make it unusable for now (only on linux, weirdly). Oh well, par for the course with this early adoption business.

  5. Tristen Says:

    Output is corrupt on linux (as noted in the github issues; I presume that is you) with no fix. Performance is fantastic but with corrupt out it’s kind of .. uh, useless?

    Here’s hoping the problems are fixed soon; it’s a very promising option …

  6. Sho Says:

    Tristen try my branch at which is working perfectly for me on RHEL5, and which I am now using in production on 3 sites.

Leave a Reply