Created
February 21, 2013 13:51
-
-
Save muryoimpl/5004854 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2013/02/21 22:45]% brew install https://raw.github.com/mroonga/homebrew/master/mroonga.rb --use-homebrew-mysql | |
######################################################################## 100.0% | |
==> Installing mroonga dependency: mysql | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mysql-5.6.10.mountain_lion.bottle.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/mysql-5.6.10.mountain_lion.bottle.tar.gz | |
==> Pouring mysql-5.6.10.mountain_lion.bottle.tar.gz | |
==> Caveats | |
Set up databases to run AS YOUR USER ACCOUNT with: | |
unset TMPDIR | |
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp | |
To set up base tables in another folder, or use a different user to run | |
mysqld, view the help for mysql_install_db: | |
mysql_install_db --help | |
and view the MySQL documentation: | |
* http://dev.mysql.com/doc/refman/5.5/en/mysql-install-db.html | |
* http://dev.mysql.com/doc/refman/5.5/en/default-privileges.html | |
To run as, for instance, user "mysql", you may need to `sudo`: | |
sudo mysql_install_db ...options... | |
A "/etc/my.cnf" from another install may interfere with a Homebrew-built | |
server starting up correctly. | |
To connect: | |
mysql -uroot | |
To have launchd start mysql at login: | |
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents | |
Then to load mysql now: | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist | |
Or, if you don't want/need launchctl, you can just run: | |
mysql.server start | |
Warning: Could not link mysql. Unlinking... | |
Error: The `brew link` step did not complete successfully | |
The formula built, but is not symlinked into /usr/local | |
You can try again using `brew link mysql' | |
==> Summary | |
🍺 /usr/local/Cellar/mysql/5.6.10: 9244 files, 351M | |
==> Installing mroonga | |
==> Downloading http://packages.groonga.org/source/mroonga/mroonga-3.00.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/mroonga-3.00.tar.gz | |
==> Downloading http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.10.tar.gz/from/http://cdn.mysql.com/ | |
Already downloaded: /Library/Caches/Homebrew/mysql-5.6.10.com | |
==> ./configure --prefix=/usr/local/Cellar/mroonga/3.00 --with-mysql-source=/private/tmp/mysql-RBrI/mysql-5.6.10 --with-mysql-config=/usr/local/Cellar/mysql/5.6.10/bin/mysql_config | |
==> make | |
==> make install | |
==> mysql -uroot -e 'INSTALL PLUGIN mroonga SONAME "ha_mroonga.so"; CREATE FUNCTION last_insert_grn_id RETURNS INTEGER SONAME "ha_mroonga.so"; CREATE FUNCTION mroonga_snippet RETURNS STRING SONAME "ha_ | |
==> Caveats | |
To install mroonga plugin, run the following command: | |
mysql -uroot -e 'INSTALL PLUGIN mroonga SONAME "ha_mroonga.so"; CREATE FUNCTION last_insert_grn_id RETURNS INTEGER SONAME "ha_mroonga.so"; CREATE FUNCTION mroonga_snippet RETURNS STRING SONAME "ha_mroonga.so";' | |
To confirm successfuly installed, run the following command | |
and confirm that 'mroonga' is in the list: | |
mysql> SHOW PLUGINS; | |
+---------+--------+----------------+---------------+---------+ | |
| Name | Status | Type | Library | License | | |
+---------+--------+----------------+---------------+---------+ | |
| ... | ... | ... | ... | ... | | |
| mroonga | ACTIVE | STORAGE ENGINE | ha_mroonga.so | GPL | | |
+---------+--------+----------------+---------------+---------+ | |
XX rows in set (0.00 sec) | |
==> Summary | |
🍺 /usr/local/Cellar/mroonga/3.00: 149 files, 2.6M, built in 37 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment