josephwilk / rsemantic

A document vector search with flexible matrix transforms. Currently supports Latent semantic analysis and Term frequency - inverse document frequency
http://github.com/josephwilk/rsemantic/wikis/home
146 stars 26 forks source link

Ruby 2.1 installation problems #17

Open abashinyan opened 10 years ago

abashinyan commented 10 years ago

Hi, I have some problem to install rsemantic gem with ruby 2.1 (2.0 work fine) i have rb-gsl installed and gsl 1.15 lib.

gem_make.out

/home/y/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb
checking gsl version... 1.15
checking gsl cflags... -I/usr/local/include
checking for main() in -lcblas... no
checking gsl libs... -L/usr/local/lib -lgsl -lgslcblas -lm
checking for round()... yes
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.15.3
checking ruby version... 2.1.1
checking for graph... yes
checking for narray.h... yes
checking for tamu_anova/tamu_anova.h... no
checking for main() in -ltamuanova... no
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling multimin_fsdf.c
compiling cqp.c
compiling histogram_find.c
compiling sf_expint.c
compiling const_additional.c
compiling qrng.c
compiling sf_ellint.c
compiling sf_lambert.c
compiling histogram2d.c
histogram2d.c: In function ‘mygsl_histogram2d_calloc_integrate’:
histogram2d.c:860:5: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
histogram2d.c:865:5: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
histogram2d.c:869:5: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
histogram2d.c:870:7: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
compiling eigen.c
eigen.c: In function ‘rb_gsl_eigen_genv_QZ’:
eigen.c:2075:2: warning: ‘vevec’ may be used uninitialized in this function [-Wmaybe-uninitialized]
eigen.c:2075:2: warning: ‘vbeta’ may be used uninitialized in this function [-Wmaybe-uninitialized]
eigen.c:2075:2: warning: ‘valpha’ may be used uninitialized in this function [-Wmaybe-uninitialized]
eigen.c: In function ‘rb_gsl_eigen_genv’:
eigen.c:2024:2: warning: ‘vevec’ may be used uninitialized in this function [-Wmaybe-uninitialized]
eigen.c:2024:2: warning: ‘vbeta’ may be used uninitialized in this function [-Wmaybe-uninitialized]
eigen.c:2024:2: warning: ‘valpha’ may be used uninitialized in this function [-Wmaybe-uninitialized]
eigen.c: In function ‘rb_gsl_eigen_gen_QZ’:
eigen.c:1910:2: warning: ‘vbeta’ may be used uninitialized in this function [-Wmaybe-uninitialized]
eigen.c:1910:2: warning: ‘valpha’ may be used uninitialized in this function [-Wmaybe-uninitialized]
eigen.c: In function ‘rb_gsl_eigen_gen’:
eigen.c:1865:2: warning: ‘vbeta’ may be used uninitialized in this function [-Wmaybe-uninitialized]
eigen.c:1865:2: warning: ‘valpha’ may be used uninitialized in this function [-Wmaybe-uninitialized]
eigen.c: In function ‘rb_gsl_eigen_nonsymmv_Z’:
eigen.c:1260:23: warning: ‘Z’ may be used uninitialized in this function [-Wmaybe-uninitialized]
eigen.c:1260:23: warning: ‘evec’ may be used uninitialized in this function [-Wmaybe-uninitialized]
eigen.c:1260:23: warning: ‘v’ may be used uninitialized in this function [-Wmaybe-uninitialized]
eigen.c: In function ‘rb_gsl_eigen_nonsymmv’:
eigen.c:1125:21: warning: ‘evec’ may be used uninitialized in this function [-Wmaybe-uninitialized]
eigen.c:1125:21: warning: ‘v’ may be used uninitialized in this function [-Wmaybe-uninitialized]
compiling root.c
compiling multiset.c
compiling sf_gegenbauer.c
compiling ieee.c
compiling dirac.c
dirac.c: In function ‘rb_Dirac_matrix_whoami’:
dirac.c:341:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:341:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:341:3: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:342:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:342:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:342:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:342:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:342:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:343:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:343:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:343:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:343:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:343:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:343:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:344:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:344:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:344:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:344:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:345:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
dirac.c:345:8: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
compiling sum.c
compiling sf_mathieu.c
compiling sf_gamma.c
compiling sf_transport.c
compiling sort.c
compiling blas2.c
compiling gsl.c
compiling vector.c
In file included from vector.c:28:0:
vector_source.c: In function ‘rb_gsl_vector_new’:
vector_source.c:286:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c: In function ‘rb_gsl_vector_get’:
vector_source.c:351:11: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
In file included from vector.c:28:0:
vector_source.c: In function ‘rb_gsl_vector_set_subvector’:
vector_source.c:415:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c: In function ‘rb_gsl_vector_reverse_each’:
vector_source.c:514:3: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
vector_source.c: In function ‘rb_gsl_vector_reverse_each_index’:
vector_source.c:535:3: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
vector_source.c: In function ‘rb_gsl_vector_trans_bang’:
vector_source.c:676:37: error: assignment of read-only member ‘klass’
vector_source.c:677:46: error: assignment of read-only member ‘klass’
vector_source.c: In function ‘rb_gsl_vector_connect’:
vector_source.c:760:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c:772:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c: In function ‘rb_gsl_vector_to_s’:
vector_source.c:1348:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c: In function ‘rb_gsl_vector_subvector_with_stride’:
vector_source.c:1412:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c: In function ‘mygsl_vector_shift’:
vector_source.c:1490:3: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
vector_source.c: In function ‘mygsl_vector_shift_scale2’:
vector_source.c:1500:3: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
vector_source.c: In function ‘rb_gsl_vector_to_gplot’:
vector_source.c:1620:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c: In function ‘mygsl_vector_to_m_circulant’:
vector_source.c:1702:3: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
vector_source.c: In function ‘rb_gsl_vector_delete_at’:
vector_source.c:2160:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c: In function ‘rb_gsl_vector_zip’:
vector_source.c:2874:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c:2878:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c:2885:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from vector.c:34:0:
vector_source.c: In function ‘parse_subvector_args’:
vector_source.c:98:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c:98:66: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c: In function ‘rb_gsl_vector_int_new’:
vector_source.c:286:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c: In function ‘rb_gsl_vector_int_get’:
vector_source.c:351:11: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
In file included from vector.c:34:0:
vector_source.c: In function ‘rb_gsl_vector_int_set_subvector’:
vector_source.c:415:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c: In function ‘rb_gsl_vector_int_reverse_each’:
vector_source.c:514:3: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
vector_source.c: In function ‘rb_gsl_vector_int_reverse_each_index’:
vector_source.c:535:3: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
vector_source.c: In function ‘rb_gsl_vector_int_trans_bang’:
vector_source.c:683:41: error: assignment of read-only member ‘klass’
vector_source.c:684:50: error: assignment of read-only member ‘klass’
vector_source.c: In function ‘rb_gsl_vector_int_connect’:
vector_source.c:760:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c:772:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c: In function ‘rb_gsl_vector_int_to_s’:
vector_source.c:1348:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c: In function ‘rb_gsl_vector_int_subvector_with_stride’:
vector_source.c:1412:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c: In function ‘mygsl_vector_int_shift’:
vector_source.c:1490:3: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
vector_source.c: In function ‘mygsl_vector_int_shift_scale2’:
vector_source.c:1500:3: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
vector_source.c: In function ‘rb_gsl_vector_int_to_gplot’:
vector_source.c:1620:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c: In function ‘mygsl_vector_int_to_m_circulant’:
vector_source.c:1702:3: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
vector_source.c: In function ‘rb_gsl_vector_int_delete_at’:
vector_source.c:2160:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c: In function ‘rb_gsl_vector_int_delete’:
vector_source.c:2212:20: warning: signed and unsigned type in conditional expression [-Wsign-compare]
vector_source.c: In function ‘rb_gsl_vector_int_zip’:
vector_source.c:2874:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c:2878:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
vector_source.c:2885:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make: *** [vector.o] Error 1

make failed, exit code 2
josephwilk commented 10 years ago

Seems people are having problems with gsl and ruby 2.1 https://github.com/romanbsd/rb-gsl/issues/10 Another ruby gsl binding https://github.com/SciRuby/rb-gsl was suggested as working.

If that fixes the problem for you happy to bump a new version with that dependency.

onli commented 10 years ago

Seems I have the same or a similiar issue. I didn't get deep enough to guarantee that it works correctly, but on the surface, https://github.com/SciRuby/rb-gsl can be installed, gsl not. Would be very happy if that could be fixed like that.

mepatterson commented 9 years ago

+1 SciRuby's rb-gsl installs for me, but rsemantic does not.

josephwilk commented 9 years ago

I don't have a huge amount of time to devote to this right now.

Very happy to accept Pull Requests with any improvements.

Thanks!