You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am using HomeAssistant on a normal x86_64 System and noticed, that the normal linux binary does not work in Home Assistant OS (it says "no such file or directory"). After a short google search I found out, that Alpine Linux (which HAOS uses) does not support binaries compiled with glibc and I have to use musl. So I installed musl with
$ wget https://musl.libc.org/releases/musl-latest.tar.gz $ tar -xvf musl-latest.tar.gz $ cd musl-latest $ ./configure $ make $ sudo make install
and compiled the binary myself with
CC=/usr/local/musl/bin/musl-gcc go build --ldflags '-linkmode external -extldflags "-static"'
and now it works. Maybe you could make such a binary with musl for coming releases. That would save me some time and would be great for all other HAOS x64 Linux users.
And thanks for all the work you did!
The text was updated successfully, but these errors were encountered:
SHexplorer
changed the title
Linux version with musl compiled
Linux version with musl compiled for Home Assistant OS
Sep 8, 2022
Hi, I am using HomeAssistant on a normal x86_64 System and noticed, that the normal linux binary does not work in Home Assistant OS (it says "no such file or directory"). After a short google search I found out, that Alpine Linux (which HAOS uses) does not support binaries compiled with glibc and I have to use musl. So I installed musl with
$ wget https://musl.libc.org/releases/musl-latest.tar.gz
$ tar -xvf musl-latest.tar.gz
$ cd musl-latest
$ ./configure
$ make
$ sudo make install
and compiled the binary myself with
CC=/usr/local/musl/bin/musl-gcc go build --ldflags '-linkmode external -extldflags "-static"'
and now it works. Maybe you could make such a binary with musl for coming releases. That would save me some time and would be great for all other HAOS x64 Linux users.
And thanks for all the work you did!
The text was updated successfully, but these errors were encountered: