4 ms·
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
by catern 6y ago
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.
- burpsnard 6y agoThis: perl ..
- mst 6y agoApp::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.