>>>>> "Steve" == Steve Freitas <sflist@stripped> writes:
>> The file is now called libmyodbc.so
>>
>> When you do an make install, you should get the following files:
>>
>> (/usr/local/lib) ls -l /usr/local/lib/libmyodbc*
>> -rwxr-xr-x 1 root other 566552 Sep 15 16:26
>> /usr/local/lib/libmyodbc-2.50.26.so
>> -rwxr-xr-x 1 root other 638 Sep 15 16:26
>> /usr/local/lib/libmyodbc.la
>> lrwxrwxrwx 1 root other 20 Sep 15 16:26
>> /usr/local/lib/libmyodbc.so -> libmyodbc-2.50.26.so
Steve> Monty,
Steve> Here's what I've got in /usr/local/lib/libmyodbc*
Steve> libmyodbc.a
Steve> libmyodbc.la
Steve> Just to tell you, I've also got:
Steve> libiodbc.so.2.0.50 and the associated symlinks
Steve> ...and a few other files. But no libmyodbc.so. I don't know if this tells
Steve> you anything, but in /usr/local/lib/mysql/libmy* I've got:
Steve> libmysqlclient.a
Steve> libmysqlclient.la
Steve> libmysqlclient.so -> libmysqlclient.so.6.0.0
Steve> libmysqlclient.so.6 -> libmysqlclient.so.6.0.0
Steve> libmysqlclient.so.6.0.0
Steve> libmystrings.
Steve> libmysys.a
Steve> I did a find from / and couldn't find libmyodbc.so anywhere. What should
Steve> be my next thing to try? Should I do another (I've done two now) make
Steve> install of MyODBC?
The problem is that on Linux, the myodbc configure files doesn't build
shared libraries by default:
make
....
checking for
/usr/cygnus/codefusion-990706/H-i686-pc-linux-gnulibc2.0/lib/gcc-lib/i686-pc-linux-gnulibc2.0/2.9-codefusion-990706/../../../../i686-pc-linux-gnulibc2.0/bin/ld
option to reload object files... -r
checking dynamic linker characteristics... no
checking if libtool supports shared libraries... no <--- PROBLEM
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
(My original 'ls' was from my Solaris 2.7 sparc system)
Fix:
Modify config.guess (line 638)
From:
case "$ld_supported_emulations" in
elf_i?86) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;;
i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;;
i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;;
to
case "$ld_supported_emulations" in
elf_i?86) echo "${UNAME_MACHINE}-pc-linux-gnu" ; exit 0 ;;
i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;;
i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;;
After I did run configure, make , make install I got:
(/my/local/src/myodbc-2.50.26) ls -lt /usr/local/lib/
total 4494
-rwxr-xr-x 1 root root 609 Sep 19 21:37 libmyodbc.la
-rwxr-xr-x 1 root root 216424 Sep 19 21:37 libmyodbc-2.50.26.so
lrwxrwxrwx 1 root root 20 Sep 19 21:37 libmyodbc.so ->
libmyodbc-2.50.26.so
-
Regards,
Monty