I write a C program to save data into MYSQL database on Solaris 5.8.
my Makefile is :
CC=gcc
INCLUDES = -I/usr/local/mysql/include/mysql
LIBS = -L/usr/local/mysql/lib/mysql -lmysqlclient -lm -lsocket -lnsl -lz
all: kscsbt
KStringCounting.o: KStringCounting.c KString.h
$(CC) -c $(INCLUDES) KStringCounting.c
kscsbt: KStringCounting.o
$(CC) -o kscsbt KStringCounting.o $(LIBS)
-------------
but Error occur when runing kscsbt:
ld.so.1: kscsbt: fatal: libmysqlclient.so.12: open failed: No such file or directory
Killed
?????
Would you please tell me why?
Thank you very much.
my Makefile is :
CC=gcc
INCLUDES = -I/usr/local/mysql/include/mysql
LIBS = -L/usr/local/mysql/lib/mysql -lmysqlclient -lm -lsocket -lnsl -lz
all: kscsbt
KStringCounting.o: KStringCounting.c KString.h
$(CC) -c $(INCLUDES) KStringCounting.c
kscsbt: KStringCounting.o
$(CC) -o kscsbt KStringCounting.o $(LIBS)
-------------
but Error occur when runing kscsbt:
ld.so.1: kscsbt: fatal: libmysqlclient.so.12: open failed: No such file or directory
Killed
?????
Would you please tell me why?
Thank you very much.