Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
estelleccl opened this issue Oct 1, 2017 · 3 comments
Open

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

estelleccl opened this issue Oct 1, 2017 · 3 comments
Assignees

Comments

@estelleccl
Copy link

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
Copy link

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

@arafatkatze
Copy link
Collaborator

arafatkatze commented Jan 18, 2018

@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

@arafatkatze arafatkatze self-assigned this Jan 18, 2018
@sp00ck
Copy link

sp00ck commented Mar 16, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants