[Gluster-users] Unable to compile GlusterFS 3.5 on Raspbian (RaspberryPi)

Prof. Dr. Christian Baun christianbaun at gmail.com
Sun Jun 22 21:53:42 UTC 2014


This is a workaround:

make install -- DESTDIR=/

This way the installation works.

BTW: Some tests with dd show that the write performance for blocks of
GlusterFS 3.5.0 is approx 4 times faster than GlusterFS 3.4.4.

This is my configuration:

$ sudo gluster volume info

Volume Name: volume1
Type: Replicate
Volume ID: a0946dd4-b4d1-40f7-b08d-bf120c2fa2fb
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: raspberrypi01:/mnt/mmcblk0p3/brick1
Brick2: raspberrypi02:/mnt/mmcblk0p3/brick1

I tested several times with this command:

$ sudo dd if=/dev/zero of=/glusterfs/testfile bs=300M count=1 oflag=direct

The write performance of GlusterFS 3.4.4 is approx. 1 MB.
The write performance of GlusterFS 3.5.0 is approx. 4 MB.

The network connection between the Raspberry Pis is 100 Mbps Ethernet.

Best Regards
   Christian Baun
---
Prof. Dr. Christian Baun
Fachhochschule Frankfurt am Main
Büro: +49-069-1533-3196
Privat: +49-6235-9591351
Mobil: +49-170-2817531

Die 2. Auflage von "Computernetze kompakt" ist erschienen.
ISBN 978-3-642-41652-1. Springer Vieweg. Februar 2014


2014-06-22 21:29 GMT+02:00 Harshavardhana <harsha at harshavardhana.net>:
> Looks like some sort of a automake issue, argument to ./py-compile
> --destdir is missing.
>
> On Sun, Jun 22, 2014 at 11:51 AM, Prof. Dr. Christian Baun
> <christianbaun at gmail.com> wrote:
>> Hi,
>>
>> I want to build up a Cluster of RaspberryPis and realize a distributed
>> and replicated storage with GlusterFS.
>>
>> Raspbian contains GlusterFS 3.2.7 which is quite old. For this reason
>> I want to compile GlusterFS 3.5 on Raspbian but at the end of "make
>> install" I get an error message "py-compile: Missing argument to
>> --destdir.".
>>
>> I carried out these steps:
>>
>> $ sudo apt-get update
>> $ sudo apt-get install -y make gcc flex bison libssl-dev liblvm2-dev
>> libglib2.0-dev libxml2-dev python2.7 python2.7-dev autoconf libtool
>> $ wget http://download.gluster.org/pub/gluster/glusterfs/3.5/3.5.0/glusterfs-3.5.0.tar.gz
>> $ tar -xvzf glusterfs-3.5.0.tar.gz
>> $ cd glusterfs-3.5.0/
>> $ ./autogen.sh
>>
>> ... GlusterFS autogen ...
>>
>> Generate gf-error-codes.h ...
>> `gf-error-codes.h' -> `libglusterfs/src/gf-error-codes.h'
>> Running aclocal...
>> Running autoheader...
>> Running libtoolize...
>> Running autoconf...
>> Running automake...
>>
>> Please proceed with configuring, compiling, and installing.
>>
>> $ ./configure
>> GlusterFS configure summary
>> ===========================
>> FUSE client          : yes
>> Infiniband verbs     : no
>> epoll IO multiplex   : yes
>> argp-standalone      : no
>> fusermount           : yes
>> readline             : no
>> georeplication       : yes
>> Linux-AIO            : no
>> Enable Debug         : no
>> systemtap            : no
>> Block Device xlator  : yes
>> glupy                : yes
>> Use syslog           : yes
>> XML output           : yes
>> QEMU Block formats   : yes
>> Encryption xlator    : yes
>>
>> $ make
>>
>> $ sudo make install
>> Making install in argp-standalone
>> Making install in .
>> Making install in libglusterfs
>> Making install in src
>> /bin/mkdir -p '/usr/local/lib'
>> /bin/bash ../../libtool --quiet  --mode=install /usr/bin/install -c
>> libglusterfs.la '/usr/local/lib'
>> Making install in rpc
>> Making install in rpc-lib
>> Making install in src
>> /bin/mkdir -p '/usr/local/lib'
>> /bin/bash ../../../libtool --quiet  --mode=install /usr/bin/install -c
>>   libgfrpc.la '/usr/local/lib'
>> libtool: install: warning: relinking `libgfrpc.la'
>> Making install in rpc-transport
>> Making install in socket
>> Making install in src
>> /bin/mkdir -p '/usr/local/lib/glusterfs/3.5.0/rpc-transport'
>> /bin/bash ../../../../libtool --quiet  --mode=install /usr/bin/install
>> -c   socket.la '/usr/local/lib/glusterfs/3.5.0/rpc-transport'
>> libtool: install: warning: relinking `socket.la'
>> Making install in xdr
>> Making install in src
>> /bin/mkdir -p '/usr/local/lib'
>> /bin/bash ../../../libtool --quiet  --mode=install /usr/bin/install -c
>>   libgfxdr.la '/usr/local/lib'
>> libtool: install: warning: relinking `libgfxdr.la'
>> Making install in api
>> Making install in src
>> /bin/mkdir -p '/usr/local/lib'
>> /bin/bash ../../libtool --quiet  --mode=install /usr/bin/install -c
>> libgfapi.la '/usr/local/lib'
>> libtool: install: warning: relinking `libgfapi.la'
>> /bin/mkdir -p '/usr/local/include/glusterfs/api'
>> /usr/bin/install -c -m 644 glfs.h glfs-handles.h
>> '/usr/local/include/glusterfs/api'
>> /bin/mkdir -p '/usr/local/lib/glusterfs/3.5.0/xlator/mount'
>> /bin/bash ../../libtool --quiet  --mode=install /usr/bin/install -c
>> api.la '/usr/local/lib/glusterfs/3.5.0/xlator/mount'
>> libtool: install: warning: relinking `api.la'
>> Making install in examples
>> /bin/mkdir -p '/usr/local/lib/python2.7/dist-packages/gluster'
>> /usr/bin/install -c -m 644 __init__.py gfapi.py
>> '/usr/local/lib/python2.7/dist-packages/gluster'
>> ../../py-compile: Missing argument to --destdir.
>> make[3]: *** [install-pygfapiPYTHON] Error 1
>> make[2]: *** [install-am] Error 2
>> make[1]: *** [install-recursive] Error 1
>> make: *** [install-recursive] Error 1
>>
>> Other people did also run into this problem. One example is here:
>> http://bighippo999.blogspot.de/2014/05/raspberry-pi-glusterfs-part-2.html
>>
>> Does anybody here know how to fix this problem?
>>
>> Thanks for any help.
>>
>> Best Regards
>>    Christian Baun
>> _______________________________________________
>> Gluster-users mailing list
>> Gluster-users at gluster.org
>> http://supercolony.gluster.org/mailman/listinfo/gluster-users
>
>
>
> --
> Religious confuse piety with mere ritual, the virtuous confuse
> regulation with outcomes



More information about the Gluster-users mailing list