LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-12-2006, 09:03 AM   #1
Rawjoe
LQ Newbie
 
Registered: May 2006
Posts: 13

Rep: Reputation: 0
/lib and /usr/lib


I was told to bring this question here from the newbie fourm so.....

Maybe this is slighty above Newbie, not sure. The two subject directories, from what I understand, contain c and c++ libraries needed for dynamically linked apps. So....would a linux system need anything in those directories if every app on the system was compiled statically?

The responder said that SO libraries are still needed. Is this true? I only ask because I have a minimal linux I created and boots and seems to run fine with nothing in the /lib and /usr/lib directories? But I am still new enough to linux to know I may not be seeing everything. Any advice is appreciated.

Joe
 
Old 06-12-2006, 10:44 AM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
If all executables are statically linked (with the correct modules) they will run without dld.
 
Old 06-12-2006, 01:26 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Personally I'd find it rather un-economic to have the same 20 chunks
of code in RAM (or on disk, for that matter) 100 times, specially
if they happened to add up to 50 MB or more ;}

And to answer the actual question: no, you wouldn't need those
any more ...


Cheers,
Tink
 
Old 06-13-2006, 12:25 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Reading the (other)thread again reveals that I might have interpreted it wrong. I was under the impression that TS wanted to compile statically.

Sorry to TS if I misinformed you
 
  


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
/lib and /usr/lib Rawjoe Linux - Newbie 3 06-12-2006 01:17 PM
Relocat /usr/lib and /usr/lib64 to a different path schokshi Fedora 3 08-30-2005 09:14 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM
/usr/lib and /usr/local/lib doxxan Slackware 5 06-15-2004 12:58 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:07 PM.

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