[Gluster-devel] unable to build glusterfs rpm on RHEL 6.6

Niels de Vos ndevos at redhat.com
Mon Mar 27 14:26:56 UTC 2017


On Mon, Mar 27, 2017 at 04:11:38PM +0200, Niels de Vos wrote:
> On Mon, Mar 27, 2017 at 07:24:38PM +0530, Manohar Mikkili wrote:
> > Hi,
> > 
> > I am trying to build glusterfs v3.10.0 on a RHEL 6.6 (x86_64 GNU/Linux)
> > 
> > $./autoConfig # works fine
> > $ ./configure  --enable-fusermount
> > ....
> > ....
> > ....
> > checking for sys/acl.h... no
> > configure: error: Support for POSIX ACLs is required
> > 
> > pls guide/advise, which rpm/library should be installed to get past the
> > above error?
> 
> You need to install libacl-devel. On systems with YUM, you can run this:
> 
>   # yum install /usr/include/sys/acl.h
> 
> That way should work for other missing header files as well. In the
> glusterfs.spec(.in) file the BuildRequires list all RPM packages too.
> 
> Alternatively, you can use the builds from the CentOS Storage SIG so
> that you do not need to compile anything yourself:
> 
>   # yum install centos-release-gluster
>   # yum install glusterfs-server

Oh, this works when the CentOS Extras repository is available, which it
is not by default on RHEL, duh!

You can edit the .repo file that comes from the centos-release package:

  $ cd /var/tmp
  $ curl -o http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-8.el6.centos.12.3.x86_64.rpm
  $ rpm2cpio < centos-release*.rpm | cpio -id '*.repo'
  $ ls etc/yum.repos.d/

Copy the definition for the extras repository to a new file under
/etc/yum.repos.d/centos-extras.repo and you should be able to have it
all working with that.

Niels


> 
> HTH,
> Niels


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20170327/9a50a59a/attachment.sig>


More information about the Gluster-devel mailing list