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'm sure these have been asked before but im trying to get on with some work and a few searches havent given anything...
1) I need a fortran compiler in suse 9.1 personal. I have been lead to believe gcc is the way to go and have downloaded the core and fortran (g77) components(.tar.bz2), how do I install from here? Also, how do you install anything? This is one area that windows seems to have an advantage in simplicity, unless its just me being thick (probably)!
I notice suse has an info file for fort77 but entering the command I get 'command not found'!
2) I see that virtually everything relies on a command. Do you guys just remember all the commands through use or is there an easy way to look them all up when needed?
Thanks in advance!
Last edited by matrulesok; 01-31-2005 at 02:12 PM.
$ tar jxvf gcc_core.tar.bz2
$ tar jxvf fortran_stuff.tar.bz2
$ make install
chances are that you'll need a C compiler to compile the GNU C compiler. In other words, you should probably install a binary image of the compiler (first, if you insist on compiling yourself). I'm quite convinced that SUSE has an excellent packaging system (or at least a packaging system), but I don't have any experince with it. Asking in the SUSE forum should give you an answer straight away.
Regarding the simplicity of installing on gnu/linux vs. windows: au contraire -- Linux is far simpler, at least according to my experience (which is mainly with synaptic, the GUI frontend to the debian package management system). YMMV.
2. Speaking for myself: learning which commands to use (and their names) is just by using them. Learning how to use them is through --help, man/info and google. One trick is to type tab twice at a bash prompt. It should reply something like 'show all 1983 possibilities (y/n)?', and (assuming you press y) give you a list of all commands you can run. Alternatively, you can type a single letter (or more), then tab twice. (try 'xa[tab][tab]', should give you a list of 'xargs', 'xauth' and (maybe) 'xasteroids').
First you need to unpack the archives you downloaded (*.tar.bz2). The simplest way to do that is to use mc (Midnight Commander), if that's installed, as it can access the file as if it were a subdirectory; you can simply copy the content to another location. If mc is not installed, the command to unpack such an archive is bunzip2. Which brings us to your next question prematurely: I for one don't know all the commands by heart, only the few I need often. But you can always look up a command using 'man commandname', so in the above example you can practice by using 'man bunzip2' to find out which parameters you might want to use. And the aforementioned mc might help you to get things done when it comes to file management without you actually knowing the commands involved.
One of the differences between Windows and Linux is that a programmer can never be completely sure which libraries or other necessary software you've got on your system in which version and where they are located. Linux isn't one homogenous whole published by a single company. In many cases there exist a number of different solutions for the same thing - different X-servers, different libraries to give you elements for a graphical display, etc. You get to choose which tools you want to use, but on the downside that makes your system pretty individual. So in order to be able to use programs which haven't been specifically compiled for your distribution, you'll have to compile them yourself.
In order to do that, once you have unpacked the archive, find files such as INSTALL or README which came with the archive and read them. Usually you'll find instructions on how to install the software, and frequently you'll find that you've got to install this and that first. As I said, some tools you might already have, others you won't (especially when you're using the Personal edition of SuSE 9.1 which isn't actually geared towards compiling anything yourself, AFAIK), and I have frequently had to install, say, half a dozen other things first before I got the intended program to compile. You should, at least for now, use Yast to find out whether you have precompiled packages for the things you need to install on your CD/DVD. They usually install everything they need to run, too. Only in case you cannot find anything on the CD / DVD you'll have to compile from sources.
ok - have extracted and the read install notes. but i have to configure and in doing this i get errors about cc and a working compiler. I understand that its harder to setup files for many different versions of linux but this is ridiculous, I dont have nearly enough knowledge to be able to sort through this, all i want is a program! There has to be an easier way to install programs withput reading pages of setup files! If linux is going to challenge windows this would be a serious area for improvement.
In the meantime, this is what i get, any help from here would be appericiated!
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
/home/mat/gcc-3.4.3/configure: line 2332: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
$ export CC=gcc
--- or ---
cd into the directory where you have your C compiler ('which gcc' should give you a pointer), and make a symlink to gcc named cc
$ ln -s gcc cc
see also ln --help and man ln
both assume that you already have a C compiler installed. If you don't, the output of 'which gcc' should be empty, and you'll have to get one.
Just FYI, there are several install tools eg Yast, apt-get, yum which will do all the work for you, including resolving dependencies automatically.
I'm sure at least one of them comes with Suse.
They usually have both GUI front-ends and cmd line ways to be used.
Unless/until you are familiar with Linux, I'd recommend using one of these, rather than doing it manually.
The problem is that we're talking about a Personal Edition of SuSE 9.1 which to my knowledge doesn't come with compilers. That's the reason why configure can't find a compiler, there isn't any installed compiler and there's probably none on the CD/ DVD either. The best solution would be to search one on SuSE's FTP site. The RPM packages to be found there will be the best solution for this problem. There might even be an RPM for the programs you wanted to install originally.
ok - thanks for the help. I decided best way to go was download 9.2 eval version (which i believe has gcc) and update. I tried yast but i couldnt see how to find packages, nevermind, hopefully next time i need to install i'll be a bit more competent!