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.
Distribution: Ubuntu, Debian, Various using VMWare
Originally Posted by xennetwork
ok well i think theres something wron with my compiler or somthing, every time i get to ./configure part it says a bunch of stuff, then at the end it says error
And what is the "bunch of stuff" that it says?
My first inclination is that you don't actually have a compiler (gcc) installed. Go to Add-Remove programs in one of the menus somewhere, and add the Development Tools (I think that is what the call it). Alternatively, run "yum install gcc" as root, and it should install gcc for you. Then try ./configure again.
ok i did that yum install thing...then i tryed installing this applet and this is what the console said
[root@localhost ~]# cd /root/Desktop/documents/cpuinfo
[root@localhost cpuinfo]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
so i looked at the config.log and it is a huge file so i didnt post it up
Distribution: Ubuntu, Debian, Various using VMWare
The config.log should have an error message towards the end that says what went wrong.
Did you install the Development Utils in the Add/Remove Programs, or did you install gcc using yum? It may be that you are missing a program that is required. Try installing the Development Utils in Add/Remove programs.
Run "yum list program" (I think) where program is whatever program you want to install. You may be able to install the program using yum. Alternatively, search the web for an RPM for whatever program it is. Installing using the package manager is easier than compiling from source when a package is available.
since you are using fedora i think you need to use rpm Redhat Package Manager. yum is probably solely for debian and its community product ubuntu.
using graphical package manager will be easier. if you want to do stuff in text mode then
to show list of all
if you want only related to gcc
rpm -qa|grep *gcc*
** after qa (" | ") is pipe, not english letter i, you will find it along with back slash '\'
to install an rpm
rpm -i [package name]
rpm is also a package that sould be installed first.
Regarding your problem you can do as Ian post. if all stuffs are installed, it may happen your assembler/linker is corrupted or any required library is not install. Try reinstalling compiler set after deleting previous. if yet not collect another FC4 cd set and install then try.
i already have the develpment tools, i just checked, and i tryed installing GCC with .rpm style and it still dont work'
heres some parse error or somthing, i found inthe config.log
configure:2447: gcc conftest.c >&5
/usr/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libc.so: file format not recognized; treating as linker script
/usr/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libc.so:5: parse error
collect2: ld returned 1 exit status
configure:2450: $? = 1
configure: failed program was:
| #line 2423 "configure"
| /* confdefs.h. */
| #define DEV_DSP "/dev/dsp"
| #define DEV_MIXER "/dev/mixer"
| /* end confdefs.h. */
First look at ld , gnu standard linker/loader that creates executables.
you see there is something wrong with libc.so You better can have a look if it is there. if it is there be sure its not corrupted.
Again look at confdefs.h there are two files mentioned as i quoted, /dev/dsp and /dev/mixer
go to /dev and check if dsp and mixer are there. If yet not please remove all compiler set and reinstall or you can give the link from where you have downloaded. i will chech it.
another thing is check the required library list for the software and check if all of the libraries are installed
anything means do you write a simple C program that will print anything like "Hello world" and it also do not work? if yes there is something wrong in compiler. Please try to another machine having gcc installed. you can give the link from where you have downloaded the code, i may try.