<div dir="ltr">Dan,<div><br></div><div>I had the same trouble yesterday. As it happens, I created a doc to help script installs of future nodes. I did not snip out the portions that apply to what you&#39;re looking for, but the script below works for me.</div>
<div><br></div><div>The biggest issue was that some modules were apparently installed in lib and the build process was looking for them in lib64. In any event, the vfs module builds, installs and runs cleanly after this.</div>
<div><br></div><div>** The big win for me was finding this command, that allowed me to figure out where it was looking for modules in the wrong lib directory.</div><div>ldd /usr/local/samba/lib/vfs/glusterfs.so<br></div><div>
<br></div><div>I&#39;m sure there is any easier way to to do this :)...</div><div><br></div><div>Cheers,</div><div>Dave</div><div><br></div><div><br></div><div>--</div><div><span id="docs-internal-guid-4742ecba-7bd2-1fad-9743-e8e63b67a93a"><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">#!/bin/bash</span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">yum groupinstall &quot;Development Tools&quot;</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">yum install git openssl-devel wget</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">yum install libtalloc libtdb</span></p>
<br><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"># set up gluster</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">cd /usr/src &amp;&amp; git clone </span><a href="https://github.com/gluster/glusterfs.git" style="text-decoration:none"><span style="font-size:15px;font-family:&#39;Courier New&#39;;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">https://github.com/gluster/glusterfs.git</span></a><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"></span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">cd /usr/src/glusterfs &amp;&amp; ./autogen.sh &amp;&amp; ./configure &amp;&amp; make</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">make install</span></p><br>
<span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"># set up samba 3.6.9</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">cd /usr/src &amp;&amp; wget </span><a href="http://ftp.samba.org/pub/samba/stable/samba-3.6.9.tar.gz" style="text-decoration:none"><span style="font-size:15px;font-family:&#39;Courier New&#39;;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">http://ftp.samba.org/pub/samba/stable/samba-3.6.9.tar.gz</span></a><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"> &amp;&amp; tar -zxvf samba-3.6.9.tar.gz</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">cd /usr/src/samba-3.6.9/source3 &amp;&amp; ./configure &amp;&amp; make</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">make install</span></p><br>
<span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">ln -s /usr/local/samba/lib/libwbclient.so.0 /usr/lib64/libwbclient.so.0</span></p>
<br><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"># then install the RPM samba version</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">yum install samba</span></p>
<br><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"># set up vfs_glusterfs</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">cd /usr/src &amp;&amp; git clone git://<a href="http://forge.gluster.org/samba-glusterfs/samba-glusterfs-vfs.git">forge.gluster.org/samba-glusterfs/samba-glusterfs-vfs.git</a></span></p>
<br><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">ln -s /usr/local/include/glusterfs /usr/include/glusterfs</span></p>
<br><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">cd /usr/src/samba-vfs/glusterfs</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">./configure --with-samba-source=/usr/src/samba-3.6.9/source3</span></p>
<br><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">ln -s /usr/local/samba/lib/vfs/glusterfs.so /usr/lib64/samba/vfs/glusterfs.so</span></p>
<br><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"># link the other modules</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">ln -s /usr/local/lib/libgfapi.so /usr/lib64/</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">ln -s /usr/local/lib/libgfapi.so.0 /usr/lib64/</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">ln -s /usr/local/lib/<a href="http://libgfapi.la">libgfapi.la</a> /usr/lib64/</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">ln -s /usr/local/lib/<a href="http://libglusterfs.la">libglusterfs.la</a> /usr/lib64/</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">ln -s /usr/local/lib/libglusterfs.so /usr/lib64/</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">ln -s /usr/local/lib/libglusterfs.so.0 /usr/lib64/</span></p>
<span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">ln -s /usr/local/lib/libglusterfs.so.0.0.0 /usr/lib64/</span></span><br></div><div><span><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><br>
</span></span></div><div><span><span style="font-size:15px;font-family:&#39;Courier New&#39;;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">EOF</span></span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Oct 1, 2013 at 10:38 PM, Dan Mons <span dir="ltr">&lt;<a href="mailto:dmons@cuttingedge.com.au" target="_blank">dmons@cuttingedge.com.au</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi folks,<br>
<br>
I&#39;ve got CentOS6.4 with Samba 3.6.9 installed from the standard CentOS<br>
repos via yum.  I also have GlusterFS 3.4.0 GA installed from RPMs<br>
direct from <a href="http://gluster.org" target="_blank">gluster.org</a>.<br>
<br>
I&#39;m trying to build the glusterfs VFS module for Samba to take<br>
advantage of libgfapi for our Windows users, and migrate them off the<br>
current Samba-on-FUSE setup we have currently.<br>
<br>
I&#39;ve downloaded the appropriate source trees for all projects<br>
(GlusterFS from <a href="http://gluster.org" target="_blank">gluster.org</a>, Samba from the matching CentOS6 SRPM, and<br>
samba-glusterfs-vfs from the git repo), but am facing troubles early<br>
on just finding appropriate headers.<br>
<br>
[root@bne-gback000 samba-glusterfs-vfs]# find<br>
/usr/local/src/glusterfs-3.4.0 -type f -name glfs.h<br>
/usr/local/src/glusterfs-3.4.0/api/src/glfs.h<br>
<br>
[root@bne-gback000 samba-glusterfs-vfs]# ./configure<br>
--with-glusterfs=/usr/local/src/glusterfs-3.4.0<br>
*snip*<br>
checking api/glfs.h usability... no<br>
checking api/glfs.h presence... no<br>
checking for api/glfs.h... no<br>
Cannot find api/glfs.h. Please specify --with-glusterfs=dir if necessary<br>
<br>
If I install glusterfs-api-devel-3.4.0-8.el6.x86_64.rpm, I need to<br>
copy /usr/include/glusterfs/api/glfs.h to /usr/include for it to be<br>
found (even using --with-glusterfs= doesn&#39;t work), and then I get<br>
further errors about not being able to link to glfs_init:<br>
<br>
[root@bne-gback000 samba-glusterfs-vfs]# rpm -ivh<br>
/tmp/glusterfs-api-devel-3.4.0-8.el6.x86_64.rpm<br>
[root@bne-gback000 samba-glusterfs-vfs]# cp<br>
/usr/include/glusterfs/api/glfs.h /usr/include/<br>
[root@bne-gback000 samba-glusterfs-vfs]# ./configure<br>
*snip*<br>
checking api/glfs.h usability... yes<br>
checking api/glfs.h presence... yes<br>
checking for api/glfs.h... yes<br>
checking for glfs_init... no<br>
Cannot link to gfapi (glfs_init). Please specify --with-glusterfs=dir<br>
if necessary<br>
<br>
If anyone can point me in the right direction, that would be greatly<br>
appreciated.<br>
<br>
Cheers,<br>
<br>
-Dan<br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br>
</blockquote></div><br></div>