Home » Infrastructure » Linux » cant run my code
cant run my code [message #167475] Thu, 13 April 2006 04:29 Go to next message
surbhigarg
Messages: 11
Registered: January 2006
Junior Member
hello

i m compiling a c++ and a pro*c program by following command

gcc -o cntrl controller.cpp switch_file.c -L/home/oracle/ora9i/lib/ -lpthread -lclntsh -lstdc++ -DDEBUG

it compiles fine.
but when executed ./cntrl it gives the following error

./cntrl: error while loading shared libraries: libclntsh.so.9.0: cannot open shared object file: No such file or directory

can anyone help me.

thanks
Surbhi
Re: cant run my code [message #167583 is a reply to message #167475] Fri, 14 April 2006 03:12 Go to previous message
madhusunkara
Messages: 59
Registered: March 2006
Location: hyderabad,india
Member
set LD_LIBRARY_PATH env variable

Thanks
Madhu
Previous Topic: connect to linux
Next Topic: Updating the server..!!
Goto Forum:
  


Current Time: Thu Mar 28 14:33:20 CDT 2024