[groonga-dev,04391] Mroongaのインストールについて質問です。

Back to archive index

Natsuko Yuminaka nyumi****@nifty*****
2017年 6月 28日 (水) 22:37:49 JST


groonga-dev メーリングリストの皆様

お世話になります。
昨日メーリングリストに加入させて頂いた弓中と申します。

Mroonga を使ってみたいのですが、インストールに失敗して、
今回質問させて頂きました。

OS X (El Capitan 10.11.6)上で、下記(1)にて Mroonga 
をインストールしようとしましたが、
ターミナル画面に同(2)が表示され、インストールできませんでした。
ターミナル画面に表示されたメッセージ全文を(補足1)以下にコピーさせてもらっています。
(1)$ brew install 
https://raw.github.com/mroonga/homebrew/master/mroonga.rb 
--use-homebrew-mysql --with-mecab
(2) ==> Downloading 
https://cdn.mysql.com/Downloads/MySQL-5.7/mysql-boost-5.7.12.tar
    curl: (22) The requested URL returned error: 404 Not Found
    Error: Failed to download resource "mysql"


MySQL 
5.7.18をインストール済みなので、下記(3)のサイトを見て(4)を試してみましたが、
(2)が表示されインストールできませんでした。(補足2)以下はその時のターミナル画面のメッセージです。

(3)https://github.com/mroonga/homebrew-mroonga/blob/master/README.md
(4)$ brew tap mroonga/mroonga
   $ brew install mroonga --use-homebrew-mysql

MySQLは、Oracleさんのサイトからダウンロードしたdmgファイルでインストールしました。


(3)の「If you want to use this formula with MySQL built by yourself 
instead of MySQL installed by Homebrew:」を見て、
下記(5)を実行すればmroongaをインストールできるのかな?と思ったのですが、
環境変数の部分をどのように入力すれば良いか分かりませんでした。
(5)$ PATH="$HOME/local/mysql-5.5.24/bin:$PATH" brew install mroonga 
--with-mysql-source=$(pwd)

 MySQL Workbench の 「Server Directories」の「Data Directory」は
  /usr/local/mysql/data
 でした。

mroongaのインストール手順のページ(6)に、
 「CentOS 6では、Mroonga 4.04からOracleのMySQL 
5.6パッケージを利用できます」とあったのですが、
OS Xでは既にインストールしているMySQLを一旦アンインストールしてから、
MySQLとmroongaおよび必要なもの(pcreなど)をインストールする必要があるのでしょうか?
(6)http://mroonga.org/ja/docs/install/centos.html#centos-6-with-the-oracle-mysql-5-7-package

長文で申し訳ありません。
アドバイスを頂けると大変ありがたいです。
どうぞよろしくお願いいたします。


**********************************************************
 (補足1)
**********************************************************

  $ brew install 
https://raw.github.com/mroonga/homebrew/master/mroonga.rb 
--use-homebrew-mysql --with-mecab
  ######################################################################## 
100.0%
  ==> Installing dependencies for mroonga: pcre, msgpack, mecab, 
mecab-ipad
  ==> Installing mroonga dependency: pcre
  ==> Downloading 
https://homebrew.bintray.com/bottles/pcre-8.38.el_capitan.bottle
  
######################################################################## 
100.0%
  ==> Pouring pcre-8.38.el_capitan.bottle.tar.gz
  🍺  /usr/local/Cellar/pcre/8.38: 203 files, 5.4M
  ==> Installing mroonga dependency: msgpack
  ==> Downloading 
https://homebrew.bintray.com/bottles/msgpack-1.4.1.el_capitan.bo
  ######################################################################## 
100.0%
  ==> Pouring msgpack-1.4.1.el_capitan.bottle.tar.gz
  🍺  /usr/local/Cellar/msgpack/1.4.1: 478 files, 4.7M
  ==> Installing mroonga dependency: mecab
  ==> Downloading 
https://homebrew.bintray.com/bottles/mecab-0.996.el_capitan.bott
  ######################################################################## 
100.0%
  ==> Pouring mecab-0.996.el_capitan.bottle.2.tar.gz
  🍺  /usr/local/Cellar/mecab/0.996: 18 files, 4.3M
  ==> Installing mroonga dependency: mecab-ipadic
  ==> Downloading 
https://homebrew.bintray.com/bottles/mecab-ipadic-2.7.0-20070801
  ######################################################################## 
