I am running a bash script that uses libboost to hold a statistical model in memory. When I run the script directly from the command line (ie: # /pylda/exec-test.sh) it works fine. However, when it runs on the cron job, I get the following error:
"/root/pylda/src/infer: error while loading shared libraries: libboost_program_options.so.1.46.1: cannot open shared object file: No such file or directory"
How does cron behave differently? Is there an environmental variable that needs to be set? This is cron as root, as far as I know.
Thanks