Try this
sudo apt-get install libmagickwand-dev imagemagick
This should fix it.
Somewhere I read this might help
brew link --overwrite imagemagick
An error occurred while installing gsl (2.1.0.1), and Bundler cannot continue.
Make sure that `gem install gsl -v '2.1.0.1'` succeeds before bundling.
curl -O http://mirror.veriportal.com/gnu/gsl/gsl-1.14.tar.gz
tar xvzf gsl-1.14.tar.gz
cd gsl-1.14
./configure
make
sudo make install
sudo gem install --conservative --no-ri --no-rdoc gsl
or
gem install gsl
Building native extensions. This could take a while...
ERROR: Error installing gsl:
ERROR: Failed to build gem native extension.
current directory: /Users/.rvm/rubies/ruby-2.4.0/lib/ruby/gems/2.4.0/gems/gsl-2.1.0.1/ext/gsl_native
/Users/.rvm/rubies/ruby-2.4.0/bin/ruby -r ./siteconf20170125-34982-gd9cdo.rb extconf.rb
*** ERROR: missing required library to compile this module: Ruby/GSL requires gsl-1.15 or later.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
#include <architecture/ppc/fp_regs.h>
^
1 error generated.
make[1]: *** [fp.lo] Error 1
make: *** [install-recursive] Error 1
checking gsl version... 2.3
checking gsl cflags... -I/usr/local/include
checking gsl libs... -L/usr/local/lib -lgsl -lgslcblas
checking for round()... yes
checking for alf/alf.h... no
checking for qrngextra/qrngextra.h... no
checking for rngextra/rngextra.h... no
checking for tensor/tensor.h... no
checking for gsl/gsl_multimin_fsdf.h... no
checking for gsl/gsl_cqp.h... no
checking for jacobi.h... no
checking for ndlinear/gsl_multifit_ndlinear.h... no
checking for ool/ool_version.h... no
checking for gsl_eigen_francis() in -lgsl... yes
checking for gsl_eigen_francis()... yes
checking for gsl_poly_solve_quartic() in -lgsl... no
checking for graph... no
checking for tamu_anova/tamu_anova.h... no
checking for gsl_multifit_fdfsolver.J in gsl/gsl_multifit_nlin.h... no
checking for gsl_sf_mathieu_a_e() in gsl/gsl_sf_mathieu.h... yes
checking for gsl_sf_mathieu_b_e() in gsl/gsl_sf_mathieu.h... yes
checking for gsl_sf_mathieu_ce_e() in gsl/gsl_sf_mathieu.h... yes
checking for gsl_sf_mathieu_se_e() in gsl/gsl_sf_mathieu.h... yes
checking for gsl_sf_mathieu_Mc_e() in gsl/gsl_sf_mathieu.h... yes
checking for gsl_sf_mathieu_Ms_e() in gsl/gsl_sf_mathieu.h... yes
creating gsl_config.h
creating Makefile
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Users/.rvm/gems/ruby-2.4.0/extensions/x86_64-darwin-16/2.4.0/gsl-2.1.0.1/mkmf.log
current directory: /Users/.rvm/gems/ruby-2.4.0/gems/gsl-2.1.0.1/ext/gsl_native
make "DESTDIR=" clean
current directory: /Users/.rvm/gems/ruby-2.4.0/gems/gsl-2.1.0.1/ext/gsl_native
make "DESTDIR="
compiling alf.c
compiling array.c
compiling array_complex.c
compiling blas.c
compiling blas1.c
compiling blas2.c
compiling blas3.c
compiling block.c
compiling bspline.c
compiling bundle.c
compiling cdf.c
compiling cheb.c
compiling combination.c
compiling common.c
common.c:78:10: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
len0 = strlen(s0);
~ ^~~~~~~~~~
common.c:79:10: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
len1 = strlen(s1);
~ ^~~~~~~~~~
common.c:89:10: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
len0 = strlen(s0);
~ ^~~~~~~~~~
common.c:90:10: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
len1 = strlen(s1);
~ ^~~~~~~~~~
4 warnings generated.
compiling complex.c
compiling const.c
compiling const_additional.c
compiling cqp.c
compiling deriv.c
compiling dht.c
dht.c:225:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
val = t->j[n+1]*gsl_dht_x_sample(t, m)/t->xmax;
~~~~~~~~~~~~~~~~ ^
dht.c:234:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
val = t->j[n+1]*gsl_dht_x_sample(t, m)/t->xmax;
~~~~~~~~~~~~~~~~ ^
dht.c:256:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
val = gsl_sf_bessel_Jnu(t->nu, t->j[n+1]*gsl_dht_x_sample(t, m)/t->xmax);
~~~~~~~~~~~~~~~~ ^
dht.c:265:66: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
val = gsl_sf_bessel_Jnu(t->nu, t->j[n+1]*gsl_dht_x_sample(t, m)/t->xmax);
~~~~~~~~~~~~~~~~ ^
dht.c:333:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
val = gsl_sf_bessel_Jnu(t->nu, t->j[n+1]*gsl_dht_x_sample(t, m)/t->xmax);
~~~~~~~~~~~~~~~~ ^
dht.c:343:66: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
val = gsl_sf_bessel_Jnu(t->nu, t->j[n+1]*gsl_dht_x_sample(t, m)/t->xmax);
~~~~~~~~~~~~~~~~ ^
6 warnings generated.
compiling diff.c
compiling dirac.c
compiling eigen.c
compiling error.c
error.c:83:66: error: use of undeclared identifier 'rb_cFixnum'
pgsl_error[-2] = rb_define_class_under(mgsl_error, "CONTINUE", rb_cFixnum);
^
error.c:85:64: error: use of undeclared identifier 'rb_cFixnum'
pgsl_error[0] = rb_define_class_under(mgsl_error, "SUCCESS", rb_cFixnum);
^
2 errors generated.
make: *** [error.o] Error 1
make failed, exit code 2
make "DESTDIR="
compiling nmatrix.cpp
g++-4.8: error: unrecognized command line option '-Wdivision-by-zero'
g++-4.8: error: unrecognized command line option '-Wextra-tokens'
make: *** [nmatrix.o] Error 1
make "DESTDIR="
compiling nmatrix.cpp
g++-4.8: error: unrecognized command line option '-Wdivision-by-zero'
g++-4.8: error: unrecognized command line option '-Wextra-tokens'
make: *** [nmatrix.o] Error 1
```
I have added a comment in the issue also : https://github.com/SciRuby/nmatrix/issues/426#issuecomment-275828218
To install it manually I followed this : https://github.com/SciRuby/nmatrix/wiki/Installation#mac-os-x and tried `bundle install` but I get the same error.
Also same error in this : https://github.com/SciRuby/nmatrix/wiki/Installation#standard-installation-procedure
Need to check some dependencies. I am searching for the solution.
--
Shekhar
> > 4. mailto:sciruby-dev+unsub...@googlegroups.com
rake aborted!
Don't know how to build task 'compile' (see --tasks)
/Users/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `eval'
/Users/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
--
You received this message because you are subscribed to the Google Groups "SciRuby Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sciruby-dev+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to sciruby-dev...@googlegroups.com.