Hi , 
        Yeah you have to install it . But probably it will be providede in your 
distro cds (i.e the 2 cds from where you get RH 7.1 ) 

        I genereally do the following to install all realted stuff about mysql 

        rpm -ivh mysql* --nodeps --force.

After mounting each cd & going tho the dircetory /mnt/cdrom/RedHat/RPMS

Acctually as you see the error is Id ( i.e the linker can not find the 
mysqlclinet library ) now 2 things may happen 1> as I told mysqlclient is not 
installed or 2> is that it is installed but not in a regular location ( i.e 
/usr/lib) so try to find a file named libmysqlclient.* (here * can be la or 
so ) then give the location at compilation time using the follwoing.
        
        gcc -0 testsql testsql.c -L /path/to/libmysqlclient.so -lmysqlclient -lz

                                                                                       
                                 Anirban Biswas.


On Tuesday 18 Feb 2003 13:56, payal kundu wrote:
> To Mr.Anirban Biswas,
> Sir,
> after going through your instructions i obtained the
> following result
>
> [root@localhost root]# gcc -o mysql mysql.c
> -lmysqlclient -lz
> /usr/bin/ld: cannot find -lmysqlclient
> collect2: ld returned 1 exit status
>
> am I required to install the library mysqlclient from
> somewhere else
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> http://shopping.yahoo.com


--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3

Reply via email to