install ruby-gsl in Ubuntu Precise - ruby

I have Ubuntu Precise and can't find in the software repo any lapack or blas. When I run
sudo gem install gsl
I get an error output. I have gsl 1.15. The output is as follows
Building native extensions. This could take a while...
ERROR: Error installing gsl:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking gsl version... 1.15
checking gsl cflags... -I/usr/include
checking for main() in -lcblas... no
checking gsl libs... -L/usr/lib -lgsl -lgslcblas -lm
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... yes
NOTE: Gem.searcher is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.searcher called from extconf.rb:245.
NOTE: Gem::GemPathSearcher#initialize is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::GemPathSearcher#initialize called from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:951.
NOTE: Gem::GemPathSearcher#find is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::GemPathSearcher#find called from extconf.rb:245.
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. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_zeta.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c histogram3d.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c matrix.c
In file included from matrix.c:31:0:
matrix_source.c: In function ‘rb_gsl_matrix_to_s’:
matrix_source.c:878:11: warning: variable ‘min’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c siman.c
siman.c: In function ‘rb_gsl_siman_solver_solve’:
siman.c:572:38: warning: variable ‘ppp’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c deriv.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sort.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_dilog.c
sf_dilog.c: In function ‘rb_gsl_sf_complex_dilog_e’:
sf_dilog.c:29:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c const_additional.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c nmf_wrap.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_airy.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c bspline.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c matrix_double.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_mathieu.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c const.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c dht.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c root.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c signal.c
signal.c: In function ‘rb_gsl_fft_conv_corr’:
signal.c:108:28: warning: variable ‘stride3’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c ool.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c gsl.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c fft.c
fft.c: In function ‘rb_fft_complex_trans’:
fft.c:466:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
fft.c: In function ‘rb_gsl_fft_complex_transform’:
fft.c:500:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
fft.c: In function ‘rb_gsl_fft_complex_transform2’:
fft.c:520:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
fft.c: In function ‘rb_fft_real_trans’:
fft.c:669:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
fft.c: In function ‘rb_fft_halfcomplex_trans’:
fft.c:733:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c stats.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c rng.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c randist.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c oper_complex_source.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c multiset.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_lambert.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c histogram_oper.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c alf.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c array.c
array.c: In function ‘cvector_set_from_narray’:
array.c:260:7: warning: variable ‘size’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_coulomb.c
sf_coulomb.c: In function ‘rb_gsl_sf_hydrogenicR_e’:
sf_coulomb.c:38:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
sf_coulomb.c: In function ‘rb_gsl_sf_coulomb_wave_FG_array’:
sf_coulomb.c:90:16: warning: variable ‘stride’ set but not used [-Wunused-but-set-variable]
sf_coulomb.c: In function ‘rb_gsl_sf_coulomb_wave_FGp_array’:
sf_coulomb.c:115:16: warning: variable ‘stride’ set but not used [-Wunused-but-set-variable]
sf_coulomb.c: In function ‘rb_gsl_sf_coulomb_CL_array’:
sf_coulomb.c:168:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_debye.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c multimin_fsdf.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_elementary.c
sf_elementary.c: In function ‘rb_gsl_sf_multiply_e’:
sf_elementary.c:19:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
sf_elementary.c: In function ‘rb_gsl_sf_multiply_err_e’:
sf_elementary.c:31:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c poly2.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c blas1.c
Does anyone have a suggestion what I am missing or how I can install ruby-gsl and make it work?

This guy had a similar issue: Problems installing gsl gem
It would seem, from the top answer, that gsl 1.15 is not compatible with ruby-gsl, and that reverting to version 1.14 is necessary? You mention that you use gsl 1.15 in your post, so perhaps that is your issue?

Related

Compiling dhex under MINGW64?

