Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- griff@HTNGuild:~$ mkdir "$HOME/tmp";cd "$HOME/tmp"
- griff@HTNGuild:~/tmp$ wget https://raw.githubusercontent.com/cardano-community/guild-operators/master/files/ptn0/scripts/prereqs.sh
- --2020-06-29 15:37:39-- https://raw.githubusercontent.com/cardano-community/guild-operators/master/files/ptn0/scripts/prereqs.sh
- Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
- Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 10979 (11K) [text/plain]
- Saving to: ‘prereqs.sh’
- prereqs.sh 100%[=================================================>] 10.72K --.-KB/s in 0s
- 2020-06-29 15:37:39 (46.0 MB/s) - ‘prereqs.sh’ saved [10979/10979]
- griff@HTNGuild:~/tmp$ chmod 755 prereqs.sh
- griff@HTNGuild:~/tmp$ ./prereqs.sh
- Using apt to prepare packages for "Debian GNU/Linux" system
- Updating system packages...
- [sudo] password for griff:
- Warning: apt-key output should not be parsed (stdout is not a terminal)
- Installing missing prerequisite packages, if any..
- Extracting templates from packages: 100%griff@HTNGuild:~/tmp$ ./prereqs.sh
- Using apt to prepare packages for "Debian GNU/Linux" system
- Updating system packages...
- [sudo] password for griff:
- Warning: apt-key output should not be parsed (stdout is not a terminal)
- Installing missing prerequisite packages, if any..
- Extracting templates from packages: 100%
- Extracting templates from packages: 100%
- ./prereqs.sh: 140: ./prereqs.sh: ghc: not found
- ./prereqs.sh: 141: ./prereqs.sh: cabal: not found
- Install ghcup (The Haskell Toolchain installer) ..
- Welcome to Haskell!
- This script will download and install the following binaries:
- * ghcup - The Haskell toolchain installer (for managing GHC/cabal versions)
- * ghc - The Glasgow Haskell Compiler
- * cabal - The Cabal build tool
- ghcup installs only into the following directory, which can be removed anytime:
- /home/griff/.ghcup
- Press ENTER to proceed or ctrl-c to abort.
- Note that this script can be re-run at any given time.
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 10.3M 100 10.3M 0 0 12.5M 0 --:--:-- --:--:-- --:--:-- 12.5M
- [ Info ] Upgrading GHCup...
- [ Warn ] No GHCup update available
- System requirements
- Install the following distro packages: build-essential curl libffi-dev libffi6 libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5
- Press ENTER to proceed or ctrl-c to abort.
- Installation may take a while.
- [ Info ] downloading: https://downloads.haskell.org/~ghc/8.8.3/ghc-8.8.3-x86_64-deb9-linux.tar.xz
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 191M 100 191M 0 0 12.2M 0 0:00:15 0:00:15 --:--:-- 12.7M
- [ Info ] verifying digest of: ghc-8.8.3-x86_64-deb9-linux.tar.xz
- [ Info ] Unpacking: ghc-8.8.3-x86_64-deb9-linux.tar.xz to /tmp/ghcup-oNbeCk
- [ Info ] Installing GHC (this may take a while)
- [ ghc-make ] # on Win64, "install -s" calls a strip that doesn't understand 64bit binaries.
- [ Info ] GHC installation successful
- [ Warn ] New GHC version available: 8.10.1. To upgrade, run 'ghcup install 8.10.1'
- [ Info ] GHC 8.8.3 successfully set as default version
- [ Warn ] New GHC version available: 8.10.1. To upgrade, run 'ghcup install 8.10.1'
- [ Info ] downloading: https://downloads.haskell.org/~cabal/cabal-install-3.2.0.0/cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 4260k 100 4260k 0 0 6699k 0 --:--:-- --:--:-- --:--:-- 6689k
- [ Info ] verifying digest of: cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz
- [ Info ] Unpacking: cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz to /tmp/ghcup-AFaike
- [ Info ] Installing cabal
- [ Info ] Cabal installation successful
- Config file path source is default config file.
- Config file /home/griff/.cabal/config not found.
- Writing default configuration to /home/griff/.cabal/config
- Downloading the latest package list from hackage.haskell.org
- Installation done!
- In order to run ghc and cabal, you need to adjust your PATH variable.
- You may want to source '/home/griff/.ghcup/env' in your shell
- configuration to do so (e.g. ~/.bashrc).
- Detected bash shell on your system...
- If you want ghcup to automatically add the required PATH variable to "/home/griff/.bashrc"
- answer with YES, otherwise with NO and press ENTER.
- OK! /home/griff/.bashrc has been modified. Restart your terminal for the changes to take effect,
- or type "source /home/griff/.ghcup/env" to apply them in your current terminal session.
- [ Warn ] New GHC version available: 8.10.1. To upgrade, run 'ghcup install 8.10.1'
- [ Info ] downloading: https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-x86_64-deb9-linux.tar.xz
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 180M 100 180M 0 0 14.0M 0 0:00:12 0:00:12 --:--:-- 17.0M
- [ Info ] verifying digest of: ghc-8.6.5-x86_64-deb9-linux.tar.xz
- [ Info ] Unpacking: ghc-8.6.5-x86_64-deb9-linux.tar.xz to /tmp/ghcup-HGHPOd
- [ Info ] Installing GHC (this may take a while)
- [ ghc-make ] # on Win64, "install -s" calls a strip that doesn't understand 64bit binaries.
- [ Info ] GHC installation successful
- [ Warn ] New GHC version available: 8.10.1. To upgrade, run 'ghcup install 8.10.1'
- [ Info ] GHC 8.6.5 successfully set as default version
- The Glorious Glasgow Haskell Compilation System, version 8.6.5
- Installing bundled Cabal ..
- [ Warn ] New GHC version available: 8.10.1. To upgrade, run 'ghcup install 8.10.1'
- [ Info ] downloading: https://downloads.haskell.org/~cabal/cabal-install-3.2.0.0/cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 4260k 100 4260k 0 0 3310k 0 0:00:01 0:00:01 --:--:-- 3310k
- [ Info ] verifying digest of: cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz
- [ Info ] Unpacking: cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz to /tmp/ghcup-BiNciE
- [ Info ] Installing cabal
- [ Info ] Cabal installation successful
- Creating Folder Structure ..
- Setting up Environment Variable
- /opt/cardano/cnode/files
- griff@HTNGuild:~/tmp$
- ...
- griff@HTNGuild:~$ cd $CNODE_HOME/scripts
- griff@HTNGuild:/opt/cardano/cnode/scripts$ ./cntools.sh
- ERROR: need 'bc' (command not found)
- please install with your packet manager of choice(apt/yum etc..) and relaunch cntools
- griff@HTNGuild:/opt/cardano/cnode/scripts$ cd
- griff@HTNGuild:~$ ./cntools.sh
- -bash: ./cntools.sh: No such file or directory
- griff@HTNGuild:~$
Add Comment
Please, Sign In to add comment