somaticio / tensorflow.rb

tensorflow for ruby
BSD 3-Clause "New" or "Revised" License
827 stars 66 forks source link

got extconf.rb failed - when ran "ruby extconf.rb" #102

Open estelleccl opened 6 years ago

estelleccl commented 6 years ago

Hi All,

I got the error message below when trying to install tensorflow.rb(1st step):

tensorflow_c git:(master) ✗ ruby extconf.rb                                
*** 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.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/Users/esu/.rbenv/versions/2.3.0/bin/$(RUBY_BASE_NAME)

I couldnt find mkmf.log in tensorflow_c folder

➜  tensorflow_c git:(master) ✗ ll
total 24
-rw-r--r--  1 esu  staff   949B Oct  1 22:38 Tensorflow.i
-rw-r--r--  1 esu  staff   1.4K Oct  1 22:38 converter.py
-rw-r--r--  1 esu  staff   188B Oct  1 22:38 extconf.rb
drwxr-xr-x  6 esu  staff   204B Oct  1 22:38 files

kindly please advise

ceritium commented 6 years ago

I have the same problem, I am on macOS Sierra 10.12.4 (16E195) and ruby 2.4.0

arafatkatze commented 6 years ago

@estelleccl @ceritium Hi Guys, I am incredibly sorry for all this delay in responding to you guys. I didn't have access to macOS before and therefore it was very difficult for me to help you guys out with the installation process.
I just wanted to tell you that I have made a few changes to the c bindings code and hopefully the installation should work now.

I recommend that you guys follow all the steps on the README page and install all the dependencies and do the bazel build before running ruby extconf.rb. If you still face any issues please do let me know.

Thanks

sp00ck commented 6 years ago

I have similar in Linux (fedora 27):

$ ruby extconf.rb 
*** 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.

Provided configuration options:
    --with-opt-dir
......
    --ruby=/usr/bin/$(RUBY_BASE_NAME)

Trouble is with log file. It not exist