somaticio / tensorflow.rb

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

Remove unnecessary files in ext #10

Closed nethsix closed 8 years ago

nethsix commented 8 years ago

Remove intermediary files from compile, make

nethsix commented 8 years ago

@Arafatk 'ext/tf_session_helper.o' and 'ext/tf_tensor_helper.o' are defined in 'tensorflow.gemspec'. I removed them but could still get Tensorflow to run in 'irb. If they are required in some ways, I should not delete them.

Doing 'bundle exec rake install' will fail with:

bundle exec rake install
rake aborted!
WARNING:  See http://guides.rubygems.org/specification-reference/ for help
ERROR:  While executing gem ... (Gem::InvalidSpecificationException)
    ["ext/tf_session_helper.o", "ext/tf_tensor_helper.o"] are not files
/usr/local/rvm/gems/ruby-2.2.4@global/gems/bundler-1.12.5/lib/bundler/gem_helper
.rb:167:in `sh'
/usr/local/rvm/gems/ruby-2.2.4@global/gems/bundler-1.12.5/lib/bundler/gem_helper
.rb:76:in `build_gem'
/usr/local/rvm/gems/ruby-2.2.4@global/gems/bundler-1.12.5/lib/bundler/gem_helper
.rb:40:in `block in install'
/usr/local/rvm/gems/ruby-2.2.4@ruby-tensorflow/bin/ruby_executable_hooks:15:in `
eval'
/usr/local/rvm/gems/ruby-2.2.4@ruby-tensorflow/bin/ruby_executable_hooks:15:in `
<main>'
Tasks: TOP => install => build
arafatkatze commented 8 years ago

@nethsix Thanks a lot Khor. This seems to be much better !! As for 'ext/tf_session_helper.o' and 'ext/tf_tensor_helper.o' I don't think that they are necessary and the gem seems to be working fine for me.

Thanks again.