I still recommend using the spec file to see how the packages are built.
On 03/27/2017 09:47 AM, 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@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.
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@sipp etc]# cat /etc/yum.repos.d/centos-extras.repo
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
[C6.0-extras]
name=CentOS-6.0 - Extras
baseurl=http://vault.centos.org/6.0/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0
[C6.1-extras]
name=CentOS-6.1 - Extras
baseurl=http://vault.centos.org/6.1/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0
[C6.2-extras]
name=CentOS-6.2 - Extras
baseurl=http://vault.centos.org/6.2/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0
[C6.3-extras]
name=CentOS-6.3 - Extras
baseurl=http://vault.centos.org/6.3/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0
[C6.4-extras]
name=CentOS-6.4 - Extras
baseurl=http://vault.centos.org/6.4/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0
[C6.5-extras]
name=CentOS-6.5 - Extras
baseurl=http://vault.centos.org/6.5/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0
[C6.6-extras]
name=CentOS-6.6 - Extras
baseurl=http://vault.centos.org/6.6/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=1
/
On Mon, Mar 27, 2017 at 7:56 PM, Niels de Vos <[email protected]
<mailto:[email protected]>> 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
<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
_______________________________________________
Gluster-devel mailing list
[email protected]
http://lists.gluster.org/mailman/listinfo/gluster-devel
_______________________________________________
Gluster-devel mailing list
[email protected]
http://lists.gluster.org/mailman/listinfo/gluster-devel