comp.lang.ada
 help / color / mirror / Atom feed
From: Tero Koskinen <tero.koskinen@iki.fi>
Subject: Re: App Binaries and different Linux Distros
Date: Sat, 28 Mar 2009 19:14:11 +0200
Date: 2009-03-28T19:14:11+02:00	[thread overview]
Message-ID: <20090328191411.e7d4a2d5.tero.koskinen@iki.fi> (raw)
In-Reply-To: 201ac0e1-b44b-4454-8325-5d0f65716a36@s1g2000prd.googlegroups.com

On Sat, 28 Mar 2009 07:52:48 -0700 (PDT) RasikaSrinivasan@gmail.com
wrote:

> My dev environment is Ubuntu. Some apps I am developing are targeted
> to run on a CentOS server. Any gotchas re running the binary built on
> Ubuntu?

You need to be careful with the shared library versions.
It is best if you can build fully static binaries.

Another issue is the architecture. A binary for i386 might not run
on amd64 system (without extra tweaking).

For example, Ubuntu might be using glibc version 2.4.1 and shared GNAT
runtime 4.2.2. At the same time CentOS (or other Linux distribution)
might use glibc version 2.3.2 and GNAT runtime 4.0.0.

If you use functions which exist only in the newer library version,
then your application don't work on systems with older libraries.

> Most are network, text based applications.
> 
> Thanks for any pointers. srini

-- 
Tero Koskinen - http://iki.fi/tero.koskinen/



      reply	other threads:[~2009-03-28 17:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-28 14:52 App Binaries and different Linux Distros RasikaSrinivasan
2009-03-28 17:14 ` Tero Koskinen [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox