Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
And find out that I already have the newest version (which I have suspected since I recall installing it).
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*
Why's the asterisk? Is it a footnote or part of the code?
I don't seem to have /usr/ directory. I cannot find it anywhere.
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:
findg / -type f -name "glut.h"
The answer: No such file or directory.
This I also got:
Quote:
No command 'find:' found, did you mean:
Command 'findg' from package 'ncl-ncarg' (universe)
Command 'find' from package 'findutils' (main)
Command 'findv' from package 'polylib-utils' (universe)
find:: command not found
OK, I just installed Qt library or whatnot. Then I issued some commends I found here. See what happened:
Quote:
alex@.....:~/GFORTRAN-APPS$ which qmake
/usr/bin/qmake
alex@alex....:~/GFORTRAN-APPS$ qmake -version
QMake version 2.01a
Using Qt version 4.8.6 in /usr/lib/i386-linux-gnu
It tells me that the library is in /usr/ subdirectory. Where is it? Why is it such a crazy mystery? I cannot find /usr/ anywhere.
Why's the asterisk? Is it a footnote or part of the code?
It means to find and file in that directory beginning with libglut, so if you had a libglut1, libglut2, etc. they should all show.
Quote:
Where is the /usr/ directory?
In the terminal type: ls / That will show you all the directories in the root of the filesystem including usr.
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.
For finding files on the whole filesystem locate is very useful. You may need to install it first
Code:
sudo apt-get install locate
To be able to start using it first needs to create an index of your hard drive. It does that automatically through cron, but you can start the process right away by typing
Code:
sudo updatedb
This may take a while, but once that is done you can simply type e.g.
Code:
locate glut.h
You'll find that it is faster then find when you search the whole disk and I personally also think it's easier to use if you are not used to the find syntax
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.