Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian squeezeでインストールエラー #19

Open
ytak01 opened this issue Oct 1, 2011 · 7 comments
Open

Debian squeezeでインストールエラー #19

ytak01 opened this issue Oct 1, 2011 · 7 comments

Comments

@ytak01
Copy link

ytak01 commented Oct 1, 2011

最近、Mikodeの存在を知りましてWindows7にはインストール成功しました。
既出の問題のV.0.2.3がインストール出来ない問題でV.0.2.2をインストールしましたが・・・

で、Debian squeezeにインストールしようとしたところエラーになります。

gem install milkode -v 0.2.2

Building native extensions. This could take a while...
ERROR: Error installing milkode:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking for GCC... yes
checking for Win32 OS... no
checking for groonga version (>= 1.2.5)... no
downloading http://packages.groonga.org/source/groonga/groonga-1.2.5.tar.gz... done
extracting... done
configuring... done
building (maybe long time)... failed

Gem files will remain installed in /var/lib/gems/1.8/gems/rroonga-1.2.9 for inspection.
Results logged to /var/lib/gems/1.8/gems/rroonga-1.2.9/ext/groonga/gem_make.out

groongaのインストールに失敗しているようです

gem install groonga

Building native extensions. This could take a while...
ERROR: Error installing groonga:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking for GCC... yes
checking for Win32 OS... no
checking for groonga version (>= 1.2.5)... no
downloading http://packages.groonga.org/source/groonga/groonga-1.2.5.tar.gz... done
extracting... done
configuring... done
building (maybe long time)... failed

Gem files will remain installed in /var/lib/gems/1.8/gems/rroonga-1.2.9 for inspection.
Results logged to /var/lib/gems/1.8/gems/rroonga-1.2.9/ext/groonga/gem_make.out

各Versionは以下の通りです。

ruby -v

ruby 1.8.7 (2010-08-16 patchlevel 302) [arm-linux-eabi]

gem -v

1.3.7

何かご助言があればよろしくお願いします。

ちなみにCPUはARMです。

cat /proc/cpuinfo

Processor : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS : 1599.07
Features : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part : 0x131
CPU revision : 1

Hardware : Feroceon-KW
Revision : 0000
Serial : 0000000000000000

@ongaeshi
Copy link
Owner

ongaeshi commented Oct 2, 2011

Milkodeが利用している rroonga(groongaのRuby向けラッパー) gemのインストール中、groonga本体のコンパイルに失敗しているようです。

/var/lib/gems/1.8/gems/rroonga-1.2.9/ext/groonga/gem_make.out

の中身があればもう少し原因が分かるかもしれないです。

2. インストール — groonga v1.2.6ドキュメント を見る限り、groongaはDebian squeezeに対応しているようですので、予想ですがgroongaのコンパイルに必要ないくつかのライブラリが足りないような気がします。

@ongaeshi
Copy link
Owner

ongaeshi commented Oct 2, 2011

RubyGemsのバージョン問題を修正した、Milkode0.2.4をリリースしました。
gemのバージョンを上げずに最新のMilkodeが使えるようになるはずです。

Milkode0.2.4を緊急リリース - RubyGems1.3でインストール出来ない問題を修正しました。 - おんがえしの日記

@ytak01
Copy link
Author

ytak01 commented Oct 3, 2011

locate gem_make.out
で見つけた物を記します。

何か解りますでしょうか?
よろしくお願いします。

#cat /var/lib/gems/1.8/gems/rroonga-1.2.9/ext/groonga/gem_make.out
/usr/bin/ruby1.8 extconf.rb
checking for GCC... yes
checking for Win32 OS... no
checking for groonga version (>= 1.2.5)... no
downloading http://packages.groonga.org/source/groonga/groonga-1.2.5.tar.gz... done
extracting... done
configuring... done
building (maybe long time)... failed
# cat /var/lib/gems/1.8/gems/rroonga-1.1.0/gem_make.out
/usr/bin/ruby1.8 extconf.rb
checking for groonga version (>= 1.1.0)... no
downloading http://groonga.org/files/groonga/groonga-1.1.0.tar.gz...*** 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=/usr/bin/ruby1.8
        --with-pkg-config
        --without-pkg-config
        --with-override-variables
        --without-override-variables
/usr/lib/ruby/1.8/open-uri.rb:277:in `open_http': 404 Not Found (OpenURI::HTTPError)
        from /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
        from /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
        from /usr/lib/ruby/1.8/open-uri.rb:162:in `catch'
        from /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
        from /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
        from /usr/lib/ruby/1.8/open-uri.rb:518:in `open'
        from /usr/lib/ruby/1.8/open-uri.rb:30:in `open'
        from extconf.rb:51:in `install_groonga_locally'
        from extconf.rb:48:in `chdir'
        from extconf.rb:48:in `install_groonga_locally'
        from extconf.rb:107

@ongaeshi
Copy link
Owner

ongaeshi commented Oct 4, 2011

ありがとうございます! ※ 読みやすくするため、一部を ``` で 囲ませてもらいました。

gem_make.bat に出力されているのは、以前貼り付けてもらったログと同じもののようですね・・。すいません検討違いでした。
※ cat ~rroonga-1.1.0~ の方はrroonga1.1.0の古いインストールログなので余り気にしなくてよさそうです。

