歡迎您光臨本站 註冊首頁

請教一個問題:我已經安裝了apache,但是提示我沒裝

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

請教一個問題:我已經安裝了apache,但是提示我沒裝

我現在要rpm安裝一個軟體,但這個提示依賴的httpd沒有安裝。 可是我已經裝過apache了(不是rpm裝的),請教大家如何解決這個問題,謝謝!

我是新手,剛註冊的號,沒有分,請諒解!
《解決方案》

沒明白你是要編譯裝!還是rpm裝!
《解決方案》

回復 #2 mitmax 的帖子

我現在裝的這個軟體是rpm安裝的,裝的時候提示說apache沒安裝。 可是我已經裝過apache了。 這麼說可以么,可能說的太煩瑣了,謝謝!
《解決方案》

回復 #1 ccsslz 的帖子

不要這樣安裝軟體。  

要不就都用源碼,要不就都用rpm
《解決方案》

什麼軟體? 他用什麼辦法檢測到你沒裝apache?
找不到httpd的rpm包,還是找不到apache的某個庫文件,或者找不到apache的安裝路徑?
《解決方案》

回復 #5 Celinde 的帖子

是一個worldvista的rpm包,安裝的時候,提示
error: Failed dependencies:
        httpd is needed by wv-server-beta-0.6-3.i386

請教大家了,剛才強制安裝,rpm -ivh --force --nodeps 裝到一半停了。
《解決方案》

把httpd相關的包都裝上
《解決方案》

最好是用apt-get或yum安裝
如果你確認已經安裝相關依賴包可以在編譯的時候加上
--with-***=/usr/local/***/
《解決方案》

B. Installation and Configuration
B1. How to use this repository ?
Most people use this RPM repository together with a tool that allows to automatically download an install RPM packages and resolve dependencies. You have the choice of different tools, like Apt, Smart, Yum, up2date or Red Carpet.

However if you occassionally want to download something, we've made sure the packages are tagged with a proper distribution-tag so you can easily pick the right package for your distribution from the packages directory. The directory listing will also indicate the distribution.

The packages are all signed with this GPG key.

B2. How to configure to use RPMforge ?
It's very easy. Just install the latest rpmforge-release package for your distribution and architecture.

This will automatically install the configuration and GPG keys that are for safely installing RPMforge packages.

Please select the correct command from the following list:

    * Supported Red Hat Enterprise Linux 5 / i386:

      rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
    * Red Hat Enterprise Linux 5 / x86_64:

      rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
    * Red Hat Enterprise Linux 4 / i386:

      rpm -Uhv http://apt.sw.be/redhat/el4/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
    * Red Hat Enterprise Linux 4 / x86_64:

      rpm -Uhv http://apt.sw.be/redhat/el4/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el4.rf.x86_64.rpm
    * Red Hat Enterprise Linux 3 / i386:

      rpm -Uhv http://apt.sw.be/redhat/el3/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el3.rf.i386.rpm
    * Red Hat Enterprise Linux 3 / x86_64:

      rpm -Uhv http://apt.sw.be/redhat/el3/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el3.rf.x86_64.rpm
    * Red Hat Enterprise Linux 2 / i386:

      rpm -Uhv http://apt.sw.be/redhat/el2.1/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el2.rf.i386.rpm
    * Red Hat Linux 9 / i386:

      rpm -Uhv http://apt.sw.be/redhat/9/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.rh9.rf.i386.rpm
    * Red Hat Linux 7.3 / i386:

      rpm -Uhv http://apt.sw.be/redhat/8.0/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.rh7.rf.i386.rpm

B3. How do I use Apt ?
Apt originally was developed by the Debian project to work together with DEB packages. Since there are not many functional differences between RPM and DEB packages, Conectiva ported Apt to use RPM.

To install Apt, download the latest package for your distribution from: http://dag.wieers.com/packages/apt/. The configuration of Apt is inside the rpmforge-release package.

If you've done that, the rest is simple. Update the local repository meta-data by doing:

apt-get update
You can upgrade your system with the latest packages with:

apt-get upgrade
And finally you can add new software by typing:

apt-get install <name of package>
Or search for software in the local repository meta-data:

apt-cache search <keyword> apt-cache show <name of package>
From time to time you may want to save some diskspace:

apt-get clean
Remember to update your local repository often before upgrading or installing software, so that you can enjoy the latest and greatest.

Some people rather use a graphical program to select and install packages. Apt has a nifty graphical front-end, called Synaptic. You can install it by doing:

apt-get install synaptic
Or download it from: http://dag.wieers.com/packages/synaptic/

B4. How do I use Yum ?
Yum is an update-tool written in python. The advantage of Yum is that it is written in Python. The disadvantage is that there are many versions of Yum, and only recent versions work with recent distributions. If you like to use a single tool across all distributions, it's better to use Apt.

Yum is usually already installed if you're running Fedora Core. In case you are using Red Hat Enterprise Linux or an older Red Hat Linux distribution. You can find Yum at: http://dag.wieers.com/packages/yum/

The configuration of Yum is inside the rpmforge-release package. You need to install it yourself.

If you've done that, the rest is simple. Upgrade your system by doing:

yum update
You can add new software by typing:

yum install <name of package>
Or update installed software:

yum update <name of package>
Or search for software in the local repository meta-data:

yum search <keyword>
Or simply list all available software:

yum list available
From time to time you may want to save some diskspace:

yum clean

B5. How do I use up2date ?
up2date is a tool written and shipped by Red Hat to update your system with the latest available updates. Starting with Red Hat Enterprise Linux 3 and Fedora Core 1 it can also be used with Apt and Yum repositories. Install up2date from your Red Hat installation and then add one of the following statements to /etc/sysconfig/rhn/sources:

### Dag RPM Repository for Fedora Core yum dag http://apt.sw.be/fedora/3/en/$ARCH/dag yum dag http://apt.sw.be/fedora/2/en/$ARCH/dag yum dag http://apt.sw.be/fedora/1/en/$ARCH/dag ### Dag RPM Repository for Red Hat Enterprise Linux yum dag http://apt.sw.be/redhat/el4/en/$ARCH/dag yum dag http://apt.sw.be/redhat/el3/en/$ARCH/dag
Now start up2date to update your system, by doing:

up2date -u
《解決方案》

回復 #9 unixlinuxsys 的帖子

請問,你的回復的英文意思是如果選擇用rpm安裝,解決依賴可以用apt,yum等,是嗎?

[火星人 ] 請教一個問題:我已經安裝了apache,但是提示我沒裝已經有709次圍觀

http://coctec.com/docs/service/show-post-22283.html