環境はubuntu 12.10です。src のバージョンはapache-couchdb-1.2.1と geocouch-couchdb1.2.x です。まず、両方をダウンロード フォルダーに入れてみましたが、geocouch フォルダーで make を実行すると、以下の問題が発生しました。
ryu@ryu-Asp:~/Downloads/geocouch-couchdb1.2.x$ make
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
Google で解決策が見つからないので、この問題を無視して、https://github.com/couchbase/geocouch/tree/couchdb1.2.xに基づいて構成を続行します。:
sudo cp etc/couchdb/default.d/geocouch.ini /usr/local/etc/couchdb/default.d/
export ERL_FLAGS="-pa /usr/local/src/geocouch/ebin"
ryu@ryu-Asp:/usr/local/bin$ sudo ./couchdb
次に、以下のエラー メッセージが表示されます。
Apache CouchDB 1.2.1 (LogLevel=info) is starting.
[error] [<0.93.0>] {error_report,<0.31.0>,
{<0.93.0>,supervisor_report,
[{supervisor,{local,couch_secondary_services}},
{errorContext,start_error},
{reason,
{'EXIT',
{undef,
[{couch_spatial,start_link,[],[]},
{supervisor,do_start_child,2,
[{file,"supervisor.erl"},{line,303}]},
{supervisor,start_children,3,
[{file,"supervisor.erl"},{line,287}]},
{supervisor,init_children,2,
[{file,"supervisor.erl"},{line,253}]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},{line,304}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,227}]}]}}},
{offender,
[{pid,undefined},
{name,spatial_manager},
{mfargs,{couch_spatial,start_link,[]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]}]}}
{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal, ["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT', {{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,274}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
=SUPERVISOR REPORT==== 23-Feb-2013::16:24:04 ===
Supervisor: {local,couch_secondary_services}
Context: start_error
Reason: {'EXIT',
{undef,
[{couch_spatial,start_link,[],[]},
{supervisor,do_start_child,2,
[{file,"supervisor.erl"},{line,303}]},
{supervisor,start_children,3,
[{file,"supervisor.erl"},{line,287}]},
{supervisor,init_children,2,
[{file,"supervisor.erl"},{line,253}]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},{line,304}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,227}]}]}}
Offender: [{pid,undefined},
{name,spatial_manager},
{mfargs,{couch_spatial,start_link,[]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
ところで、私は src をhttp://euroside.wordpress.com/2011/12/06/installing-geocouch/の /usr/local/src に置く方法を試しました。しかし、それでも機能しません。