Ruby SMB

G

Gian Holland

[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
 
J

Joshua Ballanco

Gian said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top