LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-31-2005, 11:58 PM   #1
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 249

Rep: Reputation: 36
Fedora Core 4 and, (apparently), HTTPD...


I decided to start from scratch with a minimal installation and build it up myself from there so I could get more experience. I'm unsure of what Red Hat installs whether you want it or not, but it looks like it's pretty bare bones. I have no X or any toys like that. I do have basic functionality and that robust ftp client.

So, I arbitrarily decided to begin with Apache. I'm using the rpm and it tells me it wants "libapr-0.so0" and "libaprutil-0.so0". I can only assume that I need to install and configure the Apache Portable Runtime, but I've not been able to find any detailed instructions on how to do this. I've got the rpm's, but I can't find anything that tells me what they're supposed to do and how I should use them.

Thanks in advance!
 
Old 11-01-2005, 01:10 AM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
You can either spend time in dependency Hell or you can use yum:

yum install httpd

Or I could introduce you to the Marquis de Sade.

In any case, Google is your friend.
 
Old 11-01-2005, 01:17 AM   #3
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 249

Original Poster
Rep: Reputation: 36
asdfasdf

Define Dependency Hell.

Do I really need YUM to keep track of what's going on, or is there some place that explains how it all works?

What do most people do?
 
Old 11-01-2005, 01:37 AM   #4
this213
Member
 
Registered: Dec 2001
Location: ./
Distribution: Fedora, CentOS, RHEL, Gentoo
Posts: 167

Rep: Reputation: 34
"Dependency Hell" is where you have to manually install 500 packages to satisfy 1 package's dependencies.

Do yourself a favor and as whatshisname said install yum. (heh, nice sn)

If you really don't care about using a package manager, you're looking for:
rpm -Uvh packagename.rpm
 
Old 11-01-2005, 01:41 AM   #5
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 249

Original Poster
Rep: Reputation: 36
asfasf

Well, -Uvh won't work because the rpm's not even installed yet.
 
Old 11-01-2005, 01:47 AM   #6
this213
Member
 
Registered: Dec 2001
Location: ./
Distribution: Fedora, CentOS, RHEL, Gentoo
Posts: 167

Rep: Reputation: 34
well, it works on *my* FC4 machines - but if it won't work for you for whatever reason, use -ivh


However, I'll again point out that your should be using yum
 
Old 11-01-2005, 01:52 AM   #7
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 249

Original Poster
Rep: Reputation: 36
asdfasf

Yeah, thanks for the info on YUM. It installed it in about 20 seconds.

APR is in tarball format. Just for my information - do you know how to install it properly?
 
Old 11-01-2005, 02:19 AM   #8
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 49
Re: asdfasf

Quote:
Originally posted by Galaxy_Stranger
APR is in tarball format. Just for my information - do you know how to install it properly?
APR is available as the "apr" package in Fedora Core. ("yum install apr" if it's not already installed).
 
Old 11-01-2005, 02:20 AM   #9
this213
Member
 
Registered: Dec 2001
Location: ./
Distribution: Fedora, CentOS, RHEL, Gentoo
Posts: 167

Rep: Reputation: 34
You should have an apr rpm on your FC4 disk. If you don't for whatever reason, you can:
yum install apr

The correct way to install a tarball on an RPM based system:

1. unpack the tarball, cd into the directory it creates and open the .spec file (if there is one - if there isn't you need to make one)

2. check your configure options and flags under the %build% section

3. if you made any changes to the tar file, back out of the directory and issue:
tar czvf packagename.tar.gz package_directory

4. Build the RPM:
rpmbuild -ta packagename.tar.gz

Your new RPM (unless you went through the wherewithall to create an rpm build root) will be located in: /usr/src/redhat/RPMS/{your_archiceture}

Install your new RPM as you would any other RPM.


Now, one could just as easily do
make
make install

but that doesn't register the package through the RPM database, which can (will) result in your trying to install RPM's later and them complaining that something doesn't exist even though it does.

http://www.rpm.org has exhaustive documentation on the use of rpbbuild and the creation of spec files, should you need them


HTH
 
Old 11-01-2005, 02:28 AM   #10
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 249

Original Poster
Rep: Reputation: 36
asdasdf

Thanks! Just the info I needed.

It's very hard to find info that encompasses "the big picture".
 
Old 11-01-2005, 09:07 AM   #11
christian.vrl
LQ Newbie
 
Registered: Nov 2003
Location: Fortaleza - CE - Brazil
Distribution: CentOS
Posts: 7

Rep: Reputation: 0
The problem here is "SELinux" . It doesnt allow you to install correctly any RPM - sometimes it will deny access to scripts from RPM or even don't allow a certain file/lib to be written to disk.

Solution :
1 - use the "setenforce" command to disable temporary SELinux

2 - edit "/etc/selinux/config" disable forever SELinux (don't forget to reboot)
 
Old 11-01-2005, 11:28 AM   #12
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 249

Original Poster
Rep: Reputation: 36
Well, during the installation I chose to disable SELinux. Does it sometimes ignore your choice?
 
Old 11-01-2005, 11:40 AM   #13
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Re: asdfasdf

Quote:
Originally posted by Galaxy_Stranger
...Do I really need YUM to keep track of what's going on, or is there some place that explains how it all works?...
If you just want to go through the steps of manually resolving dependencies using rpms, the easiest way to find all dependencies is to run “yum install packagename”, capture the package names that are to be installed, answer “n” to the install question and then manually install the listed packages, in some unknown order, which you will discover.

The unassisted way to do it is to attempt to install the rpm of interest and then find/install any dependencies that are listed. Usually, you either recognize the dependency packages or can guess the rpm names that will resolve the dependencies. If guessing fails, googling the dependence is usually helpful.

In your case, the guesses would be “apr...rpm”, “aprutil...rpm” and “libapr...rpm” . You would look through the FC4 updates, FC4 os and FC4 extras repositories for rpms that matched the dependency names. If the initial rpm came from a non-fedora repo (e.g., freshrpms, etc.), you would look in that repo for a match, too.

Typically, when you attempt to install the dependencies, they too will have dependencies that need to be resolved in the same manner. And this can seem to go on forever.

This was how things worked when I first installed RHL9 and it’s exactly why so many people selected “install everything” during the installation. If you didn’t get something you needed in the initial installation, it could be nearly impossible to install the package.

In addition to Google, yum and yumex are also your friends in fedora.
 
Old 11-01-2005, 11:51 AM   #14
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 249

Original Poster
Rep: Reputation: 36
yeah - that's the point i was at before you told me about YUM. YUM works very nicely. But would a system admin use it, (which I'm not)?
 
Old 11-01-2005, 12:37 PM   #15
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
You bet they do, unless they prefer apt.

I prefer apt, but you still need yum occasionally.
 
  


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
Apache httpd start failed on fedora core 1 k_1701 Linux - Software 10 05-05-2006 08:40 AM
PHP5 & HTTPD (apache) on Fedora Core 4 fatum112 Linux - Software 4 12-02-2005 06:44 PM
Fedora Core 4 goes offline, no httpd or sshd access FC3_User Linux - General 2 10-19-2005 06:53 PM
Fedora core 3 apparently not remounting root filesystem read-write during boot amundsen_eric Fedora 3 05-17-2005 06:46 AM
Severe problems with Fedora Core 1 and Fedora Core 2 installatiom TheOneKEA Fedora - Installation 2 07-14-2004 03:12 PM


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