[erlang-questions] Creating an application that is portable across versions of CentOS
Sat Dec 20 19:37:25 CET 2014
I don't confirm this.
Erlang R16B03-1 binaries built on Centos 5.10 with static openssl and
disabled ncurses are portable between Centos 5.10. 6.5 and 7.0, Fedora 19
and 20, tested this myself on digitalocean droplets and by some of my
clients who run the software with bundled in Erlang on their own servers.
The same is true with Ubuntu 10.04, 12.04, 14.04, 14.10, Debian 6.0 and 7.0
with binaries built on Debian 6.0.
It might depend on libc or something other, but in general they are
portable or at least sometimes are portable.
2014-12-20 19:23 GMT+03:00 Florian Waas <>:
> Just confirming what others already mentioned: in fact, natively built
> binaries (including the Erlang VM) aren't portable between CentOS 5.x and
> 6.x. Within each generation things are usually portable though, e.g., from
> 5.8 to 5.10 etc.
> We have a few customers who still run 5.x -- and, yes, we roll a separate
> 5.x release for them.
> On Sat, Dec 20, 2014 at 1:58 AM, zxq9 <> wrote:
>> On 2014年12月20日 土曜日 11:11:34 Loïc Hoguin wrote:
>> > The beam files are portable. The VM itself is not. As a first guess I
>> > would look to see if there are libc incompatibilities between the CentOS
>> > versions which would make loading the executables fail. Another possible
>> > issue is crypto, if you didn't compile it statically.
>> > If that fails I would use file or ld or other on the erl or erlexec
>> > executable to figure out what the problem is. Running erl directly might
>> > also give a better error message.
>> Indeed, there are a lot of differences between the 5.x and 6.x systems
>> regard to libs. It is unreasonable to expect a binary built against one
>> major version family to work directly on another. Rebuilds are nearly
>> necessary. There are major version differences between some core
>> libraries and
>> the kernels don't look much alike at all anymore, either (RedHat
>> backports a
>> lot of security fixes, but they don't slide versions forward in the core
>> distro, only in "developer tools" add ons).
>> It looks like Erlang Solutions is only maintaining rpms for the Fedora
>> derived family (RHEL 6 & friends) and Fedora 19 family (RHEL 7 &co.). 5.x
>> based on Fedora Core 6 -- which in Linux history terms was the Bronze Age.
>> All that said, building from source on 5.2 should be pretty
>> straightforward if
>> it has been receiving updates (in particular to gcc -- I'm not sure what
>> version 5.2 had to start with, but needed bug fixes should have been
>> in maintenance patches). Building with wxErlang might be a challenge,
>> erlang-questions mailing list
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions