Note that there are some explanatory texts on larger screens.

plurals
  1. POMac OSX: MySQL gem install fail (RoR)
    primarykey
    data
    text
    <p>I'm running OSX 10.7 (Lion), and recently uninstalled MacPorts because MySQL failed to start. MySQL (64-bit) is now starting, but now I can't install the MySQL gem (Rails). I've tried using the <code>with-mysql-config</code> and the <code>ARCHFLAGS</code> option, neither of which worked. I tried reinstalling Ruby 1.9.3, which also didn't change anything. I'm currently running MySQL 5.1.61 after I thought MySQL 5.0.95 might be causing an issue. Here is the traceback:</p> <pre><code>Christy$ gem install mysql2 Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /Users/Christy/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb checking for rb_thread_blocking_region()... yes checking for rb_wait_for_single_fd()... yes checking for mysql.h... yes checking for errmsg.h... yes checking for mysqld_error.h... yes creating Makefile make compiling client.c client.c: In function ‘rb_raise_mysql2_error’: client.c:98: warning: ISO C90 forbids mixed declarations and code client.c: In function ‘rb_mysql_client_socket’: client.c:590: warning: ISO C90 forbids mixed declarations and code compiling mysql2_ext.c compiling result.c linking shared-object mysql2/mysql2.bundle ld: file not found: /opt/local/lib/libssl.1.0.0.dylib for architecture x86_64 collect2: ld returned 1 exit status make: *** [mysql2.bundle] Error 1 </code></pre> <p>I tried reinstalling openssl (thinking that <code>file not found: /opt/local/lib/libssl.1.0.0.dylib</code> might be because of that), but it still doesn't work. I'm kind of new to this, so any help would be much appreciated! Thank you!</p> <p><strong>EDIT</strong>: <code>/opt/local/lib/</code> does not exist. I don't know why it's looking there for the file. Any ideas on how to point it to the right place (<code>locate libssl</code> points to <code>/usr/lib/libssl.0.9.8.dylib</code> and <code>/usr/local/Cellar/openssl/0.9.8s/lib/libssl.0.9.8.dylib</code>, among other places)?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload