# Ruby SMB

**URL:** <https://www.ruby-forum.com/t/ruby-smb/132956>\
**Category:** Ruby\
**Created:** [March 26, 2008, 4:21am UTC](https://www.ruby-forum.com/t/ruby-smb/132956 "2008-03-26T04:21:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![glacius](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/dec6dc/32.png) [@glacius](https://www.ruby-forum.com/u/glacius)\
**Post date:** [March 26, 2008, 4:21am UTC](https://www.ruby-forum.com/t/ruby-smb/132956/1 "2008-03-26T04:21:55Z")

</div>

Hi I am having some difficulty getting ruby/smb built

I am semi new to ruby and I am executing the ruby extconf.rb but below  
is  
what I get

checking for libsmbclient.h… no  
checking for smbc\_init() in -lsmbclient… no  
Cannot create Makefile  
\*\*\* extconf.rb failed \*\*\*  
Could not create Makefile due to some reason, probably lack of  
necessary libraries and/or headers. Check the mkmf.log file for more  
details. You may need configuration options.

I have used the command below also  
(/usr/lib is where libsmbclient.h is located)

and get this  
ruby extconf.rb --with-smb-include=/usr/lib/  
checking for libsmbclient.h… no  
checking for smbc\_init() in -lsmbclient… no  
Cannot create Makefile  
\*\*\* extconf.rb failed \*\*\*  
Could not create Makefile due to some reason, probably lack of  
necessary libraries and/or headers. Check the mkmf.log file for more  
details. You may need configuration options.

I am using Ruby 1.8 on ubuntu gutsy (I have installed the libsmblient  
dev  
files)

any help would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![glacius](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/dec6dc/32.png) [@glacius](https://www.ruby-forum.com/u/glacius)\
**Post date:** [March 26, 2008, 6:08am UTC](https://www.ruby-forum.com/t/ruby-smb/132956/2 "2008-03-26T06:08:38Z")

</div>

Gian H. wrote:

> I have used the command below also  
> (/usr/lib is where libsmbclient.h is located)  
> Is there a reason this file is in /usr/lib and not /usr/include (or some  
> derivative)?  
> and get this  
> ruby extconf.rb --with-smb-include=/usr/lib/  
> checking for libsmbclient.h… no  
> checking for smbc\_init() in -lsmbclient… no  
> Cannot create Makefile  
> \*\*\* extconf.rb failed \*\*\*  
> Instead of --with-X-include, you can try --with-X=/path/to/X and mkmf  
> will “do the right thing” and look for the headers in /path/to/X/include  
> and libraries in /path/to/X/lib
