LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-23-2009, 06:32 PM   #1
purcellmd
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Where do I get the sockets library.


I am new to linux.
I just installed fedora (11) for the first time.
I brought over a C program from a unix system and tried to compile it.
I received the error:
cannot find -lsocket.

I used 'find' and it was not there.
Is the socket library under a different name in linux?
Or do I need to download libraries from some where?
I I down load is 'yum' the correct tool?

I search several Q/A on the web, but none seemed to answer my question
 
Old 11-23-2009, 06:51 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Quote:
Try `make clean` and run `./configure` again. If that doesn't work, edit the Makefile and remove '-lsocket' wherever you see it.
Found this when searching for your error on google.
 
Old 11-24-2009, 10:33 PM   #3
purcellmd
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the response.

Removing 'lsocket' worked. This indicates the socket library is included with another library.
 
Old 11-25-2009, 02:54 AM   #4
anil_4m
LQ Newbie
 
Registered: Dec 2007
Posts: 4
Blog Entries: 1

Rep: Reputation: 0
use grep command
eg
go in directory $cd /usr/src/linux-headers-2.6.22-3-486/include/linux
now $grep search_filename(socket) *.h
 
0 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ldd reports shared library missing, but library exists on disk athv_gr Linux - Newbie 7 05-13-2009 12:31 PM
Program to forward tcp sockets to unix domain sockets mikepol Linux - Networking 0 09-27-2007 09:49 AM
how to install C++ Sockets Library mohtasham1983 Programming 4 01-05-2007 03:44 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
Sockets and standard I/O library failure_to Programming 0 05-22-2004 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration