libcfitsio.so.7 is needed by CCfits

libcfitsio.so.7 is needed by CCfits

 

I got the below error while trying to install CCfits package on my CentOS 8 server. Error shows CCfits package require a dependency and it is not installed on your server.
 

error: Failed dependencies:
libcfitsio.so.7()(64bit) is needed by CCfits-2.5-14.el8.x86_64

 
libcfitsio.so.7 package is provided by cfitsio package. Follow the below steps to fix the error by installing cfitsio dependency.
 

Step 1 : You must log into CentOS 8 server as ‘root’ user

Step 2 : Run the command ‘rpm -qa | grep -i cfitsio’ to check whether cfitsio is already installed or not

 

[root@server /]# rpm -qa | grep -i cfitsio
[root@server /]#

 

Steps 3 : Run the command ‘yum install epel-release -y’ to install EPEL repository

 

[root@server /]# yum install epel-release -y

===================================================================================================
Package Architecture Version Repository Size
===================================================================================================
Installing:
epel-release noarch 8-8.el8 extras 23 k

Transaction Summary
===================================================================================================
Install 1 Package

Total download size: 23 k
Installed size: 32 k
Is this ok [y/N]:y

 

Steps 4 : Run ‘yum install cfitsio’ to install cfitsio package

 

# yum install cfitsio

Dependencies resolved.
===================================================================================================
Package Architecture Version Repository Size
===================================================================================================
Installing:
cfitsio x86_64 3.47-1.el8 epel 577 k

Transaction Summary
===================================================================================================
Install 1 Package

Total download size: 577 k
Installed size: 1.7 M
Is this ok [y/N]: y

 

Steps 5 : Try installing CCfits after installing cfitsio package

 

# rpm -Uvh CCfits-2.5-14.el8.x86_64.rpm
Verifying… ################################# [100%]
Preparing… ################################# [100%]
Updating / installing…
1:CCfits-2.5-14.el8 ################################# [100%]