c++ - Error loading shared libraries libclntsh.so.11.1 cannot open -
error while loading shared libraries: libclntsh.so.11.1 : cannot open shared obj file no such file. when running crontab.
i complied c++ program, proc programme after compiling proc run below command.
g++ filename.cpp -i $oracle_home/precomp/public -l $oracle_home/lib -lclntsh -o test
i created crontab run every min
$ crontab -l * * * * * /home/test > /home/te.txt 2>&1
i made symbolic link of library. i'm getting above error within te.txt
im searching past 2 days , went through similar question, still not able clear error.
i'm not sure ld_library_path
or .bash_profile
. how include library.
your can export library path in .bash_profile like
export ld_library_path=$oracle_home/lib
or can re-create libclntsh.so in /usr/lib/ or /lib
c++ linux oracle crontab
No comments:
Post a Comment