linalg
linalg copied to clipboard
Ruby Linear Algebra Library
I am seeing the following error ``` (socialq)JOSEPH-MISITI:lapack-3.2 josephmisiti$ gem install linalg Building native extensions. This could take a while... ERROR: Error installing linalg: ERROR: Failed to build gem native...
With Ruby 2.7 > ``` > rb_lapack_c.c: В функции «rb_cgelsd»: > /usr/include/ruby-2.7.0/ruby/ruby.h:2396:6: ошибка: вызов «rb_scan_args_length_mismatch», объявленной с атрибутом error: variable argument length doesn't match > 2396 | rb_scan_args_length_mismatch(fmt, varc) :...
It's now possible to install linalg as a gem using bundler: Gemfile: gem 'linalg', git: 'git://github.com/ivanku/linalg' I also applied the fix that was mentioned here: http://rubyforge.org/forum/forum.php?thread_id=31058&forum_id=1171 (g2c.h -> f2c.h change)...
Order of text-substitutions must be preserved, otherwise replacing 'double' with 'int' and later 'doublereal' with something results in 'intreal'.
``` Building native extensions. This could take a while... ERROR: Error installing /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_ruby_rb-linalg/rb33-linalg/work/linalg-1.0.2/linalg.gem: ERROR: Failed to build gem native extension. current directory: /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_ruby_rb-linalg/rb33-linalg/work/destroot/opt/local/lib/ruby3.3/gems/3.3.0/gems/linalg-1.0.2/ext/lapack /opt/local/bin/ruby3.3 extconf.rb checking for f2c.h... yes checking...