-
Notifications
You must be signed in to change notification settings - Fork 133
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
Failed to install nmatrix on ruby 2.0.0-p247 #505
Comments
|
I have installed gcc with From the content of mkmf.log it looks like it is using Sorry, I have edited the comment. I have successfully installed nmatrix on 2.2.0 and not 2.0.0. In both case I am using |
I'm not quite sure why that is happening. For the time being, could you just try editing extconf.rb to force it to use g++? You can comment out this block of code and replace it with:
but make sure you use the correct name for the g++ binary, it may actually be called If that works, then we can try to find a better solution. |
Any progress with this, or can I close it? |
No progress unfortunately. You can close it. On Mon, 9 May 2016 at 18:38 Dr. John Woods [email protected] wrote:
|
Did you attempt @wlevine's suggestion? |
I did, but it didn't work. |
@Rojj How are you installing NMatrix? From git, or from gem? |
From the gem On Thu, 12 May 2016 at 18:04 Dr. John Woods [email protected]
|
@Rojj Try from git. I think there have been some recent changes that may affect your outcome. |
Hi @MohawkJohn, I just had to install NMatrix for the first time to use it in a Ruby wrapper around Tensorflow https://github.com/chrhansen/ruby-tensorflow/pull/1/files, but Eventually, I found this issue, installed from git so that I could override |
@MohawkJohn, do you think we should default to clang on OS X? |
Yes, definitely. #525 |
@Rojj Is your problem fixed by nmatrix-0.2.3 ? |
@mrkn I don't know if I did something wrong or my system is special, but I followed the installation instructions and on OSX El Capitan using this version e3e5d12 I still have In the installation process I get this: $ bundle install
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
You have requested:
json ~> 2.0.1
The bundle currently has json locked at 1.8.3.
Try running `bundle update json`
If you are updating multiple gems in your Gemfile at once,
try passing them all to `bundle update` Then $ bundle update json
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Resolving dependencies...
Bundler could not find compatible versions for gem "json":
In Gemfile:
json (~> 2.0.1)
rdoc (>= 4.0.1, ~> 4.0) was resolved to 4.2.2, which depends on
json (~> 1.4) But $ bundle update
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Resolving dependencies...
Using rake 10.5.0
Using backports 3.6.8
Using bundler 1.12.5
Using coderay 1.1.1
Using diff-lcs 1.2.5
Installing json 2.0.2 (was 1.8.3) with native extensions
Using method_source 0.8.2
...
Installing pry 0.10.4 (was 0.10.3)
...
Using nmatrix-lapacke 0.2.4 from source at `.`
Bundle complete! 12 Gemfile dependencies, 21 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed. After that I do $ bundle exec rake compile
cd tmp/x86_64-darwin14/nmatrix/2.2.1
/Users/<user>/.rvm/rubies/ruby-2.2.1/bin/ruby -I. ../../../../ext/nmatrix/extconf.rb
checking for apparent GNU g++ binary with C++0x/C++11 support... 4.7
/Users/<user>/dev/nmatrix/lib/nmatrix/mkmf.rb:50:in `gplusplus_version': unable to determine g++ version (match to get version was nil) (RuntimeError)
from /Users/<user>/dev/nmatrix/lib/nmatrix/mkmf.rb:76:in `<top (required)>'
from ../../../../ext/nmatrix/extconf.rb:28:in `require'
from ../../../../ext/nmatrix/extconf.rb:28:in `<main>'
rake aborted!
Command failed with status (1): [/Users/<user>/.rvm/rubies/ruby-2.2.1/bin/rub...]
/Users/<user>/.rvm/gems/ruby-2.2.1/gems/rake-compiler-0.9.9/lib/rake/extensiontask.rb:193:in `block (2 levels) in define_compile_tasks'
/Users/<user>/.rvm/gems/ruby-2.2.1/gems/rake-compiler-0.9.9/lib/rake/extensiontask.rb:190:in `block in define_compile_tasks'
/Users/<user>/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
/Users/<user>/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => compile => compile:x86_64-darwin14 => compile:nmatrix:x86_64-darwin14 => copy:nmatrix:x86_64-darwin14:2.2.1 => tmp/x86_64-darwin14/nmatrix/2.2.1/nmatrix.bundle => tmp/x86_64-darwin14/nmatrix/2.2.1/Makefile
(See full trace by running task with --trace) All I needed install Nmatrix 20 days ago was to follow @wlevine's example mentioned above, #505 (comment), but it seems #530 touches a lot of other things. Perhaps I'm missing something, just wanted to show my install-log. |
@mrkn not yet. This is the error I get
|
@Rojj I think we need to see the compiler output. Can you clone from git and build manually with |
@MohawkJohn I cloned the repository in my home directory. From within the directory I run
I could not find the |
Using rbenv I have succesfully installed nmatrix on ruby 2.2.0.
However the installation fails on ruby 2.0.0-p247 with with following errors
See here for the log.
The text was updated successfully, but these errors were encountered: