Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't install mysql2 gem ... (side stuff on homebrew too)
    primarykey
    data
    text
    <p>ok, feel super dumb about asking a question that's apparently been asked multiple times. apologies in advance. </p> <p>am following this tutorial: <a href="http://squarism.com/2011/04/01/how-to-write-a-ruby-rails-3-rest-api/" rel="nofollow">http://squarism.com/2011/04/01/how-to-write-a-ruby-rails-3-rest-api/</a></p> <p>it requires mysql2 ... </p> <p>tried to install it via "gem install mysql2"</p> <p>this is what i get: </p> <pre><code>Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /Users/name_withheld/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for rb_thread_blocking_region()... yes checking for rb_wait_for_single_fd()... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lm... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lz... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lsocket... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lnsl... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lmygcc... no checking for mysql_query() in -lmysqlclient... 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 --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=/Users/name_withheld/.rvm/rubies/ruby-1.9.3-p194/bin/ruby --with-mysql-config --without-mysql-config --with-mysql-dir --without-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib --without-mysql-lib=${mysql-dir}/lib --with-mysqlclientlib --without-mysqlclientlib --with-mlib --without-mlib --with-mysqlclientlib --without-mysqlclientlib --with-zlib --without-zlib --with-mysqlclientlib --without-mysqlclientlib --with-socketlib --without-socketlib --with-mysqlclientlib --without-mysqlclientlib --with-nsllib --without-nsllib --with-mysqlclientlib --without-mysqlclientlib --with-mygcclib --without-mygcclib --with-mysqlclientlib --without-mysqlclientlib Gem files will remain installed in /Users/name_withheld/.rvm/gems/ruby-1.9.3-p194/gems/mysql2-0.3.11 for inspection. Results logged to /Users/name_withheld/.rvm/gems/ruby-1.9.3-p194/gems/mysql2-0.3.11/ext/mysql2/gem_make.out </code></pre> <p>so, poked around and saw this solution being proposed multiple times: </p> <pre><code>sudo apt-get install libmysql-ruby libmysqlclient-dev </code></pre> <p>unfortunately, i get: "command not found" ... </p> <p>kind of at loss ... </p> <p>wanted to do it via homebrew (since it seemed "simple") ... but there are several problems with that ... </p> <ul> <li>really unfamiliar with it ... </li> <li>not sure if i have it or not ... </li> </ul> <p>so, tried brew update to see what i'd get ... this is what i got: </p> <pre><code>/usr/local/.git: Permission denied Error: Failure while executing: git init </code></pre> <p>so ... tried to delete it via this code from here: <a href="https://gist.github.com/1173223" rel="nofollow">https://gist.github.com/1173223</a></p> <p>it doesn't seem to have done anything, and it kind of froze up, so quit it ... </p> <p>not sure what to do now ... first priority is clearly trying to get mysql2 gem installed if possible ... homebrew is just side stuff ... </p> <p>any other information needed here? any clarification need with my question? and sorry, didn't mean to make this question so long! just trying to cover as many bases as possible. </p> <p>thanks in advance. </p> <p>oh, my version of mac is 10.6.8 if that makes any difference ... </p> <p>just tried one more thing: "brew install mysql" (via another stackoverflow question) </p> <p>this is what i get: </p> <pre><code>Error: Cannot write to /usr/local/Cellar </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
 

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