LDPATH=/usr/lib that should not exist in env.d since it's a default search path
Unfortunately it has to be in there before nomachine's LDPATH, otherwise nomachine breaks everything because it provides a duplicate, broken libX11. *** This bug has been marked as a duplicate of 76356 ***