LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-19-2009, 09:58 PM   #1
joa_ds
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Rep: Reputation: 0
problems installing gcc


man im desperate. I need gcc for a certain application i want to use, so i thought, well no prob... Lets install it.

So i get this cute error while installing GCC


[root@athos gcc-4.3.3]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.


Yeah i got no C compiler, i am installing one, donkeys...



What to do?
 
Old 03-19-2009, 10:07 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
What distro and version are you using?
 
Old 03-19-2009, 10:09 PM   #3
joa_ds
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
i am using the newest version of gcc and CentOS 5.2
 
Old 03-19-2009, 10:16 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
I take it you already have one version of gcc installed and you are now trying to add a newer one?
 
Old 03-19-2009, 10:25 PM   #5
joa_ds
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
no, first installation...

which g++
/usr/bin/which: no g++ in ...
 
Old 03-19-2009, 10:26 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Ok, you cannot compile without having a compiler.

You can install gcc via yum.
Quote:
yum install gcc
as root
 
Old 03-19-2009, 10:32 PM   #7
joa_ds
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
well that was useful

i am used to *** around in command line with lamo programs noone uses i forgot about yum...
 
Old 03-19-2009, 10:50 PM   #8
joa_ds
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
ok, gcc is installed and up and running, but while installing my other prog, i get this error

Fri Mar 20 04:48:54 CET 2009 checking for prerequisite g++
Fri Mar 20 04:48:54 CET 2009 WARNING: prerequisite g++ not found


g++ is part of gcc? not?
 
Old 03-19-2009, 11:09 PM   #9
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
yum install gcc-c++

If one did not need c++ why install it?
 
Old 03-19-2009, 11:21 PM   #10
joa_ds
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
i am not an informatician, but having the responsability to install a server for a group kinda sux. They buy a server, put it there and let me do everything. I dunno how everything works, i am learning linux on the fly atm.

I am in USA atm on holiday and the software needs to be installed by monday 9am. So i am trying to install everything remote, no colleagues in the neighbourhood, this kinda sux. lucky you guys are there...


ok almost there.

now i get this error:

WARNING: prerequisite library zlib not found
WARNING: (Note that on platforms for which zlib is made available as
WARNING: separate run-time and development packages, this may be due
WARNING: to the development package not having been installed.
WARNING: Check that zlib.h can be found in the standard include paths.)
WARNING: prerequisite library bzlib not found
WARNING: (Note that on platforms for which bzlib is made available as
WARNING: separate run-time and development packages, this may be due
WARNING: to the development package not having been installed.
WARNING: Check that bzlib.h can be found in the standard include paths.)

but when i do yum install zlib:
Package zlib - 1.2.3-3.x86_64 is already installed.
Package zlib - 1.2.3-3.i386 is already installed.

yum install bzlib:
no package
 
Old 03-20-2009, 12:43 AM   #11
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Ok, with RH based systems when you compile (vs just run) you need the -devel version of the dependency. In this case zlib-devel.

Quote:
yum install zlib-devel
 
Old 03-20-2009, 09:49 AM   #12
joa_ds
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
all right, now i only need a bzlib package (probably also the devel version)

i googled around and found libbz2-dev or libbz2-devel, but that appears not to work with yum install...
 
Old 03-20-2009, 01:08 PM   #13
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Try bzip2-devel. Should be in the repo.
 
  


Reply



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
Problems installing GCC AcidSnake Linux - Software 14 09-07-2006 09:05 AM
problems on installing gcc cn_gelare Linux - Newbie 5 07-14-2006 02:50 PM
Problems with installing GCC TransAmJugo Linux - Software 2 08-04-2003 11:34 PM
Problems with installing GCC TransAmJugo Linux - General 1 07-31-2003 10:43 PM
Problems with installing GCC TransAmJugo Linux - Newbie 2 07-31-2003 02:37 PM

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

All times are GMT -5. The time now is 04:10 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