0

I'm currently working on a Linux project. This project needs to run under every Linux distribution (without installing any package/libraries/others for the clients) and it's a bit hard to do it well.

I already tried to do it myself, see this, i have also tried to use CDE but it didn't work well since i got an error with some distribution. For example:

  • Ubuntu 8.04: Impossible to read the header ELF
  • Debian 7.8: version of GLIBC_2.14 not found

So, i would like to know if there is a way to get a package of my program who can run under every Linux distribution.

Thanks

Edit: I would like to avoid the static compilation, since my program is pretty big.

Community
  • 1
  • 1
Havli
  • 63
  • 1
  • 6
  • The best what you can is to compile your program statically (do note that the binary can then have several hundreds of MB). This still won't guarantee that the binary will run across all distributions, as such requirement is ridiculous. – Šimon Tóth Apr 21 '15 at 13:46
  • Well, there is also an option to distribute the sources with clang and compile on-site. But that will have other issues with missing headers and such. – Šimon Tóth Apr 21 '15 at 13:51
  • You don't want to install any libraries and you don't want to compile statically... There's a saying about eating your cake and having it too. – Jussi Kukkonen Apr 21 '15 at 20:51

1 Answers1

0

There are big differences between linux distributions, especially version of libraries and package management system.

The only way how to do it is to build/compile your project against all libraries you need to use statically, and distribute them with your project.

For example skype and ejabberd do it this way.