Rails4でnattoを使い、mecabで形態素解析をする方法(CentOS6) mecab をインストール mecabをyumでインストール CentOS6でyumを使ってmecabとmecabの辞書ファイルをインストールしようとして 以下のようにyumを実行しようとするとパッケージがないと怒られる > sudo yum install mecab mecab-ipadic No package mecab available. No package mecab-ipadic available. 普通にRPMをダウンロードしてもよいが、悔しいので別の方法をご紹介する 全文検索エンジンgroongaのリポジトリを追加 > sudo rpm -ivh http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
Blogging is a disease: selfkleptomania, your normal condition. About GPG Public Key CentOS 5.4上でRuby 1.9.1を使っているのだが、インストールしてしばらくするとこんな状態になってクラッシュしてしまっていた。 $ ruby -v compile/should not be reached: compile.c:473 で、もう一回ruby-1.9.1をmake installすると何事もなくちゃんと動作する。ということは、rubyの実行ファイルが何かしらおかしなことになっているのではないか、と思って調べていたら、ちょっと前に「CentOS 4.7 では prelink が ruby 1.9.1 のバイナリを破壊する」というページをブックマークしていたのを思い出した。 というわけで、/etc/
概要 prelink は共有ライブラリのリンク情報を取り出し、それを実行ファイルに格納します。文字通り事前にリンクを行ないます。それによってプログラムの起動時間を短縮することができます。 prelink の効果を測定する - bk ブログ Gentoo Linux Prelinkガイド ほかの環境では調べていませんが、 CentOS 4.7 の環境ではその prelink が ruby 1.9.1 のバイナリ /usr/bin/ruby を破壊してしまうようです。 症状 prelink は知らないうちに自動的に行われるようです。 ruby をインストールしたあと、しばらくは正常に動作していて、突然 $ /usr/bin/ruby /usr/bin/ruby: failed to allocate memory (NoMemoryError) などと言い出します。 /usr/bin/r
Railsだとfile_columnプラグインを使うと、画像のアップロードとサムネイル表示を簡単に実装することができます。file_columnは、内部でRMagickを使っています。RMagickはImageMagickという画像処理ライブラリのRuby版インターフェイスです。 file_columnで画像アップロードとサムネイル - このブログは証明できない。 上のエントリではFedora7を使っていたので、何の問題もなくインストールすることができました。ところが、CentOS5.1にRMagickを入れようとしたところ上手くいきません。今回は、CentOS5.1にRMagickを入れる方法。 こちらの記事を参考にすればいいだけなのですが。 no title 要は、RMagick2はImageMagick6.3.0を必要とするのに、CentOS5.1のリポジトリだとImageMagic
CentOS 4.4にRMagick をインストールする (山本隆の開発日誌) ↑コチラ様を参考にやってみる。 ○ImageMagickがインストールされているか確認 # rpm -qa |grep ImageMagick ImageMagick-6.2.8.0-3.el5.4入っているっぽい。 ○Rubyがインストールされているか確認 # ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]ちゃんと入ってる。 ○「gem install RMagick」をやる。 # gem install RMagick Bulk updating Gem source index for: http://gems.rubyforge.org Building native extensions. This could take a whil
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く