Git Product home page Git Product logo

rb-gsl's Introduction

Description

Ruby/GSL, a ruby interface to GSL (GNU Scientific library)

Installation

(0) Make sure the command "gsl-config" is in search path.
(1) % ruby setup.rb config
(2) % ruby setup.rb setup
(3) % ruby setup.rb install (as root)

See also html/index.html.

Reference

See ((<URL:rb-gsl.rubyforge.org/ref.html>)).

Licence

Ruby/GSL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.

Bug Report

Any bug reports are welcome. If you encounter bugs in Ruby/GSL, please e-mail to me, or submit reports from rubyforge.org/projects/rb-gsl/.

Author

Yoshiki Tsunesada y-tsunesada at mm dot em-net dot ne dot jp

rb-gsl's People

Contributors

jamesharrison avatar kitop avatar romanbsd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rb-gsl's Issues

Fails to build on Ruby 2.1

I don't have a ton of time to look into this (sorry!) and am not even sure where the canonical version of this gem lives (yours is the most accessible/maintained), but…

With Ruby 2.1 and a brew-installed gsl 1.15, I get these errors (and many warnings, but ignoring those) installing the gem:

linalg.c:74:28: error: read-only variable is not assignable
    RBASIC(omatrix)->klass = cgsl_matrix_LU;
    ~~~~~~~~~~~~~~~~~~~~~~ ^
linalg.c:695:28: error: read-only variable is not assignable
    RBASIC(mdecomp)->klass = cgsl_matrix_QR;
    ~~~~~~~~~~~~~~~~~~~~~~ ^
linalg.c:707:28: error: read-only variable is not assignable
    RBASIC(mdecomp)->klass = cgsl_matrix_LQ;
    ~~~~~~~~~~~~~~~~~~~~~~ ^
linalg.c:734:33: error: read-only variable is not assignable
      RBASIC(argv[itmp])->klass = cgsl_vector_tau;
      ~~~~~~~~~~~~~~~~~~~~~~~~~ ^
linalg.c:743:33: error: read-only variable is not assignable
      RBASIC(argv[itmp])->klass = cgsl_vector_tau;
      ~~~~~~~~~~~~~~~~~~~~~~~~~ ^
linalg.c:1631:23: error: read-only variable is not assignable
    RBASIC(vA)->klass = cgsl_matrix_QRPT;
    ~~~~~~~~~~~~~~~~~ ^
linalg.c:1638:23: error: read-only variable is not assignable
    RBASIC(vA)->klass = cgsl_matrix_PTLQ;
    ~~~~~~~~~~~~~~~~~ ^
7 errors generated.
make: *** [linalg.o] Error 1

AFAIK, Ruby 2.1 no longer allows assignment to klass in this manner (it's now declared as const). brianmario/escape_utils#48 appears to solve a similar problem in that codebase, so maybe the same approach could work here. I'd dig deeper into this, but I really just need a normal variable so I'll write my own Box-Muller in Ruby until the gsl bindings support Ruby 2.1.

Make sure the command "gsl-config" is in search path.

when I install ,it get the error "Check GSL>=0.9.4 is installed, and the command 'gsl-config' is in search path.(RuntimeError)" when I do "ruby setup.rb config"

How can I do with the first support "Make sure the command "gsl-config" is in search path." in Windows..

Incompatible type for «gsl_vector_complex_equal»

compiling vector_complex.c
vector_complex.c:1989:12: error: incompatible type for «gsl_vector_complex_equal»
In file included from /usr/include/gsl/gsl_vector.h:5:0,
                 from ../include/rb_gsl_array.h:19,
                 from vector_complex.c:12:

Got this with gsl 1.15-2, Linux x86-64

inconsistency between GSL::Rand#sample and GSL::Rand#choose

I'm trying to get either a sample of a rounded Vector (GSL::Vector#round) and the choose and sample are behaving differently.

how to test it:

r = GSL::Rng.alloc(GSL::Rng::MT19937,rand(10000))
g = GSL::Vector.alloc([1,2,3,4,5,6,7,8,9,10])
r.sample(g,2) # OK
r.sample(g.round,2) #OK
r.choose(g,2) #OK
r.choose(g.round,2) #TypeError: wrong argument type GSL::Vector::Int (GSL::Vector expected)

Release a new version

The version available on rubygems does not work with gsl 1.15, which makes versioning slightly annoying when I update my packages. Can you release a new version?

error: conflicting types for ‘gsl_matrix_complex_equal’

/usr/local/rvm/rubies/ree-1.8.7-2011.03/bin/ruby extconf.rbG
checking gsl version... 1.15
checking gsl cflags... -I/usr/local/Cellar/gsl/1.15/include
checking for main() in -lcblas... yes
checking for main() in -latlas... yes
checking gsl libs... -L/usr/local/Cellar/gsl/1.15/lib -lgsl -lcblas -latlas
checking for round()... no
checking for rngextra/rngextra.h... no
checking for qrngextra/qrngextra.h... no
checking for ool/ool_version.h... no
checking for tensor/tensor.h... no
checking for jacobi.h... no
checking for gsl/gsl_cqp.h... no
checking for gsl/gsl_multimin_fsdf.h... no
checking for gsl_poly_solve_quartic() in -lgsl... no
checking for gsl_eigen_francis() in -lgsl... yes
checking for ndlinear/gsl_multifit_ndlinear.h... no
checking for alf/alf.h... no
checking rb-gsl version...1.14.7
checking ruby version... 1.8.7
checking for graph... no
checking for narray.h... yes
checking for tamu_anova/tamu_anova.h... no
checking for main() in -ltamuanova... no
creating Makefile

make
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c alf.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c array.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c array_complex.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c blas.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c blas1.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c blas2.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c blas3.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c block.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c bspline.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c bundle.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c cdf.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c cheb.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c combination.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c common.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c complex.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c const.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c const_additional.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c cqp.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c deriv.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c dht.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c diff.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c dirac.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c eigen.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c error.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c fcmp.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c fft.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c fit.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c fresnel.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c function.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c geometry.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c graph.c
graph.c:975: warning: ‘gsl_graph_set_command’ defined but not used
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c gsl.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c gsl_narray.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c histogram.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c histogram2d.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c histogram3d.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c histogram3d_source.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c histogram_find.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c histogram_oper.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c ieee.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c integration.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c interp.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c jacobi.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c linalg.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c linalg_complex.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c math.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c matrix.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-darwin10.8.0 -I. -DHAVE_NARRAY_H -I/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/narray-0.6.0.1/. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/i686-darwin10.8.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -Wall -I../include -I/usr/local/Cellar/gsl/1.15/include -c matrix_complex.c
matrix_complex.c:1525: error: conflicting types for ‘gsl_matrix_complex_equal’
/usr/local/Cellar/gsl/1.15/include/gsl/gsl_matrix_complex_double.h:227: error: previous declaration of ‘gsl_matrix_complex_equal’ was here
make: *** [matrix_complex.o] Error 1

Here'is the config

~ $ rvm info system

ree-1.8.7-2011.03:

system:
uname: "Darwin mvj3macosxmacbookpro-2.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)"
zsh: "/bin/zsh => zsh 4.3.9 (i386-apple-darwin10.0)"

Errors building rb-gsl from source [patch]

I had to make the following changes to get this to compile on my machine (osx 10.6.1, gsl 1.13).

wart:rb-gsl huned$ git diff 
diff --git a/ext/const.c b/ext/const.c
index bd2b4e1..a844dd5 100644
--- a/ext/const.c
+++ b/ext/const.c
@@ -599,7 +599,7 @@ static void rb_gsl_const_cgs(VALUE module)
                  rb_float_new(GSL_CONST_CGSM_ELECTRON_CHARGE));
   rb_define_const(module, "ELECTRON_CHARGE_ESU",
                  rb_float_new(GSL_CONST_CGSM_ELECTRON_CHARGE*GSL_CONST_CGSM_SPE
-  rb_define_const(module, "GAUSS", rb_float_new(GSL_CONST_CGSM_GAUSS));
+  /*rb_define_const(module, "GAUSS", rb_float_new(GSL_CONST_CGSM_GAUSS));*/
   rb_define_const(module, "STILB", rb_float_new(GSL_CONST_CGSM_STILB));
   rb_define_const(module, "LUMEN", rb_float_new(GSL_CONST_CGSM_LUMEN));
   rb_define_const(module, "LUX", rb_float_new(GSL_CONST_CGSM_LUX));
diff --git a/ext/matrix_source.c b/ext/matrix_source.c
index 6fa442c..d19e93f 100644
--- a/ext/matrix_source.c
+++ b/ext/matrix_source.c
@@ -2149,7 +2149,7 @@ static VALUE FUNCTION(rb_gsl_matrix,rot90)(int argc, VALUE
   switch (p) {
   case 0:
     mnew = FUNCTION(gsl_matrix,alloc)(m->size1, m->size2);
-    FUNCTION(gsl_matrix,memcpy(mnew, m));
+    FUNCTION(gsl_matrix,memcpy)(mnew, m);
     break;
   case 1:
   case -3:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.