Reading through you initial post again – is there a reason for not using the executable you built on the login node also on the compute node? The compilation errer point to e.g. some module missing there that is (probably loaded by default in this case) available on the login node.