mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
Update CLI for genesis Fix import paths from ethereum/go-ethereum to luxfi/geth - Replace all ethereum/go-ethereum imports with luxfi/geth - Add local rawdb package for unexported constants - Fix build errors in genesis tools - Add comprehensive migration documentation - Create build-all.sh script for building all tools - Clean up duplicate functions and unused imports Fix remaining imports Update CLI Remove symlink Remove local replace directives Update Update old templates
17 lines
541 B
Bash
17 lines
541 B
Bash
#!/usr/bin/env bash
|
|
# install gcc
|
|
echo "ensuring that gcc is installed ..."
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
while ! gcc --version >/dev/null 2>&1; do
|
|
echo "GCC is not installed. Trying to install..."
|
|
sudo apt-get -y -o DPkg::Lock::Timeout=120 update
|
|
sudo apt-get -y -o DPkg::Lock::Timeout=120 install gcc
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to install GCC. Retrying in 10 seconds..."
|
|
sleep 10
|
|
fi
|
|
done
|
|
# install go
|
|
echo "ensuring that go is installed ..."
|
|
go version || sudo snap install go --classic
|