sas writes:
 > I have no problem compiling sample program
 > (I compiled it in this way:
 > gcc -lsqlplus -I/usr/include/mysql -L/usr/local/lib/ -o sample
 > sample.cc)
 > 
 > But when I execute the binary, I got this error message:
 > 
 > [root@sas /root]# ./sample
 > ./sample: error while loading shared libraries: libsqlplus.so.1: cannot
 > open shared object file: No such file or directory
 > 
 > And I checked the library in /usr/local/lib/
 > these are what I've got
 > 
 > -rw-r--r--    1 root     root      4053584 Feb 19 11:41 libsqlplus.a
 > -rwxr-xr-x    1 root     root          695 Feb 19 11:41 libsqlplus.la
 > lrwxrwxrwx    1 root     root           19 Feb 19 11:41 libsqlplus.so ->
 > libsqlplus.so.1.0.7
 > lrwxrwxrwx    1 root     root           19 Feb 19 11:41 libsqlplus.so.1
 > -> libsqlplus.so.1.0.7
 > -rwxr-xr-x    1 root     root      2500396 Feb 19 11:41
 > libsqlplus.so.1.0.7
 > 
 > I can't see what the problem is ........Would you give me some hints?
 > I'll be apreciated :)
 > Thanks a lot ~
 > 
 > 


Hi!

Check that you have /usr/local/lib in your dynamic loader search path.

You could also link your programs -static to avoid re-configuring
dynamic linker.


Regards,

Sinisa

      ____  __     _____   _____  ___     ==  MySQL AB
     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sinisa Milivojevic
    /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:[EMAIL PROTECTED]
   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaca, Cyprus
  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____
  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
             /*/             \*\                Developers Team

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to