If its a path problem, you should get error output that says something about not finding a particular library. Check your LD_LIBRARY_PATH on both machines to make sure.
Alternatively, one machine may not catch a syntax error because its compiler is different than the other. In other words, one...