maxlapshin / mysql2postgres

Mysqldump, writing in postgresql format
MIT License
709 stars 156 forks source link

Uninitialized constant Config (NameError) while installing the gem #76

Closed ExReanimator closed 8 years ago

ExReanimator commented 9 years ago
Building native extensions.  This could take a while...
ERROR:  Error installing mysql2psql:
    ERROR: Failed to build gem native extension.

    /home/user/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150410-18170-zm4s1w.rb extconf.rb
checking for mysql_ssl_set()... yes
checking for rb_str_set_len()... yes
checking for rb_thread_start_timer()... no
checking for mysql.h... yes
*** 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=/home/user/.rvm/rubies/ruby-2.2.1/bin/$(RUBY_BASE_NAME)
    --with-mysql-config
    --without-mysql-config
extconf.rb:67:in `<main>': uninitialized constant Config (NameError)

extconf failed, exit code 1
paazmaya commented 9 years ago

Which version are you trying to install?

ExReanimator commented 9 years ago

@paazmaya the last one, from rubygems - 0.1.0.

twe4ked commented 9 years ago

Config was replaced by RbConfig in Ruby 2.2.0 (according to: https://github.com/chef/ohai/issues/453).

paazmaya commented 9 years ago

Thanks @twe4ked

paazmaya commented 8 years ago

Closing as an old issue, that would seem to be out of date. Feel free to re-open and update with comments against the master branch.