Note that there are some explanatory texts on larger screens.

plurals
  1. POInstalling MySQL with rails without Xcode
    primarykey
    data
    text
    <p>Is there anyway I could install MySQL gem for rails without Xcode? Many sites have mentioned XCode as optional requirement for installation. But Command line tools is installed.</p> <p>I have installed rails , ruby, homebrew, MacPorts without XCode.But MySql gem could not be installed</p> <p>Note: I have installed Command line tools for Xcode. But not full Xcode.</p> <p>I have followed these references,</p> <p><a href="https://stackoverflow.com/questions/6340174/mysql-gem-on-osx-10-7-lion">http://scotty-t.com/2012/04/02/intstalling-mysql-5-5-on-os-x-mountain-lion/</a></p> <p><a href="https://stackoverflow.com/questions/6340174/mysql-gem-on-osx-10-7-lion">With setting path in bash_profile</a></p> <p>But I keep on getting these errors while trying </p> <pre><code>sudo gem install mysql </code></pre> <p>Errors</p> <pre><code>Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb 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 </code></pre> <p><code> checking for mysql/mysql.h... no <strong>* extconf.rb failed *</strong> 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.</p> <p>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=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby --with-mysql-config --without-mysql-config</p> <p>Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.9.0 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.9.0/ext/mysql_api/gem_make.out </code></p> <p>Should I install XCode first? Thanks in advance!</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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