couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "InstallingOnWindows" by JonathanFeinberg
Date Tue, 19 Aug 2008 16:16:46 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by JonathanFeinberg:
http://wiki.apache.org/couchdb/InstallingOnWindows

------------------------------------------------------------------------------
    * [http://www.icu-project.org/ ICU] (Tested with [http://www.icu-project.org/download/4.0.html
binary build of 4.0 release].)
    * [http://www.mozilla.org/js/spidermonkey/ SpiderMonkey]
  
+ == Install CouchDB as Erlang Library Directory ==
+ 
+ After installing Erlang you should having something similar to:
+ 
+ {{{
+ C:\Program Files\erl5.6.3
+ }}}
+ 
+ Copy the whole CouchDB source tree to:
+ 
+ {{{
+ C:\Program Files\erl5.6.3\lib\couchdb-0.8.1
+ }}}
+ 
+ Make the following empty directory:
+ 
+ {{{
+ C:\Program Files\erl5.6.3\lib\mochiweb-0.01\ebin
+ }}}
+ 
+ == Provide ICU to Erlang ==
+ 
+ From ICU copy `icu*.dll` (and `libeay32.dll` for older versions of ICU) to:
+ 
+ {{{
+ C:\Program Files\erl5.6.3\erts-5.6.3\bin
+ }}}
+ 
- == Building SpiderMonkey ==
+ == Build SpiderMonkey ==
  
  The SpiderMonkey distribution's Windows build stuff is broken. See [http://blog.endflow.net/?p=55&lang=en
this blog post] for a working js.mak file. Don't bother trying to import the project file
into a contemporary Visual Studio; just use the Visual Studio command line tools with the
js.mak file referred to above.
  
@@ -35, +63 @@

  
  and rename js.exe to couch_js.exe.
  
- == Base Installation ==
+ == Build couchdb/couch_erl_driver.c ===
  
- After installing Erlang you should having something similar to:
+ This is a wrapper to provide ICU features to CouchDB.
  
+ The simplest way to build a DLL is to create a Win32 DLL project in an IDE, add `couch_erl_driver.c`
into the project, and change project settings to include the Erlang ERTS and ICU4C header
paths. You must also include the various ICU `*.lib` files to the MSVC linker as inputs. MSVC
doesn't know how to create a DLL with unresolved names.
- {{{
- C:\Program Files\erl5.6.3
- }}}
- 
- Copy the whole CouchDB source tree to:
- 
- {{{
- C:\Program Files\erl5.6.3\lib\couchdb-0.8.0
- }}}
  
  Make the following empty directory:
  
  {{{
- C:\Program Files\erl5.6.3\lib\mochiweb-0.01\ebin
- }}}
- 
- From ICU copy `icu*.dll` and `libeay32.dll` to:
- 
- {{{
- C:\Program Files\erl5.6.3\erts-5.6.2\bin
- }}}
- 
- == C Compilation ==
- 
- === couchdb/couch_erl_driver.c ===
- 
- This is a wrapper to provide ICU features to CouchDB.
- 
- The simplest way to build a DLL is to create a Win32 DLL project in an IDE, add `couch_erl_driver.c`
into the project, and change project settings to include the Erlang ERTS and ICU4C header
paths.
- 
- Make the following empty directory:
- 
- {{{
- C:\Program Files\erl5.6.3\lib\couchdb-0.8.0\priv
+ C:\Program Files\erl5.6.3\lib\couchdb-0.8.1\priv
  }}}
  
  Copy the DLL to:
  
  {{{
- C:\Program Files\erl5.6.3\lib\couchdb-0.8.0\priv\couch_erl_driver.dll
+ C:\Program Files\erl5.6.3\lib\couchdb-0.8.1\priv\couch_erl_driver.dll
  }}}
  
  Here is a binary (no warranty! may burn your eyes out!) built against ICU 4.0 in 32-bit
Windows: attachment:couch_erl_driver.dll
- 
- === couchdb/couch_js.c ===
- 
- This is a wrapper to provide UTF-8 and buffering improvements to !SpiderMonkey.
- 
- Replace js.c with couch_js.c, and change '#include <jsapi.h>' to '#include "jsapi.h"',
then build js.exe again, rename it to couch_js.exe and copy it to:
- 
- {{{
- C:\Program Files\erl5.6.3\erts-5.6.2\bin
- }}}
  
  == Erlang Compilation ==
  
  Create a the following file:
  
  {{{
- C:\Program Files\erl5.6.3\lib\couchdb-0.8.0\src\Emakefile
+ C:\Program Files\erl5.6.3\lib\couchdb-0.8.1\src\Emakefile
  }}}
  
  Add the following content:
@@ -111, +101 @@

  Launch `erl` (or `werl`) and execute the following command to change working directory:
  
  {{{
- cd("C:/Program Files/erl5.6.3/lib/couchdb-0.8.0/src").
+ cd("C:/Program Files/erl5.6.3/lib/couchdb-0.8.1/src").
  }}}
  
  Execute this command to compile CouchDB:
@@ -125, +115 @@

  Copy the following file:
  
  {{{
- C:\Program Files\erl5.6.3\lib\couchdb-0.8.0\etc\couchdb\couch.ini.tpl.in
+ C:\Program Files\erl5.6.3\lib\couchdb-0.8.1\etc\couchdb\couch.ini.tpl.in
  }}}
  
  To this location:

Mime
View raw message