100.0%
  ==> Pouring mecab-ipadic-2.7.0-20070801.el_capitan.bottle.tar.gz
  ==> Caveats
  To enable mecab-ipadic dictionary, add to /usr/local/etc/mecabrc:
    dicdir = /usr/local/lib/mecab/dic/ipadic
  ==> Summary
  🍺  /usr/local/Cellar/mecab-ipadic/2.7.0-20070801: 15 files, 50.6M
  ==> Installing mroonga dependency: groonga
  ==> Downloading 
http://packages.groonga.org/source/groonga/groonga-6.0.2.tar.gz
  ######################################################################## 
100.0%
  ==> ./configure --prefix=/usr/local/Cellar/groonga/6.0.2 --with-zlib 
--with-ssl
  ==> make install
  ==> Downloading 
http://packages.groonga.org/source/groonga-normalizer-mysql/groo
  ######################################################################## 
100.0%
  ==> ./configure --prefix=/usr/local/Cellar/groonga/6.0.2
  ==> make
  ==> make install
  🍺  /usr/local/Cellar/groonga/6.0.2: 1,208 files, 24.5M, built in 48 
minutes 36 seconds
  ==> Installing mroonga dependency: cmake
  ==> Downloading 
https://homebrew.bintray.com/bottles/cmake-3.5.2.el_capitan.bott
  ######################################################################## 
100.0%
  ==> Pouring cmake-3.5.2.el_capitan.bottle.tar.gz
  ==> Caveats
  Emacs Lisp files have been installed to:
    /usr/local/share/emacs/site-lisp/cmake
  ==> Summary
  🍺  /usr/local/Cellar/cmake/3.5.2: 2,010 files, 27.5M
  ==> Installing mroonga dependency: boost
  ==> Downloading 
https://homebrew.bintray.com/bottles/boost-1.60.0_2.el_capitan.b
  ######################################################################## 
100.0%
  ==> Pouring boost-1.60.0_2.el_capitan.bottle.1.tar.gz
  🍺  /usr/local/Cellar/boost/1.60.0_2: 11,139 files, 434.0M
  ==> Installing mroonga dependency: mysql
  ==> Downloading 
https://homebrew.bintray.com/bottles/mysql-5.7.12.el_capitan.bot
  ######################################################################## 
100.0%
  ==> Pouring mysql-5.7.12.el_capitan.bottle.tar.gz
  ==> /usr/local/Cellar/mysql/5.7.12/bin/mysqld --initialize-insecure 
--user=yumin
  ==> Caveats
  We've installed your MySQL database without a root password. To secure 
it run:
      mysql_secure_installation

  To connect run:
      mysql -uroot

  To have launchd start mysql now and restart at login:
    brew services start mysql
  Or, if you don't want/need a background service you can just run:
    mysql.server start
  ==> Summary
  🍺  /usr/local/Cellar/mysql/5.7.12: 13,281 files, 444.8M
  ==> Installing mroonga
  ==> Downloading 
http://packages.groonga.org/source/mroonga/mroonga-7.03.tar.gz
  ######################################################################## 
100.0%
  ==> Downloading 
https://cdn.mysql.com/Downloads/MySQL-5.7/mysql-boost-5.7.12.tar

  curl: (22) The requested URL returned error: 404 Not Found
  Error: Failed to download resource "mysql"



**********************************************************
 (補足2)
**********************************************************

  $ brew tap mroonga/mroonga
  ==> Tapping mroonga/mroonga
  Cloning into '/usr/local/Library/Taps/mroonga/homebrew-mroonga'...
  remote: Counting objects: 7, done.
  remote: Compressing objects: 100% (6/6), done.
  remote: Total 7 (delta 0), reused 3 (delta 0), pack-reused 0
  Unpacking objects: 100% (7/7), done.
  Checking connectivity... done.
  Tapped 1 formula (32 files, 32.3K)
  $ brew install mroonga --use-homebrew-mysql
  ==> Installing mroonga from mroonga/mroonga
  ==> Downloading 
http://packages.groonga.org/source/mroonga/mroonga-7.03.tar.gz
  Already downloaded: /Library/Caches/Homebrew/mroonga-7.03.tar.gz
  ==> Downloading 
https://cdn.mysql.com/Downloads/MySQL-5.7/mysql-boost-5.7.12.tar

  curl: (22) The requested URL returned error: 404 Not Found
  Error: Failed to download resource "mysql"
  Download failed: 
https://cdn.mysql.com/Downloads/MySQL-5.7/mysql-boost-5.7.12.tar.gz




groonga-dev メーリングリストの案内
Back to archive index