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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have downloaded a tar.gz file from the GNU website to my Windows PC. I have managed to extract this into a folder in my Home folder in my Linux partition. I did this from Gnome. I was unable to make a copy of the original gz file in my windows partition and save that too in Linux but no matter (copy/paste did nothing).
I am waiting for some Linux books to arrive.
How do I install this package ?
I went to the GNU site and there is page after page of steps to take which I think relate to what I will call 'expert installation'. There must be something like an install.exe ( I thought it was called a run file) for this. Any pointers please ? ( Then, I can start work, hurray!).
I went to the GNU site and there is page after page of steps to take which I think relate to what I will call 'expert installation'
Installing from source, that is from the file.tar.gz you have downloaded, is always a kind of "expert installation". However you can start from reading this sticky post here, a little HOWTO from trickykid.
It would be also useful if you post the Linux distro you are running on: maybe there is an easy way to install GCC not from source, but from a package. The way to do is strictly dependent on your Linux distro and also from the Desktop environment you are running on (GNOME or KDE, just to cite two of the most common ones).
I see the word 'distro' a lot. I hope that it means the 'flavor' of Linunx. I am useing Debian Etch, my xserver is Gnome.
I downloaded and unpacked gcc-core-4.0 -20060601.tar.bz2.
As the Forum says its also about helping yourself so I will poke around and see if I can find a GCC package in the meantime. I have made a GCC folder and all the files from .bz2 are in it.
Yes, sorry! Distro is a short for distribution, that is Linux flavour. I am not used with debian, but you can try something like
apt-get install gcc
from the command line, as root.
By the way, the process to install from source is worth to be learned, since not all the software in the world has been compiled for every linux flavour. The quick way to do installations from source is simply as to issue the following commands:
Briefly, ./configure is a script that check your system to look for compilers, setting flags, and look for any other system component required to perform the installation. make is the command that effectively compile the sources. make check is the command to verify the software you have just compiled (not universally available, however). make install is the command that effectively install (that is copy) the executables to make them available to the users.
The apt etc command gets so far and fails because of my inet connection so I will fix that and try again.
The second method fails for lots of reasons; no such file as configure, building source not supported, no makefile, and lots of other whinges. BTW what I have is a snapshot which I hope was the right file to download. I will press on with the inet, but thanks so far.
The second method fails for lots of reasons; no such file as configure, building source not supported, no makefile, and lots of other whinges.
The instructions at http://gcc.gnu.org/install/ are well detailed. Try to follow them step by step and feel free to post any problem here! Regarding "building source not supported", I guess this is "Building in the source directory", indeed. You have to create a directory where you will do the build process:
% mkdir objdir
% cd objdir
% srcdir/configure [options] [target]
where srcdir is
that is the source directory you have extracted from the tarball (file.tar.gz).
OK. Fixed the net connection and got a message that some files could not be verified, but let it carry on anyway. All fixed . Now I have GCC. It does not appear in my Gnome desktop but if I open a terminal and type gcc -v I get all the version stuff. For work purposes it is there. As always, my thanks.
Just because I am writing C doesn't mean I know anything so I am still a newbie! Now then, I have written a small ALSA app and tried to compile it. The main errors are;
missing stdio.h, stdlib.h, alsa/asoundlib.h
and indeed they are missing. Have I made a mess of the GCC install do you think, and, although I can find lots of ALSA files, not the lib file above that is most important.
I continue to search...it was so easy with the BBC B.
Just because I am writing C doesn't mean I know anything so I am still a newbie! Now then, I have written a small ALSA app and tried to compile it. The main errors are missing stdio.h, stdlib.h, alsa/asoundlib.h and indeed they are missing.
Yes, sorry. I forgot to mention that you will need to install the C headers files separately. To find which package contains the headers you can issue the command
dpkg -S stdio.h
The result will be something like libc6-dev. After determining the name of the package containing the header, you can simply do
So as I read it ( and thaks for SO much help), I have to find a C lib to install - yep that should not difficult, AND and ALSA package too, despite the fact that I seem to have a lot os 'ALSA' stuff already ? This Linux is well weird, but I am hooked. Its that Penguin, its so cute.
You may have the ALSA library installed, which will be used by whatever programs use it. The header files are used for developing programs (they contain function prototypes, amongst other things) and aren't needed when actually using programs.