You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/01/14 02:11:05 UTC
[GitHub] [couchdb] jiangphcn commented on issue #2364: CouchDB 2.3.1 Save
view failed On Red Hat6.5
jiangphcn commented on issue #2364: CouchDB 2.3.1 Save view failed On Red Hat6.5
URL: https://github.com/apache/couchdb/issues/2364#issuecomment-573965282
Would you please first verify whether `couchjs` can work correctly?
1. run ` ./src/couch/priv/couchjs`, you should see below
```
Usage: couchjs [FILE]
The couchjs command runs the Apache CouchDB JavaScript interpreter.
The exit status is 0 for success or 1 for failure.
Options:
-h display a short help message and exit
-V display version information and exit
-H enable couchjs cURL bindings (only avaiable
if package was built with cURL available)
-T enable test suite specific functions (these
should not be enabled for production systems)
-S SIZE specify that the runtime should allow at
most SIZE bytes of memory to be allocated
default is 64 MiB
-u FILE path to a .uri file containing the address
(or addresses) of one or more servers
--eval Enable runtime code evaluation (dangerous!)
Report bugs at <https://issues.apache.org/jira/browse/COUCHDB>.
```
2. create test.js with
```
["reset"]
["add_fun", "function(doc) {return;}"]
```
and then run `cat test.js | ./src/couch/priv/couchjs share/server/main.js`, you need to see below result.
```
true
true
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services