Ubuntu directories
Hi there. I have Ubuntu 14.04 installed. Actually I have been doing a lot of work in this OS for about a year. The thing I cannot still comprehend is how to find files I installed. In this particular case I need glut.h for g++ compiler. So I go here, do this command;
Code:
sudo apt-get install freeglut3-dev So, the next step is to find the glut.h file and reference it with #include command. I cannot find it anywhere. This website says it has to be here: Code:
/usr/lib/x86_64-linux-gnu/libglut* I don't seem to have /usr/ directory. I cannot find it anywhere. How does Ubuntu directory work? Thanks, - A. |
You can use find command for searching.
Code:
find / -type f -name "glut.h" |
Most C header files would be in /usr/include ... libraries are in lib.
|
alex@alex-....:~/GFORTRAN-APPS/SPHERE-DESIGN$ find / -type f -name "glut.h"
find: `/run/udisks2': Permission denied find: `/run/lightdm': Permission denied find: `/run/cups/certs': Permission denied Why is it so? I am the administrator on this machine. I installed this OS. I also think veerain misdialed the command. It seems to be: Quote:
This I also got: Quote:
Command 'find' from package 'findutils' (main) Quote:
Where is the /usr/ directory? |
Where is the /usr/ directory?
|
OK, I just installed Qt library or whatnot. Then I issued some commends I found here. See what happened:
Quote:
|
Quote:
Quote:
If you are in a filemanager, use the up arrow to get to the root of the system. There are standard directories on Linux and they are listed under / alphabetically. Run the find command as root, preface it with sudo. The prompt in your earlier post (#4) clearly shows you are running it as a normal user. |
Thank you. Very good. It is now working. A.
|
For finding files on the whole filesystem locate is very useful. You may need to install it first
Code:
sudo apt-get install locate Code:
sudo updatedb Code:
locate glut.h |
Cherry 2000 :-), sorry, Joe_2000, thank you. I used the first command and it installed locate as was reported. Locate works now. - A.
|
All times are GMT -5. The time now is 05:20 PM. |