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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
03-12-2006, 08:32 AM
|
#1
|
Member
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48
Rep:
|
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
|
|
|
03-12-2006, 08:38 AM
|
#2
|
Member
Registered: Mar 2006
Location: Dhaka,Bangladesh
Distribution: Ubuntu 12.10
Posts: 51
Rep:
|
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.
|
|
|
03-12-2006, 09:52 AM
|
#3
|
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 current
Posts: 1,649
Rep: 
|
|
|
|
03-12-2006, 04:00 PM
|
#4
|
Member
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48
Original Poster
Rep:
|
thanks that tut helped
|
|
|
03-18-2006, 02:04 AM
|
#5
|
Member
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48
Original Poster
Rep:
|
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
|
|
|
03-18-2006, 02:14 AM
|
#6
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
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
|
|
|
03-18-2006, 02:56 AM
|
#7
|
Member
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48
Original Poster
Rep:
|
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
|
|
|
03-18-2006, 08:54 PM
|
#8
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
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
|
|
|
03-18-2006, 11:35 PM
|
#9
|
Member
Registered: Mar 2006
Location: Dhaka,Bangladesh
Distribution: Ubuntu 12.10
Posts: 51
Rep:
|
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.
|
|
|
03-19-2006, 06:13 AM
|
#10
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
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
|
|
|
03-19-2006, 11:13 AM
|
#11
|
Member
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48
Original Poster
Rep:
|
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.
|
|
|
03-20-2006, 09:57 AM
|
#12
|
Member
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48
Original Poster
Rep:
|
dose anyone know that that means?
|
|
|
03-20-2006, 11:56 PM
|
#13
|
Member
Registered: Mar 2006
Location: Dhaka,Bangladesh
Distribution: Ubuntu 12.10
Posts: 51
Rep:
|
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
|
|
|
03-22-2006, 01:45 AM
|
#14
|
Member
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48
Original Poster
Rep:
|
well when i try to complile anything it wont work, it keeps telling me to look at the config file
|
|
|
03-22-2006, 02:08 AM
|
#15
|
Member
Registered: Mar 2006
Location: Dhaka,Bangladesh
Distribution: Ubuntu 12.10
Posts: 51
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|