Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-08-2010, 04:05 PM   #1
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

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
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
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?
 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
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,307
Blog Entries: 61

Rep: Reputation: Disabled
This explains where everything goes:


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:31 PM.

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