couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brunjes, Lee (lmb7s)" <lm...@virginia.edu>
Subject RE: Couch DB on Windows
Date Mon, 14 Sep 2009 13:12:31 GMT
Howdy, 

You may notice that in some cases in the ini files capitalization matters. This is odd to
us windows types.

If I recall correctly the 4th line of default.ini has to begin with a capital drive letter.
Either that or I need more caffeine today.
-Lee

Try something like the following:

--default.ini---
[couchdb]
database_dir = d:/erl5.7.2/usr/couch_data
view_index_dir =d:/erl5.7.2/usr/couch_data
util_driver_dir = D:/erl5.7.2/lib/apache-couchdb-0.9.1/priv/lib
ConsoleStartupMsg=Apache CouchDB is starting.
max_document_size = 4294967296 ; 4 GB
max_attachment_chunk_size = 4294967296 ; 4GB
os_process_timeout = 5000 ; 5 seconds. for view and external servers.
max_dbs_open = 100

[httpd]
port = 5984
bind_address = 192.168.100.108
authentication_handler = {couch_httpd, default_authentication_handler}
WWW-Authenticate = Basic realm="administrator"

[query_servers]
javascript = couch_js.exe ../lib/apache-couchdb-0.9.1/share/server/main.js
[log]
file = c:/inetpub/logs/couchdb.log
level = info

[daemons]
view_manager={couch_view, start_link, []}
external_manager={couch_external_manager, start_link, []}
db_update_notifier={couch_db_update_notifier_sup, start_link, []}
query_servers={couch_query_servers, start_link, []}
httpd={couch_httpd, start_link, []}
stats_aggregator={couch_stats_aggregator, start, []}
stats_collector={couch_stats_collector, start, []}



[httpd_global_handlers]
/ = {couch_httpd_misc_handlers, handle_welcome_req, <<"Welcome">>}
favicon.ico = {couch_httpd_misc_handlers, handle_favicon_req, "d:/erl5.7.2/lib/apache-couchdb-0.9.1/share/www"}
_utils = {couch_httpd_misc_handlers, handle_utils_dir_req, "d:/erl5.7.2/lib/apache-couchdb-0.9.1/share/www"}
_all_dbs = {couch_httpd_misc_handlers, handle_all_dbs_req}
_active_tasks = {couch_httpd_misc_handlers, handle_task_status_req}
_config = {couch_httpd_misc_handlers, handle_config_req}
_replicate = {couch_httpd_misc_handlers, handle_replicate_req}
_uuids = {couch_httpd_misc_handlers, handle_uuids_req}
_restart = {couch_httpd_misc_handlers, handle_restart_req}
_stats = {couch_httpd_stats_handlers, handle_stats_req}



[httpd_db_handlers]
_design = {couch_httpd_db, handle_design_req}
_temp_view = {couch_httpd_view, handle_temp_view_req}
; The external module takes an optional argument allowing you to narrow it to a
; single script. Otherwise the script name is inferred from the first path section 
; after _external's own path.
; _mypath = {couch_httpd_external, handle_external_req, <<"mykey">>}
; _external = {couch_httpd_external, handle_external_req}


[httpd_design_handlers]
_view = {couch_httpd_view, handle_view_req}
_show = {couch_httpd_show, handle_doc_show_req}
_list = {couch_httpd_show, handle_view_list_req}
---end default.ini ---


--couch.ini---
; @configure_input@

[Couch]

ConsoleStartupMsg=Apache CouchDB is starting. Futon is at http://localhost:5984/_utils/index.html

DbRootDir= d:/erl5.7.2/usr/couch_data

Port=5984

BindAddress=127.0.0.1

DocumentRoot= d:/erl5.7.2/lib/apache-couchdb-0.9.1/share/www

LogFile= d:/erl5.7.2/usr/couch_data/couch.log

UtilDriverDir=d:/erl5.7.2/lib/apache-couchdb-0.9.1/priv/lib

LogLevel=info

[Couch Query Servers]

javascript= couch_js.exe ../lib/apache-couchdb-0.9.1/share/server/main.js
--end couch.ini --



-----Original Message-----
From: Paul Davis [mailto:paul.joseph.davis@gmail.com] 
Sent: Sunday, September 13, 2009 8:47 PM
To: user@couchdb.apache.org
Subject: Re: Couch DB on Windows

Marcos,

You might have better luck pinging dev@. Mark Hammond has had luck
getting CouchDB to build but I don't know that he's made an installer
yet. That binary installer is quite old though, so I couldn't say
whether to expect it to work or not.

HTH,
Paul Davis

On Sun, Sep 13, 2009 at 8:43 PM, Marcos Ricardo <marcric@gmail.com> wrote:
> Hi,
>
> That is my first time here, and would like to know if there is a specific
> Windows users forum.
>
> Anyway I'm having troubles following the Windows installation instructions.
>
> Following the instructions in this page:
>
> http://wiki.apache.org/couchdb/Windows_binary_installer#head-237bb4a26c613c29152e5ac4b754def374940da3
>
> That is what I have done:
>
> Downloaded the binaries and installed in the following order:
>
>
>   1. Erlang/OTP (otp_win32_R13B01.exe)
>   2. Visual C++ 2008 Redistributables (vcredist_x86.exe)
>   3. OpenSSL (Win32OpenSSL_Light-0_9_8k.exe)
>   4. CouchDB (couchdb-0.8.1-win32.exe)
>
> Then load a console into the erland folder, and get this:
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> D:\erl5.7.2\bin>erl
> Eshell V5.7.2  (abort with ^G)
> 1> couch_server:start().
> Couldn't find server configuration file couch.ini.
> ** exception throw:
> {startup_error,[67,111,117,108,100,110,39,116,32,102,105,
>
> 110,100,32,115,101,114,118,101,114,32,99,
>                                    111,110,102,105,103|...]}
>     in function  couch_server_sup:start_server/1
>
> After that Still following the instructions, I have copied the file:
>
> D:\erl5.7.2\lib\couchdb-0.8.1\etc\couchdb\couch.ini.tpl.in
>
> Into:
>
> D:\erl5.7.2\bin\couch.ini
>
> And get this:
>
> 2> couch_server:start().
> Apache CouchDB 0.0.0 (LogLevel=info)
> Apache CouchDB is starting.
>
> ** exception exit: "The specified module could not be found."
>     in function  couch_util:start_driver/1
>     in call from couch_server_sup:start_server/1
> 3>
>
> I have found the instructions a bit out of date I guess...
>
> What should I do now?
>
> Thanks.
>
> ------------------------------
>  *Marcos Ricardo* (www.marcric.com)
>
> (R)mr(R) [image: Linkedin] <http://www.linkedin.com/in/marcric>
>

Mime
View raw message