Marc Eisenbarth
2015-Dec-23 06:55 UTC
[Gluster-users] installing glusterfs-coreutils on ubuntu
The documentation requires installing "glusterfs-api-devel", which isn't available in the Ubuntu PPA. However, I do have the header files that I believe ./configure is looking for installed but can't seem to point ./configure to them using CFLAGS, CXXFLAGS, etc. I also tried to use the --with-glusterfs ./configure option as well. What's the proper way to do this? output of ./configure where it halts: checking for GLFS... no configure: error: cannot find glusterfs api headers existing header location: $:~/glusterfs-coreutils$ sudo find /usr -name "glfs.h" -print /usr/include/glusterfs/api/glfs.h -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20151223/c1d3798c/attachment.html>
On Wed, Dec 23, 2015 at 12:25 PM, Marc Eisenbarth <mr.eisenbarth at gmail.com> wrote:> The documentation requires installing "glusterfs-api-devel", which isn't > available in the Ubuntu PPA. However, I do have the header files that I > believe ./configure is looking for installed but can't seem to point > ./configure to them using CFLAGS, CXXFLAGS, etc. I also tried to use the > --with-glusterfs ./configure option as well. What's the proper way to do > this? > > output of ./configure where it halts: > > checking for GLFS... no > configure: error: cannot find glusterfs api headers > > existing header location: > $:~/glusterfs-coreutils$ sudo find /usr -name "glfs.h" -print > /usr/include/glusterfs/api/glfs.h > >The headers should be installed with the glusterfs-common package. Are you using a recent enough version of GlusterFS?> > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://www.gluster.org/mailman/listinfo/gluster-users
Niels de Vos
2015-Dec-23 10:31 UTC
[Gluster-users] installing glusterfs-coreutils on ubuntu
On Wed, Dec 23, 2015 at 02:55:15PM +0800, Marc Eisenbarth wrote:> The documentation requires installing "glusterfs-api-devel", which isn't > available in the Ubuntu PPA. However, I do have the header files that I > believe ./configure is looking for installed but can't seem to point > ./configure to them using CFLAGS, CXXFLAGS, etc. I also tried to use the > --with-glusterfs ./configure option as well. What's the proper way to do > this? > > output of ./configure where it halts: > > checking for GLFS... no > configure: error: cannot find glusterfs api headers > > existing header location: > $:~/glusterfs-coreutils$ sudo find /usr -name "glfs.h" -print > /usr/include/glusterfs/api/glfs.hglusterfs-coreutils uses pkg-config to get the location from the headers and the additional compile/link options. You will need a glusterfs-api.pc file under /usr/lib64/pkgconfig/ (or similar). This command should list glusterfs-api when all is right: $ pkg-config --list-all I do not know how Ubuntu packages are providing development files, so I can not really give you more details than this. HTH, Niels -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20151223/5f742f45/attachment.sig>
Kaleb Keithley
2015-Dec-23 11:18 UTC
[Gluster-users] installing glusterfs-coreutils on ubuntu
> > The documentation requires installing "glusterfs-api-devel", which isn't > available in the Ubuntu PPA.As Kaushal pointed out, the headers are in the glusterfs-common .deb. The people who did the Debian/Ubuntu packaging don't like -dev packages. I'm not sure why. :-/ You appear to have glusterfs-common installed because you do have the header files. What version of GlusterFS are you using?> However, I do have the header files that I > believe ./configure is looking for installed but can't seem to point > ./configure to them using CFLAGS, CXXFLAGS, etc. I also tried to use the > --with-glusterfs ./configure option as well. What's the proper way to do > this? > > output of ./configure where it halts: > > checking for GLFS... no > configure: error: cannot find glusterfs api headersYou could look at configure(.ac) and try to suss out how configure is looking for GLFS. It could be using pkgconfig, or looking for the header file, or looking for a symbol in the shared library, or something else. Otherwise I'll take a look when I get to the office in a bit.> > existing header location: > $:~/glusterfs-coreutils$ sudo find /usr -name "glfs.h" -print > /usr/include/glusterfs/api/glfs.h >-- Kaleb
Kaleb S. KEITHLEY
2015-Dec-23 13:51 UTC
[Gluster-users] installing glusterfs-coreutils on ubuntu
On 12/23/2015 01:55 AM, Marc Eisenbarth wrote:> The documentation requires installing "glusterfs-api-devel", which isn't > available in the Ubuntu PPA. However, I do have the header files that I > believe ./configure is looking for installed but can't seem to point > ./configure to them using CFLAGS, CXXFLAGS, etc. I also tried to use the > --with-glusterfs ./configure option as well. What's the proper way to do > this? > > output of ./configure where it halts: > > checking for GLFS... no > configure: error: cannot find glusterfs api headersInstall uuid-dev, then it will work. -- Kaleb