Problem with MySQL driver for unixODBC on Debian Lenny?

The option L/usr/lib/odbc tells the compiler where to find the library for linking But the system doesn't know where to find the library when you run the executable You need to either statically link against libmyodbc, or tell the system where to find the library The first can be done by changing lmyodbc to static -lmyodbc The second can be done by editing /etc/ld.so. Conf (or adding to /etc/ld.so.conf. D) and re-running ldconfig or by setting the LD_LIBRARY_PATH environment variable to include /usr/lib/odbc.

The option -L/usr/lib/odbc tells the compiler where to find the library for linking. But the system doesn't know where to find the library when you run the executable. You need to either statically link against libmyodbc, or tell the system where to find the library.

The first can be done by changing -lmyodbc to -static -lmyodbc The second can be done by editing /etc/ld.so. Conf (or adding to /etc/ld.so.conf. D) and re-running ldconfig or by setting the LD_LIBRARY_PATH environment variable to include /usr/lib/odbc.

A third option is to hardcode the /usr/lib/odbc path in the binary, do that by adding the flag -Wl,-rpath,/usr/lib/odbc – nos Feb 28 at 20:49.

With the same code on Debian Lenny, I have had problems. It went ok. Although I correctly installed unixODBC and the associated MySQL driver (myodbc) on my host (Debian Lenny) the simplest way (i.e.

Via aptitude), I could not find this shared library. I wrongly thought, well, I will create a symlink on /usr/lib/odbc/libmyodbc.so.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions