princelab / mspire-simulator

Options Builder
http://psoda2.cs.byu.edu/~anoyce/sim_option_builder.php
Other
6 stars 1 forks source link

Installation fails for mspire-simulator #1

Open iquasere opened 4 years ago

iquasere commented 4 years ago

Greetings

I have been trying to install your tool to simulate MS data, so I installed ruby.

sudo apt install ruby-dev

Then attempted to install mspire-simulator.

sudo gem install mspire-simulator

And got an error.

Building native extensions. This could take a while...
ERROR:  Error installing mspire-simulator:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.5.0/gems/sqlite3-1.3.6/ext/sqlite3
/usr/bin/ruby2.5 -r ./siteconf20191216-9239-v0mm0y.rb extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** 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.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/$(RUBY_BASE_NAME)2.5
        --with-sqlite3-dir
        --without-sqlite3-dir
        --with-sqlite3-include
        --without-sqlite3-include=${sqlite3-dir}/include
        --with-sqlite3-lib
        --without-sqlite3-lib=${sqlite3-dir}/lib
        --enable-local
        --disable-local

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/sqlite3-1.3.6/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.5.0/gems/sqlite3-1.3.6 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/sqlite3-1.3.6/gem_make.out

Is there a known solution for this issue?

iquasere commented 4 years ago

So I noticed some packages were missing on my end. After

sudo apt-get install -y ruby-dev
sudo apt-get install -y sqlite3
sudo apt-get install -y libsqlite3-dev
sudo apt-get install -y weka
sudo apt-get install -y libfftw3-dev libfftw3-doc
gem install -y mspire-simulator

I get

Building native extensions. This could take a while...
ERROR:  Error installing mspire-simulator:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.5.0/gems/sqlite3-1.3.6/ext/sqlite3
/usr/bin/ruby2.5 -r ./siteconf20191217-9054-iz3xor.rb extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number() in -lsqlite3... yes
checking for rb_proc_arity()... yes
checking for sqlite3_initialize()... yes
checking for sqlite3_backup_init()... yes
checking for sqlite3_column_database_name()... yes
checking for sqlite3_enable_load_extension()... yes
checking for sqlite3_load_extension()... yes
checking for sqlite3_open_v2()... yes
checking for sqlite3_prepare_v2()... yes
checking for sqlite3_int64 in sqlite3.h... yes
checking for sqlite3_uint64 in sqlite3.h... yes
creating Makefile

current directory: /var/lib/gems/2.5.0/gems/sqlite3-1.3.6/ext/sqlite3
make "DESTDIR=" clean

current directory: /var/lib/gems/2.5.0/gems/sqlite3-1.3.6/ext/sqlite3
make "DESTDIR="
compiling backup.c
compiling database.c
compiling exception.c
compiling sqlite3.c
compiling statement.c
In file included from statement.c:1:0:
statement.c: In function ‘bind_param’:
./sqlite3_ruby.h:16:24: warning: implicit declaration of function ‘RBIGNUM’; did you mean ‘T_BIGNUM’? [-Wimplicit-function-declaration]
 #define RBIGNUM_LEN(x) RBIGNUM(x)->len
                        ^
statement.c:262:11: note: in expansion of macro ‘RBIGNUM_LEN’
       if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) {
           ^~~~~~~~~~~
./sqlite3_ruby.h:16:34: error: invalid type argument of ‘->’ (have ‘int’)
 #define RBIGNUM_LEN(x) RBIGNUM(x)->len
                                  ^
statement.c:262:11: note: in expansion of macro ‘RBIGNUM_LEN’
       if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) {
           ^~~~~~~~~~~
statement.c:262:32: error: ‘SIZEOF_BDIGITS’ undeclared (first use in this function); did you mean ‘SIZEOF_INT’?
       if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) {
                                ^~~~~~~~~~~~~~
                                SIZEOF_INT
statement.c:262:32: note: each undeclared identifier is reported only once for each function it appears in
Makefile:242: recipe for target 'statement.o' failed
make: *** [statement.o] Error 1

make failed, exit code 2

Gem files will remain installed in /var/lib/gems/2.5.0/gems/sqlite3-1.3.6 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/sqlite3-1.3.6/gem_make.out
MKoesters commented 4 years ago

I'm having exactly the same problem

iquasere commented 4 years ago

I managed to simulate MS data with MSSim just recently. Still testing it for differential expression. Give it a try, the people of OpenMS are quick to help!