Is your dependency on software packages in Linux annoying?

Source: Internet
Author: User
Article Title: Is the dependency of software packages in Linux annoying to you. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

In Linux, the dependency between software packages is a headache. For example, you do not select to install all software packages when installing Linux. After installing the Linux system, if you install the software again, you may encounter some dependency problems. For example, when installing the PHP software package, the system may prompt some errors. We need the support of some other software packages. In fact, similar situations are also encountered in Windows. For example, sometimes installing some application software may have requirements on the browser version or require the OS patch to be later than SP2. However, in Microsoft operating systems, such software dependencies are much less common than in Linux systems, and they are easier to handle.

In Linux, if such software package dependencies are encountered, what should we do? Before talking about the specific solution, let me talk about the dependencies of software packages in which situations.

First, you did not select all software packages when installing the operating system. Most of the time, for security or other reasons, the Linux System Administrator usually does not choose to install all the software packages. Instead, install necessary software packages to run related services. However, sometimes the system administrator may not know which software packages must be installed. Otherwise, some subsequent services will not be started, and those software packages are optional. Since it is difficult to find out the content during system installation, this problem may occur when other software packages are deployed after the Linux system is installed.

Second, similar problems may occur when you append some other application services to a Linux server. If an enterprise needs to use an Oracle database, I will install the Oracle database on the original file server. However, installing the Oracle server on Linux is a headache and many software packages need to be installed. I did not know how to install the Oracle database when I first deployed the Linux file server, so many software packages were not installed. And later I found that many software packages are not in the Linux installation disk, so I need to go online. Therefore, if you want to append some application services to a previously deployed Linux server, the dependency of this software package may easily occur.

In fact, solving the dependency problem of this software package is neither simple nor complex. I have summarized several methods below. You can learn from them if necessary.

  1. Find the installation disc based on the error message.

When installing a software package, if you encounter software dependency problems, the system usually prompts related information. Such as the prompt "libgd. so.1.8 is needey by php-4.2.2-17" and so on. This indicates that the libgd. so software package must be installed before the PHP program is installed. When this problem occurs, we recommend that the system administrator check whether the software package exists from the installation disk of the Linux System Based on the prompt.

As shown in, a large number of software packages are stored in the RPMS directory of the Linux installation disk. Generally, common software packages such as libgd. so can be found in this CD. Therefore, the system administrator can learn the software package to be installed before installing the software based on the system error message. Find the software package from the system disk and install it. In addition, it should be noted that, for the RedHat operating system, if you use a CD to install the disk, it can have many CDs. These packages are often not stored on a CD. However, it is certain that the RPMS directory is available under each CD. If the system administrator does not know the disk in which a software package is stored, he or she can find it one by one. Although it is a little more troublesome, but in most cases there will be gains.

However, this method has a limit. Large applications such as Oracle installation are not very suitable. Because it takes time to install such a large software. If you wait until the installation fails and follow the prompts to install the software package, repeat the installation will waste a lot of time and cause the system to generate a lot of junk files. For this reason, unless it is a small software package, it is best to follow the method I will introduce below to save the software installation time.

[1] [2] [3] Next page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.