go-duktape | Duktape JavaScript engine bindings for Go | Interpreter library
kandi X-RAY | go-duktape Summary
kandi X-RAY | go-duktape Summary
Duktape JavaScript engine bindings for Go
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of go-duktape
go-duktape Key Features
go-duktape Examples and Code Snippets
Community Discussions
Trending Discussions on go-duktape
QUESTION
I am learning Hyperledger blockchain, and trying to follow ZerotoBlockchain (https://www.redbooks.ibm.com/Redbooks.nsf/RedbookAbstracts/crse0401.html?Open)
I've installed all components, but I got following error when I ran the "buildAndDeploy" script file from MyPath/ZeroToBlockchain/Chapter03. I am using MacOSX.
- docker and fabric is running.
- before getting this error, everything was done successfully.
The error is as follows:
...✖ Starting business network definition. This may take a minute...
Error: Error trying to instantiate composer runtime. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: Error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "# composer/vendor/gopkg.in/olebedev/go-duktape.v3
In file included from chaincode/input/src/composer/vendor/gopkg.in/olebedev/go-duktape.v3/api.go:7:0:
chaincode/input/src/composer/vendor/gopkg.in/olebedev/go-duktape.v3/api.go: In function '_duk_error':
chaincode/input/src/composer/vendor/gopkg.in/olebedev/go-duktape.v3/duktape.h:510:127: warning: right-hand operand of comma expression has no effect [-Wunused-value] (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), VA_ARGS), (duk_ret_t) 0) ^
chaincode/input/src/composer/vendor/gopkg.in/olebedev/go-duktape.v3/api.go:153:2: note: in expansion of macro 'duk_error' duk_error(ctx, err_code, "%s", str); ^
go build composer: /opt/go/pkg/tool/linux_amd64/link: fork/exec /opt/go/pkg/tool/linux_amd64/link: exec format error "
Command failed
ANSWER
Answered 2018-Feb-19 at 01:39I had the same issue but resolved it by adding path to go. In Ubuntu 16.04 LTS
# which go
/usr/local/go/bin/go
vi .profile
PATH="ADD THIS TO YOUR PATH /usr/local/go/bin"
# source .profile
# buildAndDeploy
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install go-duktape
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page