Hi,
Try w/o the lsocket option..should work w/o the -lsocket option...
hth,
Arni
shane yan wrote:
>>>>
>>>> I wrote a c program to access MySql database on RH Linux 6.0. When I tried
>>>> to compile it, it failed.
>>>>
>>>> # gcc -g -o mysqltest mysqltest.c -I/usr/lib/mysql -L/usr/include/mysql
>>>> -lmysqlclient -lsocket -lnsl
>>>> /usr/bin/ld: cannot open -lsocket: No such file or directory
>>>> collect2: ld returned 1 exit status
>>>>
>>>> Currently, there is no libsocket.a under /usr/lib. Anybody knows where
>>>> I can get this file to fix the problem?
>>>>
>>>> Thanks,
>>>> Shane
--- Internet Message Header Follows ---
Received: from [128.214.248.27]
by smtp.daymarc.com (FirstClass Mail Server v5.1)
transient id 233; 2:23:25 AM -0400
Received: from vger.rutgers.edu ([128.6.190.2]:11322 "EHLO vger.rutgers.edu")
by listserv.funet.fi with ESMTP id <S17273AbPHMFr4>;
Fri, 13 Aug 1999 08:47:56 +0300
Received: by vger.rutgers.edu via listexpand id <S155149AbPHMFD2>;
Fri, 13 Aug 1999 01:03:28 -0400
Received: by vger.rutgers.edu id <S156260AbPHMEt0>;
Fri, 13 Aug 1999 00:49:26 -0400
Received: from dirty.research.bell-labs.com ([204.178.16.6]:16067 "HELO
dirty.research.bell-labs.com") by vger.rutgers.edu with SMTP
id <S157661AbPHMDki>; Thu, 12 Aug 1999 23:40:38 -0400
Received: from bronx.dnrc.bell-labs.com ([135.180.160.8]) by dirty; Thu Aug 12
20:33:50 EDT 1999
Received: from caip.rutgers.edu (blhobvmpc [135.180.161.189])
by bronx.dnrc.bell-labs.com (8.9.3/8.9.3) with ESMTP id UAA02559;
Thu, 12 Aug 1999 20:34:12 -0400 (EDT)
Message-ID: <[EMAIL PROTECTED]>
Date: Thu, 12 Aug 1999 20:38:03 -0400
From: Arni Raghu <[EMAIL PROTECTED]>
Organization: Rutgers University
X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.10 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: shane yan <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: libsocket.a file???
References: <[EMAIL PROTECTED]> <99072807515700.00142@darkstar>
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: [EMAIL PROTECTED]
Precedence: bulk
X-Loop: [EMAIL PROTECTED]
Return-Path: <[EMAIL PROTECTED]>
X-Orcpt: rfc822;linux-newbie-outgoing
--- Internet Message Header Follows ---
Received: from [128.214.248.27]
by smtp.daymarc.com (FirstClass Mail Server v5.1)
transient id 59; 6:20:45 AM -0400
Received: from vger.rutgers.edu ([128.6.190.2]:37136 "EHLO vger.rutgers.edu")
by listserv.funet.fi with ESMTP id <S17118AbPHMJHO>;
Fri, 13 Aug 1999 12:07:14 +0300
Received: by vger.rutgers.edu via listexpand id <S155428AbPHMJBf>;
Fri, 13 Aug 1999 05:01:35 -0400
Received: by vger.rutgers.edu id <S155897AbPHMHym>;
Fri, 13 Aug 1999 03:54:42 -0400
Received: from fc.daymarc.com ([205.181.145.135]:2821 "HELO smtp.daymarc.com")
by vger.rutgers.edu with SMTP id <S154790AbPHMGUo>;
Fri, 13 Aug 1999 02:20:44 -0400
Message-id: <[EMAIL PROTECTED]>
Date: Thu, 12 Aug 1999 20:38:03 -0400
Subject: Re: libsocket.a file???
From: [EMAIL PROTECTED] ([EMAIL PROTECTED])
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: [EMAIL PROTECTED]
Precedence: bulk
X-Loop: [EMAIL PROTECTED]
Return-Path: <[EMAIL PROTECTED]>
X-Orcpt: rfc822;linux-newbie-outgoing
--- Internet Message Header Follows ---
Received: from listserv.funet.fi (128.214.248.27)
by smtp.daymarc.com (FirstClass Mail Server v5.1)
transient id 282; 2:37:53 PM -0400
Received: from vger.rutgers.edu ([128.6.190.2]:55934 "EHLO vger.rutgers.edu")
by listserv.funet.fi with ESMTP id <S17057AbPHMN1O>;
Fri, 13 Aug 1999 16:27:14 +0300
Received: by vger.rutgers.edu via listexpand id <S161150AbPHMMRG>;
Fri, 13 Aug 1999 08:17:06 -0400
Received: by vger.rutgers.edu id <S154756AbPHMLOn>;
Fri, 13 Aug 1999 07:14:43 -0400
Received: from fc.daymarc.com ([205.181.145.135]:3254 "HELO smtp.daymarc.com")
by vger.rutgers.edu with SMTP id <S161115AbPHMKRt>;
Fri, 13 Aug 1999 06:17:49 -0400
Message-id: <[EMAIL PROTECTED]>
Date: Thu, 12 Aug 1999 20:38:03 -0400
Subject: Re: libsocket.a file???
From: [EMAIL PROTECTED] ([EMAIL PROTECTED])
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: [EMAIL PROTECTED]
Precedence: bulk
X-Loop: [EMAIL PROTECTED]
Return-Path: <[EMAIL PROTECTED]>
X-Orcpt: rfc822;linux-newbie-outgoing