Hi,
I am trying to install a rpm package which is built on Ubuntu 22.04 on openSUSE. But I always see an error “libcurl.so.4(CURL_OPENSSL_4)(64bit) is needed” when I use “rpm -i” to install the package. The problem is I could see libcurl.so.4 has been installed under /usr/lib64. I do not know why I still see this error message. Anyone has any idea about what is wrong? Thanks in advance!
Here is my system info. I installed openSUSE on Oracle Virtualbox on my Windows.
I am trying to install a rpm package which is built on Ubuntu 22.04 on openSUSE
Why not telling us the name of the packages, is it build with alien??
That is very unlikely to work (for any combination of any two distributions).
It does not require libcurl.so.4
. It requires exactly the string libcurl.so.4(CURL_OPENSSL_4)(64bit)
and libcurl in openSUSE does not provide it. You may try to install ignoring dependencies and hope that openSUSE libcurl is compatible enough to still work.
@roy2023:
I see that, it’s your first post on these Forums –
- Welcome to the openSUSE Forums!
Back to your issue:
The 4th instantiation of the cURL shared library is available from the openSUSE repositories:
For the case of Tumbleweed, my suggestion is that, you use the “ security:tls” repository:
On Leap 15.4, I don’t have to do anything special regarding the 4th instantiation of the cURL shared library:
> LANG=C zypper info libcurl4
Loading repository data...
Reading installed packages...
Information for package libcurl4:
---------------------------------
Repository : Update repository with updates from SUSE Linux Enterprise 15
Name : libcurl4
Version : 7.79.1-150400.5.15.1
Arch : x86_64
Vendor : SUSE LLC <https://www.suse.com/>
Installed Size : 630,7 KiB
Installed : Yes
Status : up-to-date
Source package : curl-7.79.1-150400.5.15.1.src
Upstream URL : https://curl.se
Summary : Library for transferring data from URLs
Description :
The cURL shared library for accessing data using different
network protocols.
>
> rpm -ql libcurl4
/usr/lib64/libcurl.so.4
/usr/lib64/libcurl.so.4.7.0
/usr/share/licenses/libcurl4
/usr/share/licenses/libcurl4/COPYING
>
Thanks all for your reply! The problem should be libcurl4 is built differently on Ubuntu and openSUSE. So the rpm which is built on Ubuntu and needs the libcurl4 could not be used on openSUSE. To install on openSUSE we have to build from source. Sorry the rpm package is a private one and contains bussiness info and its name could not be shown to public.
What makes you think so? Did you try whether it works?
And, therefore, you should be using the Open Build Service (OBS) to build the private packaging you need.
Or, the not so easy way, you’ll have to use the “rpm-build” package available from the openSUSE repositories and, set it up to build for the openSUSE environment – AFAICS, there isn’t a libcurl source package easily available – you’ll have to inspect other source packages to work out how to setup RPM Build for the openSUSE environment.