Gsl ruby gem no Ubuntu Saucy (13.10)

1

Estou tentando instalar a gsl gem no Ubuntu Saucy

Eu instalei os pacotes relevantes de gsl com

sudo apt-get install gsl-bin libgsl0-dev

Mas a instalação da gem falha

In file included from /usr/include/ruby-1.9.1/ruby.h:32:0,
                 from ../include/rb_gsl_array.h:34,
                 from wavelet.c:13:
wavelet.c: In function ‘rb_gsl_wavelet_define_const’:
wavelet.c:155:45: error: ‘forward’ undeclared (first use in this function)
   rb_define_const(klass, "FORWARD", INT2FIX(forward));
                                             ^
/usr/include/ruby-1.9.1/ruby/ruby.h:225:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
wavelet.c:155:45: note: each undeclared identifier is reported only once for each function it appears in
   rb_define_const(klass, "FORWARD", INT2FIX(forward));
                                             ^
/usr/include/ruby-1.9.1/ruby/ruby.h:225:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
wavelet.c:157:46: error: ‘backward’ undeclared (first use in this function)
   rb_define_const(klass, "BACKWARD", INT2FIX(backward));
                                              ^
/usr/include/ruby-1.9.1/ruby/ruby.h:225:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
wavelet.c: In function ‘rb_gsl_wavelet_transform0’:
wavelet.c:194:31: error: ‘forward’ undeclared (first use in this function)
   gsl_wavelet_direction dir = forward;
                               ^
wavelet.c: In function ‘rb_gsl_wavelet2d’:
wavelet.c:534:31: error: ‘forward’ undeclared (first use in this function)
   gsl_wavelet_direction dir = forward;
                               ^
make: *** [wavelet.o] Error 1

O problema é semelhante a este: Problemas na instalação da gsl gem

A solução principal desse segmento não funciona - o pacote fonte do gsl 1.14 não está mais disponível naquele endereço. Eu acho que isso será útil para muitos usuários com Saucy.

    
por Dan Mazzini 23.11.2013 / 10:33

1 resposta

0

Para o Ubuntu 13.10, o ruby 2.0.0 funciona bem em seguida -

curl -O http://ftp.unicamp.br/pub/gnu/gsl/gsl-1.16.tar.gz
tar xvzf gsl-1.16.tar.gz
cd gsl-1.16
./configure
make
sudo make install
sudo gem install --conservative --no-ri --no-rdoc gsl
    
por Vasia Pupkin 13.12.2013 / 09:51