Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: James M. Lawrence
RE: installation problem on gentoo [ reply ]  
2008-09-06 21:41
Thanks. This patch was applied in the 1.0.0 release.

By: Luis Parravicini
RE: installation problem on gentoo [ reply ]  
2008-07-02 12:36
I had the same problem and made a patch for it. You can see it at http://rubyforge.org/tracker/index.php?func=detail&aid=21044&group_id=273&atid=1117

By: Steven Jenkins
installation problem on gentoo [ reply ]  
2004-10-10 23:40
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?