2012年11月アーカイブ


オープンソースのソーシャルネットワークエンジン elgg をインストールしてみようと思いやってみたら、最初の Requirements check でいきなり以下のエラーになった。

We think your server is running the Apache web server.
The rewrite test failed and the most likely cause is that AllowOverride is not set to All for Elgg's directory.
This prevents Apache from processing the .htaccess file which contains the rewrite rules.
A less likely cause is Apache is configured with an alias for your Elgg directory and you need to set the RewriteBase in your .htaccess.
There are further instructions in the .htaccess file in your Elgg directory.

どうやら、apache の Rewrite が動かないらしい。

言われるがままに apache のConfig ファイルを確認してみるが、AllowOverride もAll にしているし、Alias も設定していない。

自分で簡単な Rewrite をする .htaccess を書いて実験してみたら、ちゃんと Rewrite されていたので、どうやら elgg のテストプログラムのほうがおかしいらしい。

とはいえ、テストに通らないと Next ボタンが押せないので次に進めない。

困ったので、検索して解決方法を探すと。。。

elgg/install/ElggRewriteTester.php の
$this->serverSupportsRemoteRead = TRUE ;

$this->serverSupportsRemoteRead = FALSE ;
にすればよいらしい。

さっそくやってみる。
書き換えて Refresh ボタンを押すと

Your server does not support automatic testing of the rewrite rules.
You can continue the installation, but you may experience problems with your site. You can manually test the rewrite rules by clicking this link: test.
You will see the word success if the rules are working.

あんたのサーバは自動テストに対応していないので、(自動テスト無しで)次に進められます。でも何か問題が発生するかもしれません。
test のリンクをクリックすると自分で確認できます。ちゃんと設定されていれば success と表示されます。
だそうだ。

test をクリックしたら success と表示されました。

Next ボタンを押して次に進む。

めでたし。


CPANで install Text::MeCab を実行したら以下のように「テストで失敗」とのことでインストールができない。

Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/*/*.t t/01-sanity.t ................ 1/42 Bareword  "MECAB_NOR_NODE" not allowed while "strict subs" in use at t/01-sanity.t line 11.
Bareword "MECAB_UNK_NODE" not allowed while "strict subs" in use at t/01-sanity.t line 12.
Bareword "MECAB_BOS_NODE" not allowed while "strict subs" in use at t/01-sanity.t line 13.
Bareword "MECAB_EOS_NODE" not allowed while "strict subs" in use at t/01-sanity.t line 14.
Execution of t/01-sanity.t aborted due to compilation errors.
# Looks like you planned 42 tests but ran 1.
# Looks like your test exited with 255 just after 1.
t/01-sanity.t ................ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 41/42 subtests
t/node/01_load.t ............. ok
t/node/02_api.t .............. ok
t/node/03_clone.t ............ ok
t/node/04_clone_free.t ....... ok
t/node/05_format.t ........... ok
t/regression/01_tomi_args.t .. skipped: SWIG MeCab not available
t/tagger/01_load.t ........... ok
t/tagger/02_api.t ............ ok
t/tagger/03_basic.t .......... ok

Test Summary Report
-------------------
t/01-sanity.t              (Wstat: 65280 Tests: 1 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 42 tests but ran 1.
Files=10, Tests=2336,  1 wallclock secs ( 0.42 usr  0.05 sys +  0.73 cusr  0.11 csys =  1.31 CPU)
Result: FAIL
Failed 1/10 test programs. 0/2336 subtests failed.
make: *** [test_dynamic] Error 255
  DMAKI/Text-MeCab-0.20013.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports DMAKI/Text-MeCab-0.20013.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 DMAKI/Text-MeCab-0.20013.tar.gz              : make_test NO


ビルドは通ってるっぽいので

look Text::MeCab

で、Shellを起動し

make install

でテスト結果を無視して強引にインストールを実行。

無事にインストールされました。

特に今のところ動作に問題はありません。
何か潜んでいるかもしれませんが。。。

force install でも良かったのかな?

このアーカイブについて

このページには、2012年11月に書かれたブログ記事が新しい順に公開されています。

前のアーカイブは2012年10月です。

次のアーカイブは2012年12月です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。

Powered by Movable Type 5.13-ja