[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby SMB

Gian Holland

3/26/2008 3:21:00 AM

[Note: parts of this message were removed to make it a legal post.]

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

1 Answer

Joshua Ballanco

3/26/2008 5:08:00 AM

0

Gian Holland 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
--
Posted via http://www.ruby-....