www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - linux n00b

reply "Xiaoxi" <xiaoxi 163.com> writes:
Hi,

at home I run, osx, windows and freebsd, all work fine with D.

However our servers at work run linux RHEL5, RHEL6.4 and our 
workstations run Ubuntu... can i use feodora rpm for rhel?

  If I want to build a d program which works on all dists, can i 
build that from any linux machine since dmd links statically by 
default or should I chose the oldest, i.e rhel5 to build on? 
because of possible glibc issues?

Its not so clear from the download page, it only mentions dist 
name, not version... and rhel not at all?

Thanks
Jul 13 2014
parent "Dicebot" <public dicebot.lv> writes:
On Sunday, 13 July 2014 at 13:38:34 UTC, Xiaoxi wrote:
  If I want to build a d program which works on all dists, can i 
 build that from any linux machine since dmd links statically by 
 default or should I chose the oldest, i.e rhel5 to build on? 
 because of possible glibc issues?
Using machine with oldest glibc among all targets should generally work however recommended way to distribute software in Linux world is via distro-specific packages each built on own system. Common binary distributions are likely to work in most cases but no one gives you any guarantees for that - each distro is effectively a different operating system.
Jul 13 2014