Итак, я знаю, что этот вопрос задавался ранее, и я просмотрел все предыдущие ответы и до сих пор не могу найти решение. Надеюсь, вы все можете помочь.
Настройка: я использую Mac OS X 10.6 Server. Я использовал встроенную установку MySQL в веб-приложениях, и она прекрасно работает. Сейчас я пытаюсь запустить приложение RoR, которое требует MySQL.
Итак, всякий раз, когда я ввожу
gem install mysql
выдает следующую ошибку:
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/Users/admin/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb --with-mysql-config=/var/mysql
*** 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/admin/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
--with-mysql-config
extconf.rb:35:in ``': Permission denied - /var/mysql --cflags (Errno::EACCES)
from extconf.rb:35:in `<main>'
Gem files will remain installed in /Users/admin/.rvm/gems/ruby-1.9.2-p180@rails3/gems/mysql-2.8.1 for inspection.
Results logged to /Users/admin/.rvm/gems/ruby-1.9.2-p180@rails3/gems/mysql- 2.8.1/ext/mysql_api/gem_make.out
Итак, в своих исследованиях я попытался указать место установки MySQL.
gem install mysql -- --with-mysql-config=/var/mysql
К сожалению, с такими же результатами.
Есть идеи, куда идти?
Спасибо!
Кевин