ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Bit of a tough one to answer this, as you did not specify what the file type is that you downloaded. However, you are likely to have downloaded a file somewhat like either:
GLUT-??.??.tar.gz
or
GLUT-??.??.rpm
or
GLUT-??.??.deb
if its a .deb, sorry can't help, never used it. If its rpm, then (i think) you just type "rpm -i GLUT-??.??.rpm" and it should install automatically. Pay attention to the output on the screen, because it will tell you where the binaries are installed. Type "man rpm" for more info.
If its a .tar.gz, then, type "tar -xvzf GLUT-??-??.tar.gz" and it will uncompress and unarchive into a directory of the same name as the .tar.gz file. So now you go into that directory - "cd GLUT-??.??" - and take a look at the files inside - "ls". What you will hopefully see is these important files:
README
configure
Makefile
and maybe
Install.sh
INSTALL
Its always best to read the README, and INSTALL (if there is one) which give info on software version and specifics on how to install. If there is a Install.sh, then just type "./Install.sh" or if theres a configure, type
"./configure" - lots of things will happen, then
"make" - lots more things will happen, then
"make install" - even more things will happen.
Again, pay attention of where the binaries are installed to.
Once its installed, other things that need glut, should compile okay.
I used the tar.gz GLUT ran the configure, make, and make install. However, things did not compile with GLUT. So is it a problem where the libraries are not in the path and therefore it cannot be found?
The other thing is I got some error about dynamic linked libraries when I tried to run of the GLUT compile programs, there was some reference to ld.so.
It sounds to me link Glut requires a dynamic library that the configure program cannot find. This is a problem because Glut will compile fine without the library it needs, but when you run a Glut program that requires a symbol or function from that library, it will crash or do something equally bad. That is what the ld.so error is. ld is trying to load into memory a library that isn't where you say it is.
Best thing I can suggest is to run configure again and look to see what libraries it is trying to link too. There should be an error here if the library is not there.
If there is an error, and it tells you which library you need, then just go on the net and look for that library. If there is no errors then you may need to go and look on the glut websites for it dependancies (i.e. what packages Glut needs to run) and get them and install them.
If it's .deb (a debian package), open up a console window and cd to the dir where you have it and type dpkg --install glut*deb
I use the astriks to help ease the process due to the fact that most file names are quite long. If you prefer, you can type the whole name in.
If you're on a machine which doesn't support a foreign package; lets say a Debian and you are trying to use an rpm, you can get a nifty little program called alien to convert it to other package formats.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.