-
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
Can't install HEAD #34
Comments
I want to install HEAD, because |
Perhaps you don't have a installed ATLAS packet or it has installed in no standard location. You can point its location for header files before installation. For example: export C_INCLUDE_PATH=/usr/local/atlas/include |
I'm on Mac OS X Lion 10.7.4 with Xcode 4.3.2, and I do:
The
|
Your requirements section says you need gcc 4.2, but |
Yes, our right! Needs gcc-4.3. But I'm not understand how you compiled it to report #35 issue? |
You can update gcc? |
I'm currently compiling a more recent GCC using the command below:
I had previously upgraded from an earlier Xcode, so I saw messages like:
To fix that, I needed to run:
|
Sorry I'm not user of OSX and I know nothing about it. Currently NMatrix is developing on linux. If you have success and one minute you can add section about installation on OSX here https://github.com/flipback/nmatrix/wiki/NMatrix-Installation. It will be excellent :) |
I started writing something here. With the new GCC, if I replace the
If I remove that option, I get:
If I set
If I set CC and CXX to clang and clang++ in the extconf.rb file instead, I get:
My clang version is:
I'll try upgrading to a version of clang that supports c++11. |
Hey, sorry for the delay. Aleksey just pointed this thread out to me. Your brew-installed g++ should do the trick. It looks like the problem is that it can't find clapack.h. I see you already redirected If different, there are a few things we can do in the code. Basically all of the LAPACK functions it would need have been implemented in C++, but it would prefer to use the ATLAS-clapack versions. It's a pretty easy fix, which I can work on later today if you'd be willing to test it. |
I'm pretty sure it can find clapack.h:
How does extconf select the gcc and g++ binaries to use? It's always choosing gcc-4.2 and g++-4.2 for the Makefile. I need to change the extconf.rb file to make it use the correct binaries. Here are gists of my clapack.h and cblas.h. In clapack.h, there is no I had the latest Xcode but not the latest Command-Line Tools. Added a note in the wiki about that. It doesn't fix the clang error above, though. My clang version is |
Ok, so to recap: If I use what's in git HEAD, extconf.rb creates a Makefile that uses gcc 4.2, which won't work, because the c++0x and c++11 extensions are not available in 4.2. If I set CC and CXX in extconf.rb to be clang and clang++ (4.0), If I set CC and CXX in extconf.rb to be gcc and g++ (4.7.1),
The Makefile command that causes the error is: g++-4.7 -I. -I/Users/james/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/x86_64-darwin11.4.0 -I/Users/james/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/ruby/backward -I/Users/james/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1 -I../../../../ext/nmatrix -DHAVE_CLAPACK_H -DHAVE_CBLAS_H -I/Users/james/.rvm/usr/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -O0 -std=c++11 -fno-common -Wall -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -fno-common -pipe -O0 -o nmatrix.o -c ../../../../ext/nmatrix/nmatrix.cpp The following minimal command has the same error: g++-4.7 -I../../../../ext/nmatrix -std=c++11 -o nmatrix.o -c ../../../../ext/nmatrix/nmatrix.cpp These errors are new - I wasn't getting them before for the same commands. |
Okay. Yes, the problem is with clapack. I pushed a change which compiles on my Macbook Air (Snow Leopard). But on there, it wasn't finding clapack.h at all (even the version that you gisted, which is present). I'd suggest you remove clapack.h from your include paths, if possible, but keep cblas.h. Alternatively, you can go into the compilation Want to try that and let me know how it goes? |
Hmm, how did you compile it? I get:
If I wrap the include line like:
It seems to work! |
Oops, you're right. Sorry, I forgot to commit that change. Thanks for doing the write-up. Note that there is now also a script for installing GCC 4.7.1, in the |
Anyone getting here via google, the wiki page has moved and been updated: https://github.com/SciRuby/nmatrix/wiki/Installation |
Installing from git:
Downloading the git repository and running
rake compile
(with or withoutbundle exec
) gives a similar error:The text was updated successfully, but these errors were encountered: