LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-12-2006, 08:32 AM   #1
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Rep: Reputation: 15
Compiling and installing gz files


How do i install gz file types?
that furthest ive gotten is unpackageing it, then when i open the shell and type in the file location it dosent do anything
 
Old 03-12-2006, 08:38 AM   #2
fakhrul
Member
 
Registered: Mar 2006
Location: Dhaka,Bangladesh
Distribution: Ubuntu 12.10
Posts: 51

Rep: Reputation: 15
gz is the gnu version of zip. you need to uncompress the .gz files. to uncompress issue the command

gunzip [filename]

for more info type: man gzip or man gunzip

a folder will be created of same name without having .gz

Last edited by fakhrul; 03-12-2006 at 08:41 AM.
 
Old 03-12-2006, 09:52 AM   #3
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 current
Posts: 1,649

Rep: Reputation: 148Reputation: 148
A nice tutorial by Jeremy:

http://www.linuxquestions.org/linux/...ms_from_Source
 
Old 03-12-2006, 04:00 PM   #4
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Original Poster
Rep: Reputation: 15
thanks that tut helped
 
Old 03-18-2006, 02:04 AM   #5
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Original Poster
Rep: Reputation: 15
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
 
Old 03-18-2006, 02:14 AM   #6
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Quote:
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.

I hope this helps
--Ian
 
Old 03-18-2006, 02:56 AM   #7
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Original Poster
Rep: Reputation: 15
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
 
Old 03-18-2006, 08:54 PM   #8
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
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.

I hope this helps
--Ian
 
Old 03-18-2006, 11:35 PM   #9
fakhrul
Member
 
Registered: Mar 2006
Location: Dhaka,Bangladesh
Distribution: Ubuntu 12.10
Posts: 51

Rep: Reputation: 15
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
rpm -qa
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.
 
Old 03-19-2006, 06:13 AM   #10
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
No, yum is used on Fedora. Debian and Ubuntu uses apt-get. Yum is a very similar program to apt-get, and has the same function - download and install the requested program and all it's dependencies.

--Ian
 
Old 03-19-2006, 11:13 AM   #11
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Original Poster
Rep: Reputation: 15
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

Code:
configure:2410: $? = 0
configure:2412: gcc -v </dev/null >&5
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=i386-redhat-linux
Thread model: posix
gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)
configure:2415: $? = 0
configure:2417: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2420: $? = 1
configure:2444: checking for C compiler default output
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 PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "xmms"
| #define VERSION "1.2.10"
| #define DEV_DSP "/dev/dsp"
| #define DEV_MIXER "/dev/mixer"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2489: error: C compiler cannot create executables
See `config.log' for more details.
 
Old 03-20-2006, 09:57 AM   #12
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Original Poster
Rep: Reputation: 15
dose anyone know that that means?
 
Old 03-20-2006, 11:56 PM   #13
fakhrul
Member
 
Registered: Mar 2006
Location: Dhaka,Bangladesh
Distribution: Ubuntu 12.10
Posts: 51

Rep: Reputation: 15
Look carefully at these error msgs:
Quote:
Originally Posted by xennetwork
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

Code:
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
 
Old 03-22-2006, 01:45 AM   #14
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Original Poster
Rep: Reputation: 15
well when i try to complile anything it wont work, it keeps telling me to look at the config file
 
Old 03-22-2006, 02:08 AM   #15
fakhrul
Member
 
Registered: Mar 2006
Location: Dhaka,Bangladesh
Distribution: Ubuntu 12.10
Posts: 51

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling c++ files :( gizmo_thunder Programming 6 10-23-2007 12:57 PM
Compiling driver files AngryDwarf Linux - Hardware 1 09-28-2005 07:05 AM
Compiling tar files xennetwork Linux - Newbie 2 01-26-2005 03:45 AM
compiling files from .tar.gz ungua Linux - Software 6 12-04-2004 01:34 PM
Compiling files bacloff Linux - Software 3 08-27-2003 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration