LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-18-2004, 12:51 PM   #1
BizHat.com
Member
 
Registered: Jul 2004
Location: India
Distribution: RH, RHEL, CentOS
Posts: 46

Rep: Reputation: 15
Install GCC


Hi,

I want to install GCC on my RH 9 non-gui installation.

When i try

rpm -ivh gcc-3.2.2-5.i386.rpm

It says, some glibc-devel missing.

When i try to install glibc-devel, it says



Quote:

[root@localhost RPMS]# rpm -ivh glibc-devel-2.3.2-11.9.i386.rpm
warning: glibc-devel-2.3.2-11.9.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
kernel-headers is needed by glibc-devel-2.3.2-11.9
kernel-headers >= 2.2.1 is needed by glibc-devel-2.3.2-11.9
I can't find kernel-headers in the RH 9 install CDs.

How do i install GCC, i need it to compile PureFTPd. Now it says it can't find compiler in the system.

Is there any one command installation or i have to try installing on, then it says some thing missing, then i go and find that, it says some tghing else missing.... i found it difficult...its usuall with linux or happen because i am new to linux ?

Regards,

Yujin
 
Old 07-18-2004, 01:11 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
redhat has a different rpm that satisfys the kernel headers dependency. cant rmemeber what its called.

seems you are trying to install a gcc rpm that was not intended for redhat 9 ?
install why whole thing from the rpms on your redhat 9 cd's
 
Old 07-18-2004, 01:42 PM   #3
BizHat.com
Member
 
Registered: Jul 2004
Location: India
Distribution: RH, RHEL, CentOS
Posts: 46

Original Poster
Rep: Reputation: 15
When i try to install PureFTPd i get following error

Quote:

[root@localhost pure-ftpd-1.0.18]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
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.
[root@localhost pure-ftpd-1.0.18]#
What i should do next ?

Regards,

Yujin
 
Old 07-18-2004, 02:40 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
the error message says you dont have a compiler installed.

didnt you say you are using Redhat 9 ?

whats wrong with the 'vsftpd' ftp server ?
why dont you use that ? it comes with redhat 9.

Last edited by qwijibow; 07-18-2004 at 02:43 PM.
 
Old 07-18-2004, 03:50 PM   #5
BizHat.com
Member
 
Registered: Jul 2004
Location: India
Distribution: RH, RHEL, CentOS
Posts: 46

Original Poster
Rep: Reputation: 15
OS is RedHat.

Login says


Red Hat Linux release 9 (Shrike)
kernel 2.4.20-8 on an i686


I want to try PureFTPd on my local machine as it's used on the server. I could get it running on GUI installation of RH9 from same CD. But not on non-gui installation if RH9.
 
Old 07-18-2004, 07:23 PM   #6
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
vsftpd and pureftpd are very very similar. is it realy worth the effort?

anyways. okay.. if you want to use a different ftp server, install it and see what you think.
 
Old 07-18-2004, 07:39 PM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,289

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You should try using something like apt4rpm or Yum, as they do automatic dependency resolving. I personally like apt4rpm -- you can find more information about it at http://apt4rpm.sourceforge.net .
 
Old 07-19-2004, 01:42 AM   #8
BizHat.com
Member
 
Registered: Jul 2004
Location: India
Distribution: RH, RHEL, CentOS
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks for the help.

I will try apt4rpm. I need pureftpd as i am using it on server (cpanel box), i want it on local box to try some configuration changes.
 
Old 07-19-2004, 02:07 PM   #9
BizHat.com
Member
 
Registered: Jul 2004
Location: India
Distribution: RH, RHEL, CentOS
Posts: 46

Original Poster
Rep: Reputation: 15
Hi,

I downloaded apt4rpm.

apt4rpm-0.68.2-2.noarch.rpm

When installing it says, it need LibXML. So i downloaded

XML-LibXML-1.53.tar.gz

When installing XML-LibXML-1.53.tar.gz it said, it require libxml2 from xmlsoft.org i downloaded and it need zlib-1.2.1.1-3.i686.rpm, i installed that.

Now when i try

--------------------
[root@localhost XML-LibXML-1.53]# perl Makefile.PL
enable native perl UTF8
running xml2-config... ok
running gdome-config...failed
GDOME support is optional and is not required for running
this package
looking for -lxml2... no
looking for -llibxml2... no
libxml2 not found
Try setting LIBS and INC values on the command line
Or get libxml2 from
http://xmlsoft.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.
--------------------

But libxml2 is already installed.


--------------------
[root@localhost XML-LibXML-1.53]# rpm -qa|grep libxml2
libxml2-2.6.11-1
libxml2-devel-2.6.11-1
--------------------

Can any one tell what to do next ?

Regards,

Yujin
 
Old 07-19-2004, 03:23 PM   #10
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,289

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Sorry this has been such a headache -- welcome to the wonderful world of RPMs :-( . When you downloaded LibXML, did you also get the development packages. Perl probably needs those to get XML support. You might try LibXML2-devel or something similar. There may also be a Perl-LibXML RPM you might install to give Perl the needed XML libraries. The good news is, once you get this sorted and have apt4rpm installed, things should get much easier. If you already have yum on your system, you may want to go with that, but I'm not very familiar with it. Good luck!
 
Old 07-19-2004, 04:26 PM   #11
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
the problem here is you mix of RPM and source code !

IF you use rpm's try to use ONLY rpm's

an RPM does not install everything that is installed when you install by source.
rpm's assume you are going to install everything else by rpm, and so dount include source code (which is vital for compiling other things on-top of it)

thats why source code install sometimes says that somthing is not installed, when rpm says it is. the source code is looking for source code.

you can kind of hack this, by installing a devel rpm package.

to install packwage XYZ by source, just install it..

to install it via rpm (if you intend to compile somthing which lists it as a dependency.. then insrall XYZ and ZYX-devel

choose the install method you prefere.. and stick with it. you are making a mess :P
 
  


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
cant install gcc nikoz Linux - Software 4 12-02-2004 01:23 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
how to install gcc big_bailey Linux - Software 3 07-23-2004 12:47 AM
Must have gcc to install gcc? thafusion Linux - Software 4 05-28-2004 10:20 PM
how to install gcc,cc? eye Linux - Software 1 05-30-2003 06:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration