The problem that Mysql cannot be installed using Gem in Mac OS

Source: Internet
Author: User

The problem that Mysql cannot be installed using Gem in Mac OS is that when Mysql is installed using Gem in Mac OS, the following error occurs: www.2cto.com Java code Building native extensions. this cocould 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_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 seems to be caused by the lack of some files, so I looked at/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/bin/ruby extconf. rb found extconf. rb seems to require Mysql PATH, so execute: Java code export PATH = $ PATH:/usr/local/mysql/bin sudo gem install mysql-V' 2. 8.1 'problem solved: www.2cto.com Java code Building native extensions. this cocould take a while... successfully installed mysql-2.8.1 1 gem installed Installing ri documentation for mysql-2.8.1... installing RDoc documentation for mysql-2.8.1...

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.