Linux software package troubleshooting

Source: Internet
Author: User
Article Title: Linux software package troubleshooting. 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.

   Rpm database corruption

Fault Cause:

Rpm database faults are rare. The cause of the failure is usually forced shutdown, deleting running files by mistake, and forcibly replacing some rpm package files.

Fault symptoms

When the rpm database is damaged and you use the rpm tool to query or install software, it will not work properly.

Simulate rpm data corruption failure and verify error information

As a software package management mechanism in Linux, RPM maintains an independent file database, which is used to store the installed rpm package information in the system,

When database files are corrupted, you cannot use the rpm command or yum command to query, install, upgrade, or delete rpm software packages.

Run the rpm -- rebuilddb command to recreate the database.

Clear corrupted rpm data files and recreate data information

   *. So class file missing

When the software package is installed by source code compilation, the executable files, function libraries, and configuration files of the program are usually installed in the corresponding location in the/usr/local/directory by default, in order to distinguish it from the related directories of system programs

* The. so file is a library file, just like the. dll file in Windows. The normal installation and running of a program requires the support of specific library files. Because the directory similar to/usr/local/mysql/lib is not included in the default library file path of the Linux system, if you need to use dynamic link files in these directories when installing other software packages, will not be found, and thus the missing *. so file error message

/Etc/ld. so. conf records the default search path of the Dynamic Link Library

Add the/usr/local/ld. so. conf // directory to the library file search path of the system.

# Vi/etc/ld. so. conf

#/Usr/local/mysql/lib/mysql

# Ldconfig

Related Article

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.