"ld.so.1" error using a cron job | works fine otherwise

Hi,
A cron job CJ invokes a shell script SC. SC internally invokes multiple perl scripts. One of the perl scripts deals with Accurev (i am using Accurev CLI).
The first accurev command encountered is
accurev merge -i <<file_name>> (file name has absolute path)

When I run the perl script or the shell script SC, i get the desired accurev output (sucess).
But when i schedule this through cron CJ, i get this error:
"ld.so.1: accurev: fatal: libintl.so.8: open failed: No such file or directory"

Please help me.... ive never got issues with cron or accurev earlier..this is driving me crazy.. :confused:
OS is solaris 9

Thanks,
DJ

The typical problem with a script that runs normally from the command line but fails at some level as a cron job is environmental differences. If you run a simple cron job with the command:

env > /tmp/cron_environment

Then run:

env > /tmp/interactive_env

And compare the results. You'll notice that the cron environment is much more limited. If you simply add all the missing parts from your interactive environment to the script, it will probably work. You can then slowly remove those environmental elements that are unneeded until you get down to what you really need.

See Chapter 12 of Expert Shell Scripting.