Skip to main content

Posts

Showing posts with the label mogilefs

MogileFS with Postgres

First of all, you need Postgres version 8.2 or newer since mogdbsetup refuses to run with older versions. Anyways, I spent a quite a bit of time trying to install MogileFS with Postgres. I was getting "Can't create temporary test database:" errors. The answer was in the ~/.cpan/build/mogilefs-server-2.34/blib/lib/MogileFS/Test.pm file. The temp_store subroutine was defaulting to MySQL... Here is the setup step by step on my Fedora 12: yum install mogilefsd yum install mogstored yum install perl-CPAN // if needed yum install perl-MogileFS-Client perl-MogileFS-Utils yum install perl-DBD-Pg yum install perl-IO-AIO Setup services. chkconfig --levels 345 mogilefsd on chkconfig --levels 345 mogstored on Setup a test database to be used during compilation. $ createuser -SRlD mogile $ createdb -E UTF8 -O mogile tmp_mogiletest Setup environment variables for testing $ MOGTEST_DBUSER=mogile $ MOGTEST_DBHOST=dbhost $ MOGTEST_DBNAME=tmp_mogiletest $ MOG...