Rpg claims successful installation when extension build fails #13

Closed
richmeyers opened this Issue May 17, 2011 · 2 comments

Projects

None yet

2 participants

@richmeyers

Trying to install mysql gem without having mysql-devel rpm installed produces the following:

# rpg install mysql
          prepare: calculating dependencies for mysql ...
            fetch: mysql 2.8.1
          prepare: 0 of 1 packages already installed and up to date
          install: installing 1 packages
  package-install: mysql 2.8.1
            build: mysql-2.8.1 mysql_api
checking for mysql_ssl_set()... no
checking for rb_str_set_len()... no
checking for rb_thread_start_timer()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
*** 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/local/bin/ruby
    --with-mysql-config
    --without-mysql-config
          install: installation complete

I have to uninstall and reinstall mysql after installing mysql-devel:

# rpg install mysql     
          prepare: calculating dependencies for mysql ...
          prepare: 1 packages already installed and up to date
# rpg uninstall mysql
# rpg install mysql  
          prepare: calculating dependencies for mysql ...
          prepare: 0 of 1 packages already installed and up to date
          install: installing 1 packages
  package-install: mysql 2.8.1
            build: mysql-2.8.1 mysql_api
          install: installation complete
@rtomayko
Owner

Sorry for not getting back to you sooner. I should have a chance to look at these soon. Thanks for the reports.

@richmeyers

Should be fixed now by #25.

@richmeyers richmeyers closed this Nov 18, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment