npm install -g composer-cli#0.20 failed - hyperledger-composer

npm install -g composer-cli#0.20 failed with bellow error
../deps/grpc/src/core/lib/channel/channel_args.h:22:10: fatal error: 'grpc/compression.h' file not found
include
^~~~~~~~~~~~~~~~~~~~
1 error generated.░⸩ ⠇ install: info lifecycle grpc#1.10.1~install: Failed to exec install script
make: *** [Release/obj.target/grpc/deps/grpc/src/core/lib/channel/connected_channel.o] Error 1

Running these 2 prerequisite commands before the composer installation has fixed the issue for me: (as listed on
https://hyperledger.github.io/composer/latest/installing/installing-prereqs.html)
nvm install v8
nvm use 8

Related

how to solve running gcc failed exist status 1 in mac m1?

I have already brew install mingw-w64.
When i check the versions its there.
gcc --version:
gcc (Homebrew GCC 11.2.0_3) 11.2.0.
g++ --version:
g++ (Homebrew GCC 11.2.0_3) 11.2.0
I also run which gcc:
/opt/homebrew/bin/gcc
Then I run my docker-compose with image golang:latest. No errors yet
up to date, audited 370 packages in 10m
9 packages are looking for funding
run `npm fund` for details
6 high severity vulnerabilities
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
Unlinking stale socket /tmp/supervisor.sock
[15:30:39] Using gulpfile /go/src/github.com/projectname/src/api/gulpfile.js
[15:30:39] Starting 'default'...
[15:30:39] Starting 'watch'...
When I save a .go file it downloads all mods and this is the error:
# github.com/projectname/api
/usr/local/go/pkg/tool/linux_arm64/link: running gcc failed: exit status 1
collect2: fatal error: cannot find 'ld'
compilation terminated.
[15:46:23] 'build-binary' errored after 1.98 s
[15:46:23] Error in plugin "gulp-shell"
Message:
Command `go build` failed with exit code 2
This is my Dockerfile:
FROM golang:1.17.0-alpine3.14 AS builder
RUN apk update && apk add gcc make git libc-dev binutils-gold
# Install dependencies
RUN apk add --update tzdata \
--no-cache ca-certificates git wget \
nodejs npm \
g++ \
supervisor \
&& update-ca-certificates \
&& npm install -g gulp gulp-shell
RUN npm install -g yarn
COPY ops/api/local/supervisor /etc
ENV PATH $PATH:/go/bin
WORKDIR /go/src/github.com/projectname/src/api
Try and check if, as in this Dockerfile, adding binutils-gold would allow you to use ld.
RUN apk update && apk add gcc make git libc-dev binutils-gold
(First seen in nodejs/node issue 4212)

How do I install libsuinput on Raspberry Pi 10 (Buster)

I'm working on a project that requires libsuinput available here
https://github.com/tuomasjjrasanen/libsuinput
I've downloaded it but when I follow the instructions in the readme
Just run the following commands:
./configure && make && make install
I get the following error
bash: ./configure: No such file or directory
Instructions couldn't be simpler but its just not working. Am I missing something or is the module not compatible with the latest version of Raspberry Pi?
You need to run ./autogen.sh first - it will call autoreconf that will create configure script.
If you get:
pi#raspberrypi:~/libsuinput $ ./autogen.sh
aclocal: warning: couldn't open directory 'm4': No such file or directory
configure.ac:9: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
install libtool:
sudo apt-get -y install libtool

install mod_wsgi on mac: error: command '/usr/bin/clang' failed with exit status 1

I want to run Django project on Apache. So I tried to install mod_wsgi.
I got this error
sudo pip3 install mod_wsgi
then I got this error
error: command '/usr/bin/clang' failed with exit status 1
For macOS you need to have installed both the Xcode application and the Xcode command line tools.

Failed to load connector module "composer-connector-hlfv1" for connection profile "defaultProfile"

Using Mac OS 10.12
https://github.com/fabric-composer/sample-applications with commit c5aa100d2532b7ec085a650e515a677dc3446ad2
when I run npm test in getting-started directory, I got below error
error: [Composer-GettingStarted] Error: Failed to load connector module "composer-connector-hlfv1" for connection profile "defaultProfile"
Command failed.
Received answer from fabric-composer channel in Rocket chat. Here's the solution to fix it provided by Dan
this is usually an install issue. Try running npm uninstall -g composer-cli followed by npm install -g composer-cli and check that there are no install issues. Also delete the node_modules folder from getting started and then rerun npm install
this worked for me :
sudo npm uninstall -g composer-rest-server && sudo npm install -g composer-rest-server
When I run ./createPeerAdminCard.sh, I got the same error message.
Try running npm uninstall -g composer-cli followed by npm install -g composer-cli
It's resolved the above work around.
My environment is:
$ uname -a
Linux ubuntu 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ npm ls -g composer-cli
/usr/lib
└── composer-cli#0.16.6
$ composer-rest-server -v
v0.16.6
$ composer-playground --version
0.16.6

H5PY install: error command 'x86_64-linux-gnu-gcc' failed with exit status 1

I get the following error:
command 'x86_64-linux-gnu-gcc' failed with exit status 1
when I try to install h5py:
sudo pip install h5py
I tried installing python-dev tools. Doesn't work though
running this first solved it for me:
sudo apt-get install python-h5py

Resources