docs(examples): fix c compiler not found supply-chain-app
Closed this issue · 1 comments
petermetz commented
Description
> [ 8/10] RUN source ~/.bashrc && nvm install 18.18.2 && npm i -g corepack && corepack enable && corepack prepare yarn@4.3.1 --activate && yarn init --yes --private && yarn config set nodeLinker node-modules && yarn add @hyperledger/cactus-example-supply-chain-backend@latest --exact && yarn add ethers@6.8.1 --exact && cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION latest '.resolutions += { "@hyperledger/cactus-test-tooling": "\($NPM_PKG_VERSION)" }' | sponge /usr/src/app/package.json && cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION latest '.resolutions += { "@hyperledger/cactus-api-client": "\($NPM_PKG_VERSION)" } ' | sponge /usr/src/app/package.json && cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION latest '.resolutions += { "@hyperledger/cactus-cmd-api-server": "\($NPM_PKG_VERSION)" } ' | sponge /usr/src/app/package.json && cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION latest '.resolutions += { "@hyperledger/cactus-common": "\($NPM_PKG_VERSION)" } ' | sponge /usr/src/app/package.json && cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION latest '.resolutions += { "@hyperledger/cactus-core": "\($NPM_PKG_VERSION)" } ' | sponge /usr/src/app/package.json && cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION latest '.resolutions += { "@hyperledger/cactus-core-api": "\($NPM_PKG_VERSION)" } ' | sponge /usr/src/app/package.json && cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION latest '.resolutions += { "@hyperledger/cactus-example-supply-chain-business-logic-plugin": "\($NPM_PKG_VERSION)" } ' | sponge /usr/src/app/package.json && cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION latest '.resolutions += { "@hyperledger/cactus-example-supply-chain-frontend": "\($NPM_PKG_VERSION)" } ' | sponge /usr/src/app/package.json && cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION latest '.resolutions += { "@hyperledger/cactus-plugin-consortium-manual": "\($NPM_PKG_VERSION)" } ' | sponge /usr/src/app/package.json && cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION latest '.resolutions += { "@hyperledger/cactus-plugin-keychain-memory": "\($NPM_PKG_VERSION)" } ' | sponge /usr/src/app/package.json && cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION latest '.resolutions += { "@hyperledger/cactus-plugin-ledger-connector-besu": "\($NPM_PKG_VERSION)" } ' | sponge /usr/src/app/package.json && cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION latest '.resolutions += { "@hyperledger/cactus-plugin-ledger-connector-fabric": "\($NPM_PKG_VERSION)" } ' | sponge /usr/src/app/package.json && cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION latest '.resolutions += { "@hyperledger/cactus-plugin-ledger-connector-xdai": "\($NPM_PKG_VERSION)" } ' | sponge /usr/src/app/package.json && yarn install:
393.6 $>./configure --prefix=/home/appuser/.nvm/versions/node/v18.18.2 <
393.7 Node.js configure: Found Python 3.10.12...
393.7 WARNING: failed to autodetect C++ compiler version (CXX=g++)
393.7 WARNING: failed to autodetect C compiler version (CC=gcc)
393.7 ERROR: No acceptable C compiler found!
393.7
393.7 Please make sure you have a C compiler installed on your system and/or
393.7 consider adjusting the CC environment variable if you installed
393.7 it in a non-standard prefix.
393.7 nvm: install v18.18.2 failed!
------
Dockerfile:44
--------------------
43 | ARG NPM_PKG_VERSION="latest"
Acceptance Criteria
- The supply chain app container image is building fine
- The supply chain app CI job is passing with the tests being stable both locally and on the GitHub Actions runners.
petermetz commented
I can't reproduce it anywhere, tried multiple machines and OS'. It also works fine on the CI at the moment. Assuming it was a network connectivity flake of some sort where the nodejs install script failed to download something.