gem_make.bat はrroonga のコンパイルログなので、まずはgroongaのコンパイルが何故失敗しているのか?を調べるのがいいような気がします(/var/lib/gems/1.8/gems/rroonga-1.2.9/以下のどこかにログがあるかも・・)。

  1. 先にgroongaをコンパイル、インストール出来るようにする (参考 → 2. インストール — groonga v1.2.6ドキュメント )
  2. groongaが使えるようになったら、milkodeをインストールする

という手順で調査してみるといいかもしれません。

@ytak01
Copy link
Author

ytak01 commented Oct 4, 2011

どうもgroongaがそもそもコンパイル出来ないようです。

下記の最後でフリーズしました。
3時間ほどそのままにしましたがダメでした。

ちょっとcrossコンパイル環境を整えてやってみます。

# sudo make
make  all-recursive
make[1]: ディレクトリ `/mnt/array1/src/groonga-1.2.6' に入ります
Making all in include
make[2]: ディレクトリ `/mnt/array1/src/groonga-1.2.6/include' に入ります
Making all in groonga
make[3]: ディレクトリ `/mnt/array1/src/groonga-1.2.6/include/groonga' に入ります
make[3]: `all' に対して行うべき事はありません.
make[3]: ディレクトリ `/mnt/array1/src/groonga-1.2.6/include/groonga' から出ます
make[3]: ディレクトリ `/mnt/array1/src/groonga-1.2.6/include' に入ります
make[3]: `all-am' に対して行うべき事はありません.
make[3]: ディレクトリ `/mnt/array1/src/groonga-1.2.6/include' から出ます
make[2]: ディレクトリ `/mnt/array1/src/groonga-1.2.6/include' から出ます
Making all in lib
make[2]: ディレクトリ `/mnt/array1/src/groonga-1.2.6/lib' に入ります
Making all in dat
make[3]: ディレクトリ `/mnt/array1/src/groonga-1.2.6/lib/dat' に入ります
make[3]: `all' に対して行うべき事はありません.
make[3]: ディレクトリ `/mnt/array1/src/groonga-1.2.6/lib/dat' から出ます
make[3]: ディレクトリ `/mnt/array1/src/groonga-1.2.6/lib' に入ります
/bin/bash ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -D_REENTRANT -DGROONGA_VERSION=\"1.2.6\" -DGRN_PLUGINS_DIR=\""/usr/local/lib/groonga/plugins"\" -DGRN_RELATIVE_PLUGINS_DIR=\""lib/groonga/plugins"\" -DGRN_LOG_PATH=\""/usr/local/var/log/groonga/groonga.log"\" -DGRN_DEFAULT_DOCUMENT_ROOT=\""/usr/local/share/groonga/html/admin"\" -DGRN_DEFAULT_RELATIVE_DOCUMENT_ROOT=\""share/groonga/html/admin"\" -I.. -I../include    -fno-strict-aliasing   -g -O2   -MT nfkc.lo -MD -MP -MF .deps/nfkc.Tpo -c -o nfkc.lo nfkc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -D_REENTRANT -DGROONGA_VERSION=\"1.2.6\" -DGRN_PLUGINS_DIR=\"/usr/local/lib/groonga/plugins\" -DGRN_RELATIVE_PLUGINS_DIR=\"lib/groonga/plugins\" -DGRN_LOG_PATH=\"/usr/local/var/log/groonga/groonga.log\" -DGRN_DEFAULT_DOCUMENT_ROOT=\"/usr/local/share/groonga/html/admin\" -DGRN_DEFAULT_RELATIVE_DOCUMENT_ROOT=\"share/groonga/html/admin\" -I.. -I../include -fno-strict-aliasing -g -O2 -MT nfkc.lo -MD -MP -MF .deps/nfkc.Tpo -c nfkc.c  -fPIC -DPIC -o .libs/nfkc.o
libtool: compile:  gcc -DHAVE_CONFIG_H -D_REENTRANT -DGROONGA_VERSION=\"1.2.6\" -DGRN_PLUGINS_DIR=\"/usr/local/lib/groonga/plugins\" -DGRN_RELATIVE_PLUGINS_DIR=\"lib/groonga/plugins\" -DGRN_LOG_PATH=\"/usr/local/var/log/groonga/groonga.log\" -DGRN_DEFAULT_DOCUMENT_ROOT=\"/usr/local/share/groonga/html/admin\" -DGRN_DEFAULT_RELATIVE_DOCUMENT_ROOT=\"share/groonga/html/admin\" -I.. -I../include -fno-strict-aliasing -g -O2 -MT nfkc.lo -MD -MP -MF .deps/nfkc.Tpo -c nfkc.c -o nfkc.o >/dev/null 2>&1

@ongaeshi
Copy link
Owner

ongaeshi commented Oct 4, 2011

よろしくおねがします!

@ytak01
Copy link
Author

ytak01 commented Oct 4, 2011

Windows上のVirtualBoxでDebianを走らせて、arm用のクロスコンパイル環境を作りgroongaをコンパイルしてみましたが、同じところでフリーズしますね
フリーズしてしまうので、これ以上解りませんが、armでは使えなさそうです・・・トホホ・・・

ちなみに、上記VirtualBoxのDebianではmilkode動きました。
ちょっとWikiそのままではダメでしたが

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants