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

Niels de Vos ndevos at redhat.com
Mon Mar 27 19:23:55 UTC 2017


On Mon, Mar 27, 2017 at 10:17:03PM +0530, Manohar Mikkili wrote:
> thanks Niels, for your advice.
> we are trying to bundle the glusterfs rpm in our binary, which is shipped
> to customer.
> so, "yum install gluster" is not an option.
> 
> I tried as you asked, but no luck, could you pls take a look and advise?
> thanks in advance.
> 
> [root at sipp tmp]# yum install /usr/include/sys/acl.h
> Loaded plugins: product-id, refresh-packagekit, security,
> subscription-manager
> This system is not registered to Red Hat Subscription Management. You can
> use subscription-manager to register.

This seems to be the key problem now. You need to have the system
registered at the Red Hat Customer Portal to get additional packages
from there. The libacl-devel and dependencies can be obtained through
the channels from Red Hat. If you have difficulties registering your
system, you should open a support case with Red Hat Customer Experience
& Engagement (https://access.redhat.com/support/) or the vendor you got
RHEL from.

Niels


> Setting up Install Process
> C6.6-extras
> | 3.4 kB     00:00
> YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
>  Eg. Invalid release/
> removing mirrorlist with no valid mirrors:
> /var/cache/yum/x86_64/6Server/extras/mirrorlist.txt
> Error: Cannot retrieve repository metadata (repomd.xml) for repository:
> extras. Please verify its path and try again
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> *[root at sipp etc]# cat /etc/yum.repos.d/centos-extras.repo#additional
> packages that may be useful[extras]name=CentOS-$releasever -
> Extrasmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
> <http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra>#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
> <http://mirror.centos.org/centos/$releasever/extras/$basearch/>gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6[C6.0-extras]name=CentOS-6.0
> - Extrasbaseurl=http://vault.centos.org/6.0/extras/$basearch/
> <http://vault.centos.org/6.0/extras/$basearch/>gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6enabled=0[C6.1-extras]name=CentOS-6.1
> - Extrasbaseurl=http://vault.centos.org/6.1/extras/$basearch/
> <http://vault.centos.org/6.1/extras/$basearch/>gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6enabled=0[C6.2-extras]name=CentOS-6.2
> - Extrasbaseurl=http://vault.centos.org/6.2/extras/$basearch/
> <http://vault.centos.org/6.2/extras/$basearch/>gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6enabled=0[C6.3-extras]name=CentOS-6.3
> - Extrasbaseurl=http://vault.centos.org/6.3/extras/$basearch/
> <http://vault.centos.org/6.3/extras/$basearch/>gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6enabled=0[C6.4-extras]name=CentOS-6.4
> - Extrasbaseurl=http://vault.centos.org/6.4/extras/$basearch/
> <http://vault.centos.org/6.4/extras/$basearch/>gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6enabled=0[C6.5-extras]name=CentOS-6.5
> - Extrasbaseurl=http://vault.centos.org/6.5/extras/$basearch/
> <http://vault.centos.org/6.5/extras/$basearch/>gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6enabled=0[C6.6-extras]name=CentOS-6.6
> - Extrasbaseurl=http://vault.centos.org/6.6/extras/$basearch/
> <http://vault.centos.org/6.6/extras/$basearch/>gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6enabled=1*
> 
> On Mon, Mar 27, 2017 at 7:56 PM, Niels de Vos <ndevos at redhat.com> wrote:
> 
> > 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/e1ac925c/attachment-0001.sig>


More information about the Gluster-devel mailing list