I'm not certain just what this problem is. Trying to install the "curl" package, which "tseries" wants results in the following error: **** 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 Package 'libcurl', required by 'virtual:world', not 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 Package 'libcurl', required by 'virtual:world', not found Using PKG_CFLAGSUsing 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? * removing ?/home/john/R/x86_64-redhat-linux-gnu-library/3.6/curl? Warning in install.packages : installation of package ?curl? had non-zero exit status **** However, libcurl is installed, installed. What does seem to missing is "libcurl.pc". The ../pkgconfig directory contains a number of different *.pc files, but not that one. I'm asking here first because someone else may have already encountered and solved this. I'm running Fedora 32 with kde on a 4 X AMD system. I just updated Fedora. JWDougherty
Hi John, This is a bit off-topic for this mailing list as your issue is a linux, specifically Fedora, issue, and not R. I don't use Fedora but I did a quick Google search on fedora missing package .pc file and that came back with a lot of hits. This one in particular should be a good place to start. It gives some explanation as to when installation will result in a .pc file (seems to relate to -dev versions). https://stackoverflow.com/questions/33050517/supply-pc-file-for-pkg-config HTH, Eric On Fri, May 29, 2020 at 8:03 AM John via R-help <r-help at r-project.org> wrote:> > I'm not certain just what this problem is. Trying to install the > "curl" package, which "tseries" wants results in the following error: > > **** > 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 > Package 'libcurl', required by 'virtual:world', not 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 > Package 'libcurl', required by 'virtual:world', not 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? > * removing ?/home/john/R/x86_64-redhat-linux-gnu-library/3.6/curl? > Warning in install.packages : > installation of package ?curl? had non-zero exit status > **** > > However, libcurl is installed, installed. What does seem to missing is > "libcurl.pc". The ../pkgconfig directory contains a number of > different *.pc files, but not that one. I'm asking here first because > someone else may have already encountered and solved this. I'm running > Fedora 32 with kde on a 4 X AMD system. I just updated Fedora. > > JWDougherty > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
The library alone is not enough... you have to have the development headers for compiling code against the library. On May 28, 2020 10:03:18 PM PDT, John via R-help <r-help at r-project.org> wrote:>I'm not certain just what this problem is. Trying to install the >"curl" package, which "tseries" wants results in the following error: > >**** >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 >Package 'libcurl', required by 'virtual:world', not 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 >Package 'libcurl', required by 'virtual:world', not 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? >* removing ?/home/john/R/x86_64-redhat-linux-gnu-library/3.6/curl? >Warning in install.packages : > installation of package ?curl? had non-zero exit status >**** > >However, libcurl is installed, installed. What does seem to missing is >"libcurl.pc". The ../pkgconfig directory contains a number of >different *.pc files, but not that one. I'm asking here first because >someone else may have already encountered and solved this. I'm running >Fedora 32 with kde on a 4 X AMD system. I just updated Fedora. > >JWDougherty > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.-- Sent from my phone. Please excuse my brevity.
On Fri, 29 May 2020 at 07:03, John via R-help <r-help at r-project.org> wrote:> I'm not certain just what this problem is. Trying to install the > "curl" package, which "tseries" wants results in the following error: > > **** > Package libcurl was not found in the pkg-config search path. > Perhaps you should add the directory containing `libcurl.pc' >Just run: sudo dnf install libcurl-devel Regards Martin [[alternative HTML version deleted]]
On Fri, 29 May 2020 18:36:39 +0200 Martin M?ller Skarbiniks Pedersen <traxplayer at gmail.com> wrote:> sudo dnf install libcurl-develMartin, I was going to say I had already done that more than once, using both the command line and the new "dnfdragora" package manager, but then decided, "what the heck. I'll try again." This time the *.pc file appeared where it belonged. So, thank you. Evidently, I tweaked the right thing, whatever it was, right before I gave up and wrote my request, thinking that if FC32 broke my tseries installation, it would have broken others. As usual the r-list is quicker, and much more helpful. I'll pass this along to Fedora, since there seems to be a problem of some kind. libcurl-devel was already installed on my system, the first thing I ckecked. It was just the *.pc file that was the problem. Thanks, JWDougherty