在 SUSE 12.4 上安装 LIBCURL-DEVEL 以使用 CURL R 包
Install LIBCURL-DEVEL on SUSE 12.4 to use CURL R package
我正在使用 SUSE SLE 12.4
> cat /etc/SuSE-release
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 4
我正在尝试为 R [3.6] 安装库 curl
,但出现此错误:
* 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
(版本 7.60.0-2.11)已安装。
根据错误消息的建议,我尝试安装 Linux 软件包 libcurl-devel
。
不出所料,因为我正在处理开发包,所以我收到此消息:
> 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.
我试图找到一个可以提供该软件包的在线存储库。我什么也没找到。
谁能帮帮我?
如果您需要更多信息,我很乐意提供。
应要求,这里有更多信息。
> 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
尝试在安装之前更新您的包数据库:
sudo zypper ref
您可以转到此处 here,搜索 libcurl-devel
以查找您的 SUSE 版本,下载并使用提供的说明在本地安装。我确实看到 libcurl-devel
可用于您的系统。
更新
据我了解,问题是您的系统中没有激活 SDK 模块。如果您没有管理员权限,请管理员通过运行ning激活SDK模块:
SUSEConnect -p sle-sdk/12.4/x86_64
此模块激活后,运行:
sudo zypper install libcurl-devel
我正在使用 SUSE SLE 12.4
> cat /etc/SuSE-release
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 4
我正在尝试为 R [3.6] 安装库 curl
,但出现此错误:
* 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
(版本 7.60.0-2.11)已安装。
根据错误消息的建议,我尝试安装 Linux 软件包 libcurl-devel
。
不出所料,因为我正在处理开发包,所以我收到此消息:
> 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.
我试图找到一个可以提供该软件包的在线存储库。我什么也没找到。
谁能帮帮我? 如果您需要更多信息,我很乐意提供。
应要求,这里有更多信息。
> 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
尝试在安装之前更新您的包数据库:
sudo zypper ref
您可以转到此处 here,搜索 libcurl-devel
以查找您的 SUSE 版本,下载并使用提供的说明在本地安装。我确实看到 libcurl-devel
可用于您的系统。
更新 据我了解,问题是您的系统中没有激活 SDK 模块。如果您没有管理员权限,请管理员通过运行ning激活SDK模块:
SUSEConnect -p sle-sdk/12.4/x86_64
此模块激活后,运行:
sudo zypper install libcurl-devel