Re:Kiss Linux – A distribution with a focus on less is more
by catern on Thursday May 21, 2020 @11:31AM
(#23259597)
Static binaries still have dependencies, they just embed them all into one file. That's not generically possible - as the most trivial example, consider a bash script which runs other executables. If you're trying to solve this problem, you need to actually solve it for all real cases; otherwise your solution breaks down and you're back where you started, in dependency hell.
[ Parent
| on HN ]
Re:Kiss Linux – A distribution with a focus on less is more
by burpsnard on Thursday May 21, 2020 @12:01PM
(#23260088)
This: perl ..
Re:Kiss Linux – A distribution with a focus on less is more
by mst on Thursday May 21, 2020 @05:18PM
(#23265502)
App::FatPacker will turn your (pure perl) script and its dependencies into a single file for deployment.
App::staticperl will build a static binary with the perl+C dependencies built in.
A lot of the time, it's better to use a plenv + Carton, mind, but if you want a single file for deployment, that's a solved problem in perl land too and has been for years.