Raspberry PI + GlusterFS (Part 2)

IMPORTANT: When running through the steps in Part 2 I encounter errors. Thanks to Ashley commenting I've created Part 3. I've decided to leave Part 2 intact for anyone searching on errors etc.

Hopefully you've read Part 1 and understood what I'm trying to do and why.
Here's Part 2 attempting the install.
Part 3 Actually does the installation now.
Part 4 will cover the encryption and setup.

First things first, I (being naughty) use root far too much in testing, but do not recommend it all the way through on production servers.
So lets get into root
sudo su -
This should place you in root's home direcoty.

You can Skip down to get past errors I encountered, but it's possibly still worth reading the below which ended up not working.

Now we're going to grab gluster 3.5.0
wget http://download.gluster.org/pub/gluster/glusterfs/3.5/3.5.0/glusterfs-3.5.0.tar.gz
tar xzvf glusterfs-3.5.0.tar.gz
cd glusterfs-3.5.0/
DON'T do this step yet. At this point I jumped straight into a configure attempt
./configure
This threw errors that I'm missing flex or lex
configure: error: Flex or lex required to build glusterfs.

Clearly I'm going to need to install a few dependencies before going further
apt-get update
apt-get install make automake autoconf libtool flex bison pkg-config libssl-dev libxml2-dev python-dev libaio-dev libibverbs-dev librdmacm-dev libreadline-dev liblvm2-dev libglib2.0-dev pkg-config
I'm not sure if all these are needed, but after digging around that's the list that's used elsewhere.
Actually reading the INSTALL file says to start with ./autogen.sh so this time we will
./autogen.sh
This took about 5 mins, but didn't throw errors. Next onto
./configure
This eventually spits out
GlusterFS configure summary
===========================
FUSE client          : yes
Infiniband verbs     : yes
epoll IO multiplex   : yes
argp-standalone      : no
fusermount           : yes
readline             : yes
georeplication       : yes
Linux-AIO            : yes
Enable Debug         : no
systemtap            : no
Block Device xlator  : yes
glupy                : yes
Use syslog           : yes
XML output           : yes
QEMU Block formats   : yes
Encryption xlator    : yes
Now we can get on with the actually compiling
make
This threw a number of warnings for me
warning: function declaration isn't a prototype [-Wstrict-prototypes]
But didn't seem to be of great concern.
After about an hour it was ready to continue (I wrote Part 4 from memory while waiting).
We install with
make install
Here's where I'm getting an error.
../../py-compile: Missing argument to --destdir.
So it's on stop until I can figure out how to resolve it. one suggestion from version 3.4.x was to add the prefix path to the configure, but this didn't do anything for me.

Move on to Part 3

Labels: ,