skip to Main Content

I’m working with a SUSE SLE 12.4

> cat /etc/SuSE-release
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 4

I’m trying to install the library curl for R [3.6], but I get this error:

* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
** using staged installation
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
 * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
 * rpm: libcurl-devel (Fedora, CentOS, RHEL)
 * csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’

libcurl4 (version 7.60.0-2.11) is installed.
As suggested from the error message I tried to install the Linux Package libcurl-devel.
Unsurprisingly, since I’m dealing with a dev package, I get this message:

> sudo zypper install libcurl-devel
Loading repository data...
Reading installed packages...
'libcurl-devel' not found in package names. Trying capabilities.
No provider of 'libcurl-devel' found.
Resolving package dependencies...

Nothing to do.

I tried to find an online repo that could provide for that package. I found nothing.

Can anyone help me?
If you need more infos, I’ll be happy to provide them.

As requested, here you have more infos.

>  zypper se *curl*
Loading repository data...
Reading installed packages...

S | Name            | Summary                                | Type
--+-----------------+----------------------------------------+-----------
i | curl            | A Tool for Transferring Data from URLs | package
  | curl            | A Tool for Transferring Data from URLs | srcpackage
i | libcurl4        | Version 4 of cURL shared library       | package
i | libcurl4-32bit  | Version 4 of cURL shared library       | package
  | perl-WWW-Curl   | Perl extension interface for libcurl   | package
  | perl-WWW-Curl   | Perl extension interface for libcurl   | srcpackage
i | python-pycurl   | PycURL -- cURL library module          | package
  | python-pycurl   | PycURL -- cURL library module          | srcpackage
  | python3-pycurl  | PycURL -- cURL library module          | package
  | python3-pycurl  | PycURL -- cURL library module          | srcpackage
  | qemu-block-curl | cURL block support for QEMU            | package
> zypper se libcurl*
Loading repository data...
Reading installed packages...

S | Name           | Summary                          | Type
--+----------------+----------------------------------+--------
i | libcurl4       | Version 4 of cURL shared library | package
i | libcurl4-32bit | Version 4 of cURL shared library | package

2

Answers


  1. Try updating your package database prior to installing:

    sudo zypper ref
    
    Login or Signup to reply.
  2. You can go here here, search for libcurl-devel for your SUSE version, download it and install it locally using provided instructions. I do see that libcurl-devel is available for your system.

    UPDATE
    In my understanding, the problem is that you don’t have the SDK module activated in your system. If you don’t have administrative privileges, ask the administrator to activate the SDK module by running:

    SUSEConnect -p sle-sdk/12.4/x86_64

    After this module is activated, run:

    sudo zypper install libcurl-devel

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search