Ruby SMB

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs