के साथ ओएस एक्स पर MySQL 5.6.12 के साथ संकलित करने में विफल रहता है मैंने होमब्री के साथ स्थापित सभी संकुल अपडेट किए हैं। MySQL 5.6.12 पर अपग्रेड किया गया (5.5.27 या तो से):mysql2 मणि होमब्री
$ mysql --version
mysql Ver 14.14 Distrib 5.6.12, for osx10.8 (x86_64) using EditLine wrapper
और अब mysql2 मणि अब और संकलन नहीं करता है:
$ gem install mysql2
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/Users/pupeno/.rvm/rubies/ruby-1.9.3-p429-perf/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing. please check your installation of mysql and try again.
-----
*** 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/pupeno/.rvm/rubies/ruby-1.9.3-p429-perf/bin/ruby
--with-mysql-config
--without-mysql-config
फ़ाइल mysql.h
/usr/local/Cellar/mysql/5.6.12/include/mysql.h
में मौजूद है। कोई विचार क्या चल रहा है?
फ़ाइल mysql.h
/usr/local
में प्रकट नहीं होता क्योंकि सिमलिंक से यह होना चाहिए गहराई में जाने लगता है: करने के बाद कहा कि, मैं मैन्युअल रूप से सिमलिंक तय की और
$ ls -la /usr/local/include/mysql
lrwxr-xr-x 1 pupeno admin 36 21 Jun 15:18 /usr/local/include/[email protected] -> ../Cellar/mysql/5.6.12/include/mysql
बजाय
/usr/local/Cellar/mysql/5.6.12/include
संकलन अभी भी असफल रहा। तो मैं अटक गया हूँ।
क्या आपके पास mysql डेवलपर लाइब्रेरी स्थापित है? –
@HunterMcMillen मैंने सोचा कि सभी विकास फ़ाइलों को आपके mysql brew पैकेज के साथ स्थापित किया गया था। मैं क्या खो रहा हूँ? – Pablo
होमब्रू + rbenv हमेशा मेरे लिए काम किया है। क्या यह एक आरवीएम मुद्दा हो सकता है? साथ ही, 'mysql.h' वास्तव में मौजूद है जहां आपको लगता है कि यह है? – tadman