Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Hi friends . I'm new to linux. When i try to install rpm package for apache2 the command line gives error: Failed dependencies: apache2-MPM is needed by apache2-2.2.3-16.18.x86-64 libapr1 >= ...
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    15

    [SOLVED] rpm installing problem

    Hi friends . I'm new to linux. When i try to install rpm package for apache2 the command line gives
    error: Failed dependencies:
    apache2-MPM is needed by apache2-2.2.3-16.18.x86-64
    libapr1 >= 1.0 is needed by apache2-2.2.3-16.18.x86-64
    libapr1< 2.0 is needed by apache2-2.2.3-16.18.x86-64
    libapr-1.so.0()(64bit) is needed by apache2-2.2.3-16.18.x86-64
    libaprutil-1.so.0()(64bit) is needed by apache2-2.2.3-16.18.x86-64

    I was trying to install from the suse disc . I thought that rpm would automatically solve problems with dependencies as these dependent packages must be present on disc too.

    friends , help me to solve this problem , please.
    Thanks in advance

  2. #2
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Try using yast, I believe Suse uses yast, and you must be connected to the Internets for this to work.
    Cool Solutions: Installing Apache, PHP, and MySQL on SUSE Linux Professional
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  3. #3
    Just Joined!
    Join Date
    Jul 2010
    Posts
    15
    When i use yast it's all ok . But I want to do all my linux work by command line . I find apache2 packages in suse disc by this command
    find . | grep apache2
    after that I choose apache2-2.2.3-16.18.x86-64_rpm package from the find result list and write
    rpm -ivh apache2-2.2.3-16.18.x86-64_rpm
    and such an error appears

  4. #4
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Quote Originally Posted by mylogin99 View Post
    When i use yast it's all ok . But I want to do all my linux work by command line . I find apache2 packages in suse disc by this command
    find . | grep apache2
    after that I choose apache2-2.2.3-16.18.x86-64_rpm package from the find result list and write
    rpm -ivh apache2-2.2.3-16.18.x86-64_rpm
    and such an error appears
    Okay then.
    Code:
    error: Failed dependencies:
      apache2-MPM is needed by apache2-2.2.3-16.18.x86-64
      libapr1 >= 1.0 is needed by apache2-2.2.3-16.18.x86-64
      libapr1< 2.0 is needed by apache2-2.2.3-16.18.x86-64
      libapr-1.so.0()(64bit) is needed by apache2-2.2.3-16.18.x86-64
      libaprutil-1.so.0()(64bit) is needed by apache2-2.2.3-16.18.x86-64
    The above error means that apache relies on some file to be installed before you can install apache, they are called dependencies. I've bolded the depends that you need to install in order the get Apache install.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  5. #5
    Just Joined!
    Join Date
    Jul 2010
    Posts
    15
    You mean that i must install the apache2 dependencies first and then apache2 itself. But what if each of this apache dependencies have its own dependencies ?

  6. #6
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    But what if each of this apache dependencies have its own dependencies ?
    That's the beauty of installing from source and RPMS....welcome to dependency hell. Before package managers came along, this was the only way to install software in Linux. Dependency hell - Wikipedia, the free encyclopedia
    Dependency hell is a colloquial term for the frustration of some software users who have installed software packages which have dependencies on specific versions of other software packages [1]. This was mainly attributable to old Linux package managers. Current package managers have largely solved this problem by automatically resolving and downloading dependencies.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  7. #7
    Just Joined!
    Join Date
    Jul 2010
    Posts
    15
    but i have read that one of the main benefits of rpm packages is that they are automatically solve problems with dependencies . Maybe they are not solve these dependencies when i try to install them from command line ?
    Then when they solve this problem automatically ?

  8. #8
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Quote Originally Posted by mylogin99 View Post
    but i have read that one of the main benefits of rpm packages is that they are automatically solve problems with dependencies . Maybe they are not solve these dependencies when i try to install them from command line ?
    Then when they solve this problem automatically ?
    You are correct, RPM will solve the depends (that is the output you pasted in post #1) but it will not download, nor install them for you, that would be your job. I have been using Linux long enough that I have had to deal with this mess...it's not funny at all.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  9. #9
    Just Joined!
    Join Date
    Jul 2010
    Posts
    15
    turns out that if I install rpm with Yast , yast automatically installs that rpm's dependencies , but when i use " rpm -ivh <packagename> " with command line , I should install dependencies manually , is it true ?

  10. #10
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    turns out that if I install rpm with Yast , yast automatically installs that rpm's dependencies
    I don't use yast, but if it works, then it must be true.
    when i use " rpm -ivh <packagename> " with command line , I should install dependencies manually , is it true ?
    Yes, this is true.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...