chrisss404 / check-mk-arm

Checkmk for Raspberry Pi.
182 stars 23 forks source link

Not an issue but more of understanding #24

Closed schau87 closed 3 years ago

schau87 commented 3 years ago

I am trying to build the package for Raspberry Pi 4. I used the below code(as suggested) to build the final package myself on my Ubuntu 20.04 laptop(amd64) and ran it as root:

$ bash build_gcc.sh
# install dependencies and build Checkmk
$ INSTALL_DEPENDENCIES=1 bash build_check_mk.sh 1.6.0.p19

After the build script was complete, I got the final package as check-mk-raw-1.6.0p19_0.bionic_amd64.deb instead of check-mk-raw-1.6.0p19_0.bionic_arm64.deb ? Can you please tell me where I am wrong ?

chrisss404 commented 3 years ago

Hi Jason,

this build script is not using cross-compilation and therefore it targets the host's system architecture. If you want to get an arm package you need to run it on an arm system.

For Ubuntu Bionic Beaver there are pre-built packages provided by @martux69, see check-mk-raw-1.6.0p19_0.bionic_arm64.deb

BR Christian

schau87 commented 3 years ago

Thanks @chrisss404 for your response. Can I also use this on my Raspberry Pi 4 which is 64 bit ?

chrisss404 commented 3 years ago

Sorry for late response. Yes this should be possible. Maybe you can try this: https://github.com/chrisss404/check-mk-arm/issues/22#issuecomment-758007603