LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   please difference between /usr/include & /usr/local/include (https://www.linuxquestions.org/questions/linux-software-2/please-difference-between-usr-include-and-usr-local-include-818767/)

baxzius 07-08-2010 04:05 PM

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.

Elv13 07-08-2010 04:22 PM

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

brianL 07-09-2010 05:19 AM

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


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