I'm trying to install linalg on a gentoo system. I successfully installed (emerged, in gentoo parlance) blas, libf2c, and lapack. When I try to run 'ruby install.rb config', however, I get the following:
config ext/lapack
checking for f2c.h... yes
checking for main() in -lf2c... no
A full LAPACK installation was not found.
install.rb:127:in `config': configuration failed (RuntimeError)
from install.rb:124:in `each'
from install.rb:77:in `chdir'
from install.rb:77:in `each'
from install.rb:74:in `each'
from install.rb:74:in `each'
from install.rb:124:in `config'
from install.rb:215:in `send'
from install.rb:215
Down in ext/lapack/mkmf.log, I see
have_header: checking for f2c.h... -------------------- yes
"gcc -E -I/home/sjenkins/software/linalg-0.3.2/ext/lapack -I/usr/lib/ruby/1.8/i686-linux -march=pentium3 -O3 -pipe -fPIC conftest.c -o conftest.i"
checked program was:
/* begin */
#include <f2c.h>
/* end */
--------------------
have_library: checking for main() in -lf2c... -------------------- no
"gcc -o conftest -I/home/sjenkins/software/linalg-0.3.2/ext/lapack -I/usr/lib/ruby/1.8/i686-linux -march=pentium3 -O3 -pipe -fPIC conftest.c -L"/usr/lib" -lruby18-static -lf2c -ldl -lcrypt -lm -lc"
/usr/lib/libf2c.so: undefined reference to `MAIN__'
collect2: ld returned 1 exit status
checked program was:
/* begin */
/*top*/
int main() { return 0; }
int t() { main(); return 0; }
/* end */
"gcc -o conftest -I/home/sjenkins/software/linalg-0.3.2/ext/lapack -I/usr/lib/ruby/1.8/i686-linux -march=pentium3 -O3 -pipe -fPIC conftest.c -L"/usr/lib" -lruby18-static -lf2c -ldl -lcrypt -lm -lc"
/usr/lib/libf2c.so: undefined reference to `MAIN__'
collect2: ld returned 1 exit status
checked program was:
/* begin */
/*top*/
int main() { return 0; }
int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */
--------------------
Any hints?
|