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)
Related
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
My Dockerfile
FROM ruby:2.6.3-alpine
RUN apk add --no-cache build-base tzdata postgresql-dev postgresql-client
# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1
ENV APP_PATH /app
RUN mkdir -p $APP_PATH
WORKDIR $APP_PATH
COPY Gemfile $APP_PATH
COPY Gemfile.lock $APP_PATH
RUN bundle install
COPY . $APP_PATH
EXPOSE 3000
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
I notice installing postgresql-dev will cause installing openssl-dev.
Anyway, run docker-compose up will output
$ docker-compose up
Building sidekiq
Step 1/12 : FROM ruby:2.6.3-alpine
---> 6ddb199f039f
Step 2/12 : RUN apk add --no-cache build-base tzdata postgresql-dev postgresql-client bash
---> Running in 386a4486295f
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
(1/28) Upgrading libcrypto1.1 (1.1.1c-r0 -> 1.1.1d-r2)
(2/28) Upgrading libssl1.1 (1.1.1c-r0 -> 1.1.1d-r2)
(3/28) Installing bash (5.0.0-r0)
Executing bash-5.0.0-r0.post-install
(4/28) Installing binutils (2.32-r0)
(5/28) Installing libmagic (5.37-r1)
(6/28) Installing file (5.37-r1)
(7/28) Installing isl (0.18-r0)
(8/28) Installing libgomp (8.3.0-r0)
(9/28) Installing libatomic (8.3.0-r0)
(10/28) Installing mpfr3 (3.1.5-r1)
(11/28) Installing mpc1 (1.1.0-r0)
(12/28) Installing gcc (8.3.0-r0)
(13/28) Installing musl-dev (1.1.22-r3)
(14/28) Installing libc-dev (0.7.1-r0)
(15/28) Installing g++ (8.3.0-r0)
(16/28) Installing make (4.2.1-r2)
(17/28) Installing fortify-headers (1.1-r0)
(18/28) Installing build-base (0.5-r1)
(19/28) Installing libedit (20190324.3.1-r0)
(20/28) Installing db (5.3.28-r1)
(21/28) Installing libsasl (2.1.27-r4)
(22/28) Installing libldap (2.4.48-r0)
(23/28) Installing libpq (11.6-r0)
(24/28) Installing postgresql-client (11.6-r0)
(25/28) Installing openssl-dev (1.1.1d-r2)
in ubuntu, it is forever frozen for step (25/28) Installing openssl-dev (1.1.1d-r2).
In mac, it shows
(25/27) Installing postgresql-libs (11.6-r0)
ERROR: Failed to create usr/lib/libssl.a: No error information
ERROR: openssl-dev-1.1.1d-r2: BAD signature
Is there anything wrong? Also, how can I get a bit more detailed info/log why it cannot install openssl-dev?
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
I'm running it on Ubuntu.
when I try to run: npm install -g jfrog-cli-go
I get:
And when I try the other option of running it using curl, it gives the feeling like it succeeded but when I try to run
> jfrog
it doesn't recognize the command curl -fL https://getcli.jfrog.io | sh
I get:
the jfrog-cli version that I'm using is: 1.17.1
Can anyone tell me what's the problem here?
npm:
For npm in Ubuntu please use --unsafe-perm=true flag:
sudo npm install -g jfrog-cli-go --unsafe-perm=true.
Please see the npm package documentation for more info.
curl: Curl will download jfrog cli to your current working directory. After this, you can either run it locally by running ./jfrog or moving it to Ubuntu's execution path, e.g. sudo mv ./jfrog /usr/local/bin/
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