Issues with installing mysql gem after Mountain Lion upgrade

By rainkinz on Jan 24, 2013, comments 25

I was having a problem with ruby. After upgrading I reinstalled bundler and bundle installed only to find the mysql gem was failing to install. Weird, it installed fine way back when. This is the error:

$ gem install mysql
Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
    ERROR: Failed to build gem native extension.

        /Users/brendan/.rbenv/versions/1.9.3-p374/bin/ruby extconf.rb
checking for mysql_ssl_set()... *** 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=/Users/brendan/.rbenv/versions/1.9.3-p374/bin/ruby
    --with-mysql-config
    --without-mysql-config
/Users/brendan/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
    from /Users/brendan/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0'
    from /Users/brendan/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/mkmf.rb:476:in `try_link'
    from /Users/brendan/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/mkmf.rb:619:in `try_func'
    from /Users/brendan/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/mkmf.rb:894:in `block in have_func'
    from /Users/brendan/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
    from /Users/brendan/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
    from /Users/brendan/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/mkmf.rb:254:in `open'
    from /Users/brendan/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
    from /Users/brendan/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/mkmf.rb:254:in `open'
    from /Users/brendan/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
    from /Users/brendan/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
    from /Users/brendan/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/mkmf.rb:893:in `have_func'
    from extconf.rb:45:in `<main>'


Gem files will remain installed in /Users/brendan/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/mysql-2.9.0 for inspection.
Results logged to /Users/brendan/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/mysql-2.9.0/ext/mysql_api/gem_make.out

I thought the error about developer tools was referring to a lack of a proper compiler, but I have Xcode and Command Line Tools installed.

Anyway, long story short. The 'trick' was to uninstall mysql and re-install it. My guess there was a link error, though I'm sorry to say I didn't dig into it too much. I'm using homebrew and I installed mysql before upgrading to Mountain Lion, so:

brew uninstall mysql
brew cleanup # I also did a cleanup but not sure if that is necessary
brew install mysql
gem install mysql
5776
Eb70bfbeb8a9011725e4830beda6e4ef.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest Jake on Sep 11, 2015 at 9:52 AM

I know the feeling...Finally, you end up going to work, woirnkg, going back home, cooking, eating, doing house chores and then going to bed.Repeat in absurdum.No time or energy for people that you actually care about or for just being a little lazy for a change.Ah, well, shit happens.Add oil, add oil!

5954
913b8c5d9c31a09533880b4ae7c43c16.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest Foge on Jan 06, 2016 at 8:21 PM

Holy Todleo, so glad I clicked on this site first!

6348
3a4ef452d087c2af4c094e81ba738c91.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest Tawnya on May 21, 2017 at 1:52 AM

chesp major league baseball jerseys authentic nike nfl jerseys china

6415
162ac220a7ba66ab378417384101a99e.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest TerryLamma on Oct 02, 2017 at 7:21 PM

Writing doctoral dissertation is a prerequisite before a PhD degree conferred to you. It usually entails conducting some form of research. Dissertation writing is therefore not among the simplest form of writing you will come across. Dissertation writing process will normally begin by selecting of a topic or a concept. The topic should be on a relevant field and that which would lead to development of new knowledge in the field. While selecting a topic for dissertation writing, ensures that your topic is simple, realistic and attainable. After you have decided on a topic, you need to embark on writing a dissertation proposal. A dissertation proposal is a detailed work plan that provides specific details on how your dissertation project will be conducted. The proposal should contain; an introduction of the topic, the problem statement of your dissertation, objectives, research questions and hypothesis of your study and research methods you plan on using. A proposal in dissertation writing should also contain a literature review. A literature review is a detailed analysis of what other authors have said about your topic of study. The dissertation proposal should also include a work schedule and a budget plan for your dissertation project. After writing your proposal the next step is the collection and analysis of data. There are many approaches for collecting and analyzing data and the choice of these will dependent on the study. Then next is the actual dissertation writing. Dissertation papers should contain all those details included in the proposals. It should also encompass chapters that present the results and finding of the study. Dissertation writing should follow specific structure and style of formatting. This again will vary depending on your study type, institution or field of study. This process of dissertation writing consumes a lot of time and requires a lot of expertise and experience. These sometimes present a challenge to many students when it comes to dissertation writing. We are now providing dissertation writing services. We are offering dissertation papers for a variety of academic fields including; history, sciences, business, psychology and literature among many others. We have highly experienced writers who are also experts in dissertation writing. These dissertation writers are all PhD graduates who have years of practice in writing and have never disappointed when it comes to writing dissertation papers. Our writers will ensure that all the standards for your dissertation writing are adhered to. Though some standard requirement will vary from one dissertation papers to the other, there are some dissertation writing standard requirements that apply to all dissertation papers. One of them is the use of correct language, sentences, spelling and punctuations. Errors committed in such areas my completely alter what you intended to communicate in your dissertations. Another requirement is that your dissertation papers should be original and plagiarism free. To ensure that our papers remain 100 percent original and non-plagiarized we have instructed our writers to always start the writing process from scratch. We also scan all our papers using plagiarism checking software before we hand them over to our client. When you purchase our dissertation writing services, you receive papers that are guaranteed to satisfy your individual needs. This is because all our dissertation papers are custom written which ensures that we are able to adhere to our customers' concerns and focus in meeting their expectations. Our dissertation writing services are also available at affordable prices.

6417
6aaeeadb58e777d2083a5ea00b0bb58e.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest Jefferson on Oct 09, 2017 at 11:59 AM

authentic jerseys suppliers cheap.Order authentic jerseys suppliers cheap
from China via Jersey777, Free shipping. "Cheap authentic nfl jerseys for sale has come as described on the photo, fast delivery also.

6418
B72b0a2c6f13f93575cff759359aa3ec.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest FelixFum on Oct 10, 2017 at 3:27 AM

Writing a medical thesis or dissertation is a task done by almost all postgraduate and master's medical students. Dissertation is derived from the Latin word disserto which means discuss. It is essential to write successful medical papers such as medicine essays and medical thesis papers. There are several reasons as to why students write medicine essays. One of the reasons is to promote enhancement of critical judgment, research skills as well as analytical skills. Moreover, medicine essay writing produce students with the ability to 4evaluate and analyze data critically.

The initial step for writing medicine essays is to choose a topic. A writer should have at least three topics to choose from. The topic has to be interesting, feasible and relevant. It is essential to write quality medicine essay. Hence, students need to have analytical skills and perfect writing skills. The writing skills will enable them write outstanding essay papers that can be highly regarded by instructors and professors. Teachers often require a lot and expect a lot from their students in terms of medicine essay writing. for this reason, students find essay writing to be an extremely difficult task and hence resort to buying custom medicine essays.

A custom medicine essay has to be written by professional writers who are qualified in the field of nursing. Moreover, the custom medicine essay has to be original and plagiarism free. This means that it has to be written from scratch by experts with many years experience. The many years experience should enable a writer to write any form of medical paper including medical thesis, medicine essay and even medicine research paper. Moreover, experience will enable a writer to write a medicine essay that can guarantee academic success.

Students get custom medicine essays from custom writing company. It is essential to choose the best company so that one can get the best custom medicine essay. The best and the most reliable medicine essay writing company should have some unique characteristics such as affordability and the ability to provide original and superior quality medicine essays. The other quality is that the company has to hire expert writers who can write quality medicine essays and other types of medical papers. The essays should not only be quality but also plagiarism free and free of grammatical and spelling mistakes.

A custom medicine essay has a similar structure to any other academic essay assignment. It has an introduction that introduces the topic and tells the reader what the essay is all about. The second section is the body that has many paragraphs supporting the main topic. Finally there is the conclusion that briefly summarizes what has been discussed in the body section of the essay. Students should choose reliable writing companies so that they can get quality custom papers on several fields such as technology, sociology and law in addition to medicine field.

Our custom writing company is the best company that all clients should rely on when in need of any given type of medicine paper. We provide quality papers that not only plagiarism free but also original. Moreover, our custom papers are affordable and able to guarantee academic excellence at all times. All our medical papers are reliable and sure of satisfying clients at all times.

 

6334
1fe3603ca7a195467133d77a7fcd6b35.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest Aleida on Jan 28, 2017 at 7:03 AM

іs wholesale cheap jerseys china legit cheap nhl practice jerseys

6335
0d7da2a81e3ad379658a9bea0e33ca5a.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest Hamish on Feb 02, 2017 at 1:43 PM

cheap nba jersehs direct chheap soccer replica uniforms

6346
3b9f146f9dc2820a9a29662ecdcb1a7a.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest Wendell on May 20, 2017 at 10:20 AM

soccer wholesale cheeap russell wilsson youth jersey

Comment: