netobserv / flowlogs-pipeline

Transform flow logs into metrics
Apache License 2.0
69 stars 21 forks source link

erros when compiling on Linux/X86 (Ubuntu) #476

Open aslom opened 10 months ago

aslom commented 10 months ago

What is version of Linux required to build? Saying "Clone this repository from github into a local machine (Linux/X86):" in README [1] is (almost) not working for Ubuntu - lot of errors not sure if they are important or not ...

make build
basename: missing operand
Try 'basename --help' for more information.
basename: missing operand
Try 'basename --help' for more information.
/bin/sh: 3: [[: not found
/Users/aslom/Documents/awsm/go/src/github.ibm.com/z-cloud-integration/flowlogs-pipeline/bin/golangci-lint-v1.53.3 run --enable goimports --enable gofmt --enable ineffassign --timeout 5m
GOARCH=amd64 go build -ldflags "-X 'main.BuildVersion=0.1.10-rc1-914d470-dirty' -X 'main.BuildDate=2023-08-24 18:36'" "./cmd/flowlogs-pipeline"
GOARCH=amd64 go build -ldflags "-X 'main.BuildVersion=0.1.10-rc1-914d470-dirty' -X 'main.BuildDate=2023-08-24 18:36'" "./cmd/confgenerator"
basename: missing operand
Try 'basename --help' for more information.
basename: missing operand
Try 'basename --help' for more information.
./hack/update-docs.sh: line 24: docker: command not found
make: *** [Makefile:122: docs] Error 127

I am using lima-vm and Ubuntu is default

uname -a
Linux lima-lima-x86 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Ubuntu version

cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

[1] https://github.com/netobserv/flowlogs-pipeline/blob/main/README.md#build

aslom commented 10 months ago

@eranra