I've downloaded dhex_0.69.tar.gz from http://www.dettus.net/dhex/ and unpacked it. The Readme says simply to run make.
When I try to build it in MSYS2 shell on Windows 10, compilation and linking proceed without any problems, I get an .exe, which works fine:
user#PC MSYS /d/src/dhex_0.69
$ make
gcc buffers.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc configfile.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc correlation.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc gpl.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc hexcalc.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc input.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc machine_type.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc main.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc markers.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc menu.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc output.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc search.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc ui.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc -L/usr/lib -L/usr/local/lib -L/usr/lib/ncurses -L/usr/local/lib/ncurses -o dhex buffers.o configfile.o correlation.o gpl.o hexcalc.o input.o machine_type.o main.o markers.o menu.o output.o search.o ui.o -lncurses
However, this .exe will then depend on msys-ncursesw6.dll and msys-2.0.dll when ran outside of the MSYS shell (so, when ran in Command Prompt cmd.exe, which does raise an error - or in Power Shell, which does not raise an error; the program simply exits there).
So, I wanted to try and build it in MINGW64. Compilation completes, but with warning - and linking fails due to undefined reference to '_impure_ptr':
user#PC MINGW64 /d/src/dhex_0.69
$ make
gcc buffers.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc configfile.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc correlation.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
correlation.c: In function 'find_longestmatch':
correlation.c:41:28: warning: unknown conversion type character 'l' in format [-Wformat=]
else fprintf(stderr,"%16lli\r",((tInt64)buf1->bufsize-pos1));
^
correlation.c:41:23: warning: too many arguments for format [-Wformat-extra-args]
else fprintf(stderr,"%16lli\r",((tInt64)buf1->bufsize-pos1));
^~~~~~~~~~
correlation.c: In function 'find_bestmatch':
correlation.c:129:28: warning: unknown conversion type character 'l' in format [-Wformat=]
else fprintf(stderr,"%16lli\r",((tInt64)buf1->bufsize-pos1));
^
correlation.c:129:23: warning: too many arguments for format [-Wformat-extra-args]
else fprintf(stderr,"%16lli\r",((tInt64)buf1->bufsize-pos1));
^~~~~~~~~~
correlation.c: In function 'find_mindiff':
correlation.c:210:28: warning: unknown conversion type character 'l' in format [-Wformat=]
else fprintf(stderr,"%16lli\r",((tInt64)buf1->bufsize-pos1));
^
correlation.c:210:23: warning: too many arguments for format [-Wformat-extra-args]
else fprintf(stderr,"%16lli\r",((tInt64)buf1->bufsize-pos1));
^~~~~~~~~~
gcc gpl.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc hexcalc.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc input.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
input.c: In function 'decinput':
input.c:116:27: warning: unknown conversion type character 'l' in format [-Wformat=]
snprintf(tmpbuf,21,"%20lli",newval);
^
input.c:116:22: warning: too many arguments for format [-Wformat-extra-args]
snprintf(tmpbuf,21,"%20lli",newval);
^~~~~~~~
gcc machine_type.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc main.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
main.c: In function 'main':
main.c:765:36: warning: unknown conversion type character 'l' in format [-Wformat=]
if (gosearch1) fprintf(stderr,"%lli occurances found in %s\n",search1.occurancesfound,buf1->filename);
^
main.c:765:60: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'tInt64' {aka 'long long int'} [-Wformat=]
if (gosearch1) fprintf(stderr,"%lli occurances found in %s\n",search1.occurancesfound,buf1->filename);
~^ ~~~~~~~~~~~~~~~~~~~~~~~
%I64d
main.c:765:33: warning: too many arguments for format [-Wformat-extra-args]
if (gosearch1) fprintf(stderr,"%lli occurances found in %s\n",search1.occurancesfound,buf1->filename);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:766:36: warning: unknown conversion type character 'l' in format [-Wformat=]
if (gosearch2) fprintf(stderr,"%lli occurances found in %s\n",search2.occurancesfound,buf2->filename);
^
main.c:766:60: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'tInt64' {aka 'long long int'} [-Wformat=]
if (gosearch2) fprintf(stderr,"%lli occurances found in %s\n",search2.occurancesfound,buf2->filename);
~^ ~~~~~~~~~~~~~~~~~~~~~~~
%I64d
main.c:766:33: warning: too many arguments for format [-Wformat-extra-args]
if (gosearch2) fprintf(stderr,"%lli occurances found in %s\n",search2.occurancesfound,buf2->filename);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc markers.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
markers.c: In function 'writemarkerfile':
markers.c:94:21: warning: unknown conversion type character 'l' in format [-Wformat=]
fprintf(f,"%c%016llX\n",markers->relative[i],markers->cursorpos[i]);
^
markers.c:94:13: warning: too many arguments for format [-Wformat-extra-args]
fprintf(f,"%c%016llX\n",markers->relative[i],markers->cursorpos[i]);
^~~~~~~~~~~~~
markers.c: In function 'gotomask':
markers.c:170:25: warning: unknown conversion type character 'l' in format [-Wformat=]
snprintf(buf,17,"%c%llx",markers->relative[i],markers->cursorpos[i]);
^
markers.c:170:20: warning: too many arguments for format [-Wformat-extra-args]
snprintf(buf,17,"%c%llx",markers->relative[i],markers->cursorpos[i]);
^~~~~~~~
gcc menu.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc output.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc search.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
search.c: In function 'searchfor':
search.c:128:52: warning: unknown conversion type character 'l' in format [-Wformat=]
if (search->writesearchlog) fprintf(fwlog,"%016llx\n",(tUInt64)actcursorpos+buf->baseaddr); else done=1;
^
search.c:128:46: warning: too many arguments for format [-Wformat-extra-args]
if (search->writesearchlog) fprintf(fwlog,"%016llx\n",(tUInt64)actcursorpos+buf->baseaddr); else done=1;
^~~~~~~~~~~
gcc ui.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc -L/usr/lib -L/usr/local/lib -L/usr/lib/ncurses -L/usr/local/lib/ncurses -o dhex buffers.o configfile.o correlation.o gpl.o hexcalc.o input.o machine_type.o main.o markers.o menu.o output.o search.o ui.o -lncurses
correlation.o:correlation.c:(.rdata$.refptr._impure_ptr[.refptr._impure_ptr]+0x0): undefined reference to `_impure_ptr'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:27: dhex] Error 1
Would anyone know what I need to do, in order to have dhex compiled under MINGW64 (so it does not depend on MSYS dlls anymore)?
I downloaded the package in question and figured out how to compile it with the MinGW-w64 64-bit toolchain provided by MSYS2.
First of all, install the relevant development tools and libraries:
pacman -S base-devel mingw-w64-x86_64-{ncurses,toolchain}
Next, you need to edit the Makefile that comes with the package. The LDFLAGS, CPPFLAGS, and CFLAGS values must be modified to the following:
LDFLAGS=
CPPFLAGS= -I$(MINGW_PREFIX)/include/ncurses
CFLAGS= -D__USE_MINGW_ANSI_STDIO=1 -O3 -Wall
Some explanation: It is very bad that the Makefile has hardcoded paths in LDFLAGS and CPPFLAGS, because if you were to use those paths then you would be using files from another toolchain (the msys-2.0.dll-based one). So we need to get to get rid of those. Also, to get rid of all the warnings about printf formatting, we must supply the -D__USE_MINGW_ANSI_STDIO argument.
Then, just run make.

Installing Compass on Windows - fail - can't find dependency ffi

I run cygwin-64 bits on Windows 7. I have installed Ruby2.3 64 bit and Ruby DevKit.
I try to install Compass using ruby gems. I get this:
$gem install compass
Building native extensions. This could take a while...
Successfully installed ffi-1.9.10
ERROR: Error installing compass:
rb-inotify requires ffi (>= 0.5.0)
This is the verbose version:
$ gem install compass --verbose
HEAD https://api.rubygems.org/api/v1/dependencies
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=compass
200 OK
Getting SRV record failed: DNS result has no information for _rubygems._tcp.api.rubygems.org
GET https://api.rubygems.org/api/v1/dependencies?gems=chunky_png,compass-core,compass-import-once,rb-fsevent,rb-inotify,sass
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=ffi,multi_json
200 OK
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/COPYING
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/LICENSE
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/README.md
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/Rakefile
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/AbstractMemory.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/AbstractMemory.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/ArrayType.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/ArrayType.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/Buffer.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/Call.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/Call.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/ClosurePool.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/ClosurePool.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/DataConverter.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/DynamicLibrary.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/DynamicLibrary.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/Function.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/Function.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/FunctionInfo.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/LastError.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/LastError.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/LongDouble.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/LongDouble.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/MappedType.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/MappedType.h
...
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/struct.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/struct_layout_builder.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/tools/const_generator.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/tools/generator.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/tools/generator_task.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/tools/struct_generator.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/tools/types_generator.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/types.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/union.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/variadic.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/version.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/Benchmark.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/BoolTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/BufferTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/ClosureTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/EnumTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/FunctionTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/GNUmakefile
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/GlobalVariable.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/LastErrorTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/NumberTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/PointerTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/ReferenceTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/StringTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/StructTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/UnionTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/VariadicTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/LICENSE.SPECS
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/async_callback_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/bool_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/buffer_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/callback_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/custom_param_type.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/custom_type_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/dup_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/enum_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/errno_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/ffi_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/Benchmark.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/BoolTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/BufferTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/ClosureTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/EnumTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/FunctionTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/GNUmakefile
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/GlobalVariable.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/LastErrorTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/NumberTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/PointerTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/ReferenceTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/StringTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/StructTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/UnionTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/VariadicTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/classes.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/function_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/io_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/library_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/long_double.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/managed_struct_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/memorypointer_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/number_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/platform_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/pointer_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/rbx/attach_function_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/rbx/memory_pointer_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/rbx/spec_helper.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/rbx/struct_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/spec_helper.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/string_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/strptr_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/struct_by_ref_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/struct_callback_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/struct_initialize_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/struct_packed_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/struct_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/typedef_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/union_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/variadic_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/spec.opts
Building native extensions. This could take a while...
current directory: /home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c
/usr/bin/ruby.exe -r ./siteconf20160419-7812-1d7ip8w.rb extconf.rb
checking for ffi_call() in -lffi... yes
checking for ffi_prep_closure()... yes
checking for ffi_raw_call()... yes
checking for ffi_prep_raw_closure()... yes
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
checking for ffi_prep_cif_var()... yes
creating extconf.h
creating Makefile
current directory: /home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c
make "DESTDIR=" clean
rm -f
rm -f ffi_c.so *.o *.bak mkmf.log .*.time
current directory: /home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c
make "DESTDIR="
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o AbstractMemory.o -c AbstractMemory.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o ArrayType.o -c ArrayType.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Buffer.o -c Buffer.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Call.o -c Call.c
In file included from Call.c:62:0:
Call.c: In function ‘do_blocking_call’:
Thread.h:78:39: warning: implicit declaration of function ‘rb_thread_call_without_gvl’ [-Wimplicit-function-declaration]
# define rbffi_thread_blocking_region rb_thread_call_without_gvl
^
Call.c:368:5: note: in expansion of macro ‘rbffi_thread_blocking_region’
rbffi_thread_blocking_region(call_blocking_function, data, (void *) -1, NULL);
^
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o ClosurePool.o -c ClosurePool.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o DataConverter.o -c DataConverter.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o DynamicLibrary.o -c DynamicLibrary.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o ffi.o -c ffi.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Function.o -c Function.c
Function.c: In function ‘async_cb_event’:
Function.c:563:9: warning: implicit declaration of function ‘rb_thread_call_without_gvl’ [-Wimplicit-function-declaration]
rb_thread_call_without_gvl(async_cb_wait, &w, async_cb_stop, &w);
^
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o FunctionInfo.o -c FunctionInfo.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o LastError.o -c LastError.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o LongDouble.o -c LongDouble.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o MappedType.o -c MappedType.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o MemoryPointer.o -c MemoryPointer.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o MethodHandle.o -c MethodHandle.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Platform.o -c Platform.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Pointer.o -c Pointer.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Struct.o -c Struct.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o StructByReference.o -c StructByReference.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o StructByValue.o -c StructByValue.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o StructLayout.o -c StructLayout.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Thread.o -c Thread.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Type.o -c Type.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Types.o -c Types.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Variadic.o -c Variadic.c
rm -f ffi_c.so
gcc -shared -o ffi_c.so AbstractMemory.o ArrayType.o Buffer.o Call.o ClosurePool.o DataConverter.o DynamicLibrary.o ffi.o Function.o FunctionInfo.o LastError.o LongDouble.o MappedType.o MemoryPointer.o MethodHandle.o Platform.o Pointer.o Struct.o StructByReference.o StructByValue.o StructLayout.o Thread.o Type.o Types.o Variadic.o -L. -L/usr/lib -L. -fstack-protector -Wl,--export-all-symbols -Wl,--enable-auto-image-base,--enable-auto-import -lruby220 -lffi -lffi -lpthread -lgmp -ldl -lcrypt
current directory: /home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c
make "DESTDIR=" install
/usr/bin/mkdir -p . ./.gem.20160419-7812-9fvqix
exit > .RUBYARCHDIR.time
/usr/bin/install -c -m 0755 ffi_c.so ./.gem.20160419-7812-9fvqix
To see why this extension failed to compile, please check the mkmf.log which can be found here:
C:/cygwin64/home/vsxxame/.gem/ruby/gems/extensions/x86_64-cygwin/ffi-1.9.10/mkmf.log
Successfully installed ffi-1.9.10
ERROR: Error installing compass:
rb-inotify requires ffi (>= 0.5.0)
I get the same if I try to install rb-inotify. Other gems are installed ok, . Any hints?

GNU scientific library linking

My GNU scientific library (http://www.gnu.org/software/gsl/) installed in the path: /home/myname/gsl-1.6
My mlRho 1.7-stat prog (http://guanine.evolbio.mpg.de/mlRho/mlRho_1.7.tgz) which uses GNU scientific library-installed in:/home/myname/MlRho_1.7
my operating system: Fedora 16
original make file in mlRho
cd /home/myname/MlRho_1.7/
vim make
CC=gcc
CFLAGS= -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 \
-I/opt/local/include/ -L/opt/local/lib/
I have changed path in mlRho
CC=gcc
CFLAGS= -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 \
-I/home/myname/gsl-1.6 -L/home/myname/gsl-1.6
after making changes, I tried running make, it gives error
make
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/home/myname/gsl-1.6/include/ -L/home/myname/gsl-1.6/lib/ -c -o mlRho.o mlRho.c
In file included from mlRho.c:16:0:
mlComp.h:7:30: fatal error: gsl/gsl_sf_gamma.h: No such file or directory
compilation terminated.
make: *** [mlRho.o] Error 1
when i do make test- it gives me error below
make test
make[1]: Entering directory `/home/myname/MlRho_1.7/TestMlPi'
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/ -c -o testMlPi.o testMlPi.c
testMlPi.c: In function ‘main’:
testMlPi.c:62:67: warning: variable ‘sderr’ set but not used [-Wunused-but-set-variable]
testMlPi.c:62:60: warning: variable ‘sdhet’ set but not used [-Wunused-but-set-variable]
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/ -c -o interface.o interface.c
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/ -c -o eprintf.o eprintf.c
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/ -c -o ranNum.o ranNum.c
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/ -o testMlPi testMlPi.o interface.o eprintf.o ranNum.o -lm
make[1]: Leaving directory `/home/myname/MlRho_1.7/TestMlPi'
Output from testMlPi:
pi: 5.00e-05 epsilon: 4.90e-04 -log(L): 1.40e+05
Output from mlRho:
make: ./mlRho: Command not found
make: *** [testPi] Error 127
Output from mlRho:
make: ./mlRho: Command not found
make: *** [testPi] Error 127
It somehow GNU library not linking to mlRho programme. How to fix it?

i have an error when i install gsl (with netbeans)

I try to install gsl gem for Ruby but it doesn't work. i have a matrix_complex.o error.
So is there a solution to install gsl for netbeans ?
or is there a fonction quantile in an other library?
Any help would be appreciated.
stagiaire#stagiaire-desktop:~$ sudo gem install -v=1.14.7 gsl
Building native extensions. This could take a while...
ERROR: Error installing gsl:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking gsl version... 1.15
checking gsl cflags... -I/usr/include
checking for main() in -lcblas... no
checking gsl libs... -L/usr/lib -lgsl -lgslcblas -lm
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. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems /narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c sf_debye.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems /narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c histogram.c
histogram.c: In function ‘rb_gsl_histogram_fit_exponential’:
histogram.c:1029:24: attention : variable ‘hh’ set but not used [-Wunused-but-set-variable]
histogram.c: In function ‘rb_gsl_histogram_fit_power’:
histogram.c:1079:24: attention : variable ‘hh’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c eigen.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c histogram_oper.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c signal.c
signal.c: In function ‘rb_gsl_fft_conv_corr’:
signal.c:108:28: attention : variable ‘stride3’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c graph.c
graph.c:974:13: attention : ‘gsl_graph_set_command’ defined but not used [-Wunused-function]
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c sf_zeta.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c sf_elljac.c
sf_elljac.c: In function ‘rb_gsl_sf_elljac_e’:
sf_elljac.c:18:7: attention : variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c ieee.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c array_complex.c
array_complex.c: In function ‘rb_gsl_complex_arithmetics5’:
array_complex.c:34:9: attention : variable ‘func3’ set but not used [-Wunused-but-set-variable]
array_complex.c:33:9: attention : variable ‘func2’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c histogram3d_source.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c vector_double.c
vector_double.c: In function ‘rb_gsl_vector_normalize_bang’:
vector_double.c:872:10: attention : variable ‘mean’ set but not used [-Wunused-but-set-variable]
vector_double.c: Hors de toute fonction :
vector_double.c:692:13: attention : ‘draw_hist’ defined but not used [-Wunused-function]
vector_double.c:624:13: attention : ‘draw_vector’ defined but not used [-Wunused-function]
vector_double.c:634:13: attention : ‘draw_vector2’ defined but not used [-Wunused-function]
vector_double.c:704:13: attention : ‘draw_vector_array’ defined but not used [-Wunused-function]
vector_double.c:679:13: attention : ‘draw_narray’ defined but not used [-Wunused-function]
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c const.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c block.c
In file included from block.c:29:0:
block_source.c: In function ‘rb_gsl_block_compare’:
block_source.c:550:7: attention : variable ‘status’ set but not used [-Wunused-but-set-variable]
In file included from block.c:35:0:
block_source.c: In function ‘rb_gsl_block_int_compare’:
block_source.c:550:7: attention : variable ‘status’ set but not used [-Wunused-but-set-variable]
In file included from block.c:41:0:
block_source.c: In function ‘rb_gsl_block_uchar_compare’:
block_source.c:550:7: attention : variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c sf_dawson.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c fcmp.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c matrix_complex.c
matrix_complex.c: In function ‘rb_gsl_matrix_complex_eye’:
matrix_complex.c:202:19: attention : variable ‘p’ set but not used [-Wunused-but-set-variable]
matrix_complex.c: In function ‘rb_gsl_matrix_complex_set_row’:
matrix_complex.c:410:19: attention : variable ‘pz’ set but not used [-Wunused-but-set-variable]
matrix_complex.c: In function ‘rb_gsl_matrix_complex_set_col’:
matrix_complex.c:436:19: attention : variable ‘pz’ set but not used [-Wunused-but-set-variable]
matrix_complex.c: In function ‘rb_gsl_matrix_complex_inspect’:
matrix_complex.c:654:3: attention : format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ [-Wformat]
matrix_complex.c:654:3: attention : format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ [-Wformat]
matrix_complex.c: Hors de toute fonction :
matrix_complex.c:1523:12: erreur: conflicting types for ‘gsl_matrix_complex_equal’
/usr/include/gsl/gsl_matrix_complex_double.h:227:5: note: previous declaration of ‘gsl_matrix_complex_equal’ was here
make: *** [matrix_complex.o] Erreur 1
Gem files will remain installed in /var/lib/gems/1.8/gems/gsl-1.14.7 for inspection.
Results logged to /var/lib/gems/1.8/gems/gsl-1.14.7/ext/gem_make.out
stagiaire#stagiaire-desktop:~$
Getting some clues from https://github.com/romanbsd/rb-gsl/issues/2 I did the following on Ubuntu:
Uninstalled my existing gsl:
sudo apt-get remove gsl-bin libgsl0-dev libgsl0ldbl
Built a new gsl
wget ftp.gnu.org/gnu/gsl/gsl-1.14.tar.gz
tar xf gsl-1.14.tar.gz
cd gsl-1.14
./configure
make
sudo make install
Installed the gem
gem install gsl
This worked for me.
The above answer works as you can simply use version ~1.14 of both the GSL and ruby bindings (rb-gsl).
However, if you have installed GSL via homebrew (brew install gsl) or prefer version 1.15 you can alternatively specify the following repo in your Gemfile for the ruby bindings:
https://github.com/whistlerbrk/rb-gsl/
which is based off of:
https://github.com/30robots/rb-gsl/
This has the patch for gsl_matrix and the first repo also has a patch for newer versions of rubygems.

How to install mysql2 on Ubuntu server 10.04 with ree-1.8.7

When I try to install mysql2 on Ubuntu with ree-1.8.7-2011.03 I get:
# gem install mysql2
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ree-1.8.7-2011.03/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... no
checking for mysql.h... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
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-linux -I. -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -D_FILE_OFFSET_BITS=64 -I/usr/include -fPIC -g -static-libgcc -fno-omit-frame-pointer -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -fPIC -g -O2 -Wall -funroll-loops -c client.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-linux -I. -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -D_FILE_OFFSET_BITS=64 -I/usr/include -fPIC -g -static-libgcc -fno-omit-frame-pointer -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -fPIC -g -O2 -Wall -funroll-loops -c mysql2_ext.c
./client.h:16: warning: ‘rb_thread_blocking_region’ 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-linux -I. -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -D_FILE_OFFSET_BITS=64 -I/usr/include -fPIC -g -static-libgcc -fno-omit-frame-pointer -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -fPIC -g -O2 -Wall -funroll-loops -c result.c
gcc -shared -o mysql2.so client.o mysql2_ext.o result.o -L. -L/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib -Wl,-R/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib -L. -rdynamic -Wl,- export-dynamic -Wl,-rpath,/usr/lib -L/usr/lib -lmysqlclient_r -lpthread -lm -lrt -ldl -L/opt/local/lib -lrt -ldl -lcrypt -lm -lc
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
make: *** [mysql2.so] Error 1
I am not sure what the error is. Any idea of the cause?

Resources