Closed jeffangelion closed 1 day ago
Hi! There's nothing wrong with the patch. It appears that the CLI itself won't build on your system for some reason. Which distro are you using, and which Go version did you select for the compilation?
That requires
CGO_ENABLED=1
and a native C/C++ compiler installed in the system.
Ah, found it. I can replicate the same error if I set CGO_ENABLED=0
during the build.
Do you mind installing gcc
on your system?
Do you mind installing
gcc
on your system?
Well, my server was installed without any development/compilation needs in mind, so it makes sense
However, error is kind of obscure so maybe (or maybe not) script could check if all of dependencies is present
By the way, thanks for your project, looking forward for its maturing
However, error is kind of obscure
It absolutely is!
so maybe (or maybe not) script could check if all of dependencies is present
It already does that to some extent:
However, I apparently missed Go's soft dependency on a local C/C++ compiler. Somehow, all the machines I used outline-cli
on had gcc
installed for one reason or another :D
Frankly, some users may not even know what gcc
is and how to install it. So, since the script already has superuser privileges, it can suggest installing missing dependencies automatically, at least for apt
, dnf
, and pacman
users (which covers like 99% of Linux ecosystem).
By the way, thanks for your project, looking forward for its maturing
Thanks a lot! I hope to clean up some things, including this one, in a few days for a new release :)
gcc
has been added to the list of required dependencies, and since the installation script can now automatically fetch missing dependencies (if permitted, of course), I've been able to successfully and painfully install outline-cli
on freshly spun CentOS Stream 9 and Ubuntu 24.04 servers using a single command:
curl -Ls https://github.com/Kir-Antipov/outline-cli/blob/master/install?raw=true | sudo bash -s -- -y
Log: