LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-08-2010, 04:05 PM   #1
baxzius
Member
 
Registered: Jan 2010
Location: India
Distribution: ubuntu
Posts: 134
Blog Entries: 1

Rep: Reputation: 21
please difference between /usr/include & /usr/local/include


Dear friends,
I just downloaded the SDL source code. i did compile and make of this code.then i did make install.

but i didnt see the files of SDL.h and lib.SDL.*** in /usr/include/

but later i found out that these files are placed in /usr/local/include and
/usr/local/lib.

how can i specifically install libraries on /usr/include and /usr/lib
please tell me.

Last edited by baxzius; 07-08-2010 at 04:07 PM.
 
Old 07-08-2010, 04:22 PM   #2
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
use --prefix=/usr on the configure script

/usr/include is managed by the system (apt, yum, pacman, portage, zypper or urpmi depending on your distribution). /usr/local is not managed, it host files that are outside of the main managed tree. It is not recommanded to override things in the managed tree, it cause problems in the long term. Why don't you just use the SDL developper package provided by your distribution?
Code:
 sudo apt-get install libsdl-dev
^^For Ubuntu

Last edited by Elv13; 07-08-2010 at 04:23 PM.
 
Old 07-09-2010, 05:19 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,043
Blog Entries: 52

Rep: Reputation: Disabled
This explains where everything goes:
http://tldp.org/LDP/Linux-Filesystem...tml/index.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Differences between /usr/include/* and linux/include/* simopal6 Linux - General 2 08-26-2007 03:41 AM
changing include directories - /usr/local/include quep_fly Linux - Newbie 6 08-12-2007 04:36 PM
which headers usr/include/ or /usr/include/nptl/? Chris.Rector Linux - Enterprise 0 02-02-2007 01:40 PM
deleted /usr/local/include Ha1f *BSD 3 11-05-2006 08:44 AM
/usr/local/include deleted.... HappyDude Fedora 5 11-02-2004 01:01 PM


All times are GMT -5. The time now is 08:25 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration