Error while loading shared libraries: libclntsh.so.11.1 : cannot open shared obj file no such file. When running from crontab.
I complied my c++ program, its a proc program after compiling proc I will run the below command.
g++ filename.CPP -I $ORACLE_HOME/precomp/public -L $ORACLE_HOME/lib -lclntsh -o test
I created a crontab to run it every min
$ crontab -l
* * * * * /home/test > /home/te.txt 2>&1
I made a symbolic link of that library. But I'm getting above error inside te.txt
Im searching this for past 2 days and also went through the similar question, but still I not able to clear the error.
I'm not sure with LD_Library_path
or .bash_profile
. how to include that library.