Hi Team,
Below is the error that is raised when trying to build malcontent/cmd/mal/mal.go with all the dependencies being installed.
go: errors parsing go.mod:
/root/malcontent/go.mod:3: invalid go version '1.23.4': must match format 1.23
/root/malcontent/go.mod:5: unknown directive: toolchain
Installation commands
sudo apt-get update
sudo apt-get install -y wget git gcc libpkgconf-dev libssl-dev
export GO_VERSION=1.24.3
wget -P /tmp "https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz"
sudo tar -C /usr/local -xzf "/tmp/go${GO_VERSION}.linux-amd64.tar.gz"
echo "PATH=$PATH:/usr/local/go/bin" >> $HOME/.bashrc
source $HOME/.bashrc
cd ~
git clone https://github.com/chainguard-dev/malcontent
git clone https://github.com/VirusTotal/yara-x
RUSTUP_INIT_SKIP_PATH_CHECK=yes curl https://sh.rustup.rs -sSf > ./script.sh
sudo bash script.sh -y
source $HOME/.cargo/env
rustup install 1.85
rustup default 1.85
cargo install cargo-c
cd ~/yara-x
cargo cinstall -p yara-x-capi --release
cd ~/malcontent/cmd/mal
go build -tags static_link --ldflags '--extldflags "-static -lm"' mal.go
ls -alt
Thanks.
CC: @tstromberg
Hi Team,
Below is the error that is raised when trying to build
malcontent/cmd/mal/mal.gowith all the dependencies being installed.Installation commands
Thanks.
CC: @tstromberg