One thing you may try is to source the IDL setup file for the shell script that you are using (idl_setup.bash or idl_setup.ksh) which lives under /Applications/itt/idl71. This would be to set the IDL_DIR and other environment variables which may not be set.
Apart from that I'm not sure what the problem is. The supported OS version for IDL 7.1 on Mac was 10.5 when it was first released and here is a link to that information:
http://www.exelisvis.com/Support/Help...
There have been quite a few changes to Mac OSX since 10.5 which will likely keep IDL 7.1 from running as expected. There are also many bugs that will be present in the older version of IDL that are not there in IDL 8.4. Like I mentioned before, the next version of IDL (IDL 8.5) will support Mac 10.10 and should be coming out in a few months.