Centos7 rpm problem

Tim Mooney Tim.Mooney at ndsu.edu
Fri Jan 5 19:14:44 UTC 2018


In regard to: Centos7 rpm problem, 张志明 said (at 10:18am on Jan 5, 2018):

> centos6, I have a project which include an .so library, the library is
> compiled by myself. Compile the project and make a rpm file,
> successfully. Install it successfully.  But when I do this in centos7,
> compile successfully, but when I install the rpm file,
> error: Failed dependencies:
> mylib.so.2()(64bit) is needed by myproject

After you've generated the RPM package on both CentOS 6 and CentOS 7,
do this:

# on the centos 6 system:

 	rpm -q --provides -p /path/to/your/centos6/rpm
 	rpm -q --requires -p /path/to/your/centos6/rpm

# on the centos 7 system:

 	rpm -q --provides -p /path/to/your/centos7/rpm
 	rpm -q --requires -p /path/to/your/centos7/rpm

Reply to this mailing list with the output from those commands, so we can
see what your two different packages require and provide.

Tim
-- 
Tim Mooney                                             Tim.Mooney at ndsu.edu
Enterprise Computing & Infrastructure                  701-231-1076 (Voice)
Room 242-J6, Quentin Burdick Building                  701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164


More information about the Rpm-list mailing list