Building NobleHashes - linux-on-ibm-z/docs GitHub Wiki
Building noble-hashes
The instructions provided below specify the steps to install noble-hashes 1.4.0 on Linux on IBM Z for following distributions:
- RHEL (8.6, 8.8, 8.9, 9.0, 9.2, 9.3)
- SLES (12 SP5, 15 SP5)
- Ubuntu (20.04, 22.04, 23.10)
General Notes:
- When following the steps below please use a standard permission user unless otherwise specified.
- A directory
/<source_root>/
will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it.
Install noble-hashes
1) Install build dependencies
export SOURCE_ROOT=/<source_root>/
-
RHEL (8.6, 8.8, 8.9)
sudo yum install -y tar xz wget curl git
-
RHEL (9.0, 9.2, 9.3)
sudo yum install -y --allowerasing tar xz wget curl git
-
SLES 15 SP5
sudo zypper install -y tar xz wget curl git
-
SLES 12 SP5
sudo zypper install -y nodejs18 npm18 tar xz wget curl git
-
Ubuntu (20.04, 22.04, 23.10)
sudo apt-get update sudo apt-get install -y tar xz-utils wget curl git
2) Install Nodejs (except SLES 12 SP5)
cd "${SOURCE_ROOT}"
export NODE_JS_VERSION="20.11.0"
sudo mkdir -p /usr/local/lib/nodejs
wget https://nodejs.org/dist/v${NODE_JS_VERSION}/node-v${NODE_JS_VERSION}-linux-s390x.tar.xz
sudo tar xf node-v${NODE_JS_VERSION}-linux-s390x.tar.xz -C /usr/local/lib/nodejs
export PATH=/usr/local/lib/nodejs/node-v${NODE_JS_VERSION}-linux-s390x/bin:$PATH
rm node-v${NODE_JS_VERSION}-linux-s390x.tar.xz
3) Download noble-hashes
sudo npm install @noble/hashes
4) Verification(Optional)
npm show @noble/hashes version
The output should be similar to:
1.4.0