Installation error report
package antdb-4.0-1.el7.centos.x86_64 is already installed
Cause explanation: The RPM package is already installed on the server. Solution: Please install it as an upgrade or uninstall it first before installing it. Here are some RPM installation and uninstallation methods. Query the installed antdb RPM package.
[root@cos01 ~]# rpm -qa antdb
antdb-4.0-1.el7.centos.x86_64
Query RPM package details: installation time, installation path, etc..
[root@cos01 ~]# rpm -qi antdb-4.0-1.el7.centos.x86_64
Name : antdb
Version : 4.0
Release : 1.el7.centos
Architecture: x86_64
Install Date: Sat 18 Feb 2017 02:34:47 PM CST
Group : Applications/Internet
Size : 45039454
License : GPL
Signature : (none)
Source RPM : antdb-4.0-1.el7.centos.src.rpm
Build Date : Sat 18 Feb 2017 01:33:04 PM CST
Build Host : cos01
Relocations : /usr
URL : none
Summary : ADB
Description :
adb2.2 build at 20170217.
List what files RPM contains, detailed list information.
[root@cos01 ~]# rpm -ql antdb-4.0-1.el7.centos.x86_64
/opt/antdb
/opt/antdb/bin
/opt/antdb/lib
/opt/antdb/share
/opt/antdb/include
Which package a program is installed by or which package contains this program.
rpm -qf `which program name` #Returns the full name of the package
rpm -qif `which program name` #Returns information about the package
rpm -qlf `which program name` #Returns a list of files for the package
Installing RPM.
[root@cos01 ~]# rpm -ivh adb-4.0-1.el7.centos.x86_64
Installing RPM as an upgrade.
[root@cos01 ~]# rpm -Uvh adb-4.0-1.el7.centos.x86_64
Uninstall RPM.
[root@cos01 ~]# rpm -e antdb
error: library 'crypto' is required for OpenSSL
Cause explanation: When installing AntDB, some system dependency packages are required. If similar error occurs, it means that AntDB dependency package is not installed. Solution: Just install as root user as described above.
yum install openssl openssl-devel
The complete dependency package is as follows.
yum install perl-ExtUtils-Embed flex bison readline-devel zlib-devel openssl-devel pam-devel libxml2-devel libxslt-devel openldap-devel python-devel libssh2-devel
rpm: relocations must begin with a /
Cause explanation: When installing the program using the rpm package provided by antdb, if you do not specify the installation path, it will be installed in the /opt/app/adb (or /opt/app/antdb) directory by default. However, customers generally require installation to the specified directory, so you can use the relocate option provided by the rpm command to adjust the default installation path to the specified directory (take the /data/sy/adb40sy/adb specified directory as an example).
sudo rpm -ivh adb-4.0.9ff827a8-10.el7.centos.x86_64.rpm --relocate=/opt/app/adb=$ADB_HOME
There should be no spaces between relocate and the configuration that follows. If spaces are present, the error message shown in the title is thrown Solution. Do not add spaces between relocate and value.