mysql - Error when trying to install app with mysql2 gem -
im trying install open source rails 3.2.21 application uses mysql2
gem, when try , run bundle
commant following error:
fetching: mysql2-0.3.18.gem (100%) building native extensions. take while... p error: error installing mysql2: error: failed build gem native extension. /users/my_username/.rvm/rubies/ruby-2.1.2/bin/ruby -r ./siteconf20150614-72129-orqsb7.rb extconf.rb checking ruby/thread.h... yes checking rb_thread_call_without_gvl() in ruby/thread.h... yes checking rb_thread_blocking_region()... yes checking rb_wait_for_single_fd()... yes checking rb_hash_dup()... yes checking rb_intern3()... yes ----- using mysql_config @ /usr/local/bin/mysql_config ----- checking mysql.h... yes checking errmsg.h... yes checking mysqld_error.h... yes ----- don't know how set rpath on system, if mysql libraries not in path mysql2 may not load ----- ----- setting libpath /usr/local/cellar/mysql/5.6.25/lib ----- creating makefile make "destdir=" clean make "destdir=" compiling client.c compiling infile.c compiling mysql2_ext.c compiling result.c linking shared-object mysql2/mysql2.bundle ld: warning: directory not found option '-l/users/travis/.sm/pkg/active/lib' ld: library not found -lssl clang: error: linker command failed exit code 1 (use -v see invocation) make: *** [mysql2.bundle] error 1 make failed, exit code 2 gem files remain installed in /users/my_username/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/mysql2-0.3.18 inspection. results logged /users/my_username/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/extensions/x86
i tried uninstalling every version of mysql
installed via homebrew , reinstalling them, so:
brew uninstall --force mysql && brew install mysql
then running:
sudo gem install mysql2
as suggested number of similar questions asked on here, still results in same error above.
please offer guidance on how , running?
the error log says:
ld: library not found -lssl
so, need install libssl
:
brew install openssl
hope helps.
Comments
Post a Comment