LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 10: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, 11:07 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
What distro and version are you using?
 
Old 03-19-2009, 11: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, 11:16 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

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, 11: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, 11:26 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

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, 11: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, 11: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-20-2009, 12:09 AM   #9
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

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

If one did not need c++ why install it?
 
Old 03-20-2009, 12:21 AM   #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, 01:43 AM   #11
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

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, 10: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, 02:08 PM   #13
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

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


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


All times are GMT -5. The time now is 06:19 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration