Skip to content

Instantly share code, notes, and snippets.

@mingder78
Created December 2, 2011 14:47
Show Gist options
  • Save mingder78/1423490 to your computer and use it in GitHub Desktop.
Save mingder78/1423490 to your computer and use it in GitHub Desktop.
how to make couchdb 1.3.0a from svn source. (it may cause error, but you can fix it as following patch)
[ec2-user@ip-10-146-3-18 ~/svn/couchdb]$ svn status
? configure.org
M src/couchdb/priv/couch_js/utf8.h
M etc/default/couchdb
[ec2-user@ip-10-146-3-18 ~/svn/couchdb]$ svn diff
Index: src/couchdb/priv/couch_js/utf8.h
===================================================================
--- src/couchdb/priv/couch_js/utf8.h (revision 1180567)
+++ src/couchdb/priv/couch_js/utf8.h (working copy)
@@ -16,4 +16,5 @@
char* enc_string(JSContext* cx, jsval arg, size_t* buflen);
JSString* dec_string(JSContext* cx, const char* buf, size_t buflen);
-#endif
\ No newline at end of file
+#endif
+
Index: etc/default/couchdb
===================================================================
--- etc/default/couchdb (revision 1180567)
+++ etc/default/couchdb (working copy)
@@ -1,6 +1,6 @@
# Sourced by init script for configuration.
-COUCHDB_USER=couchdb
+COUCHDB_USER=root
COUCHDB_STDOUT_FILE=/dev/null
COUCHDB_STDERR_FILE=/dev/null
COUCHDB_RESPAWN_TIMEOUT=5
@mingder78
Copy link
Author

curl http://url0.info:59840
{"couchdb":"Welcome","version":"1.3.0a-1180567"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment