Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies on Linux Distribution #47

Closed
gerhswitsiem opened this issue Jan 8, 2019 · 5 comments
Closed

Dependencies on Linux Distribution #47

gerhswitsiem opened this issue Jan 8, 2019 · 5 comments

Comments

@gerhswitsiem
Copy link

I use the package in a r docker container (r-ver). To successful install the package the following packages are necessery:

  • "libcurl4-openssl-dev"
  • "libssl-dev"
  • "curl"

Please add this dependencies in your documentation.

@dleutnant
Copy link
Owner

Technically, I agree with you. However if we follow the dependencies we see that {influxdbr} imports {jsonlite} which imports {curl} which lists the required packages. So the issue is rather the installation of {curl}, isn't it?

@gerhswitsiem
Copy link
Author

This could be the issue. But if we know this problem and the dependencie chain require this tools, it should be a sign in the documentation that there could be some struggles.

Thank you for your review on this case.

@ThierryO
Copy link

ThierryO commented Apr 9, 2020

IMHO there is not need to add this to the system requirements. The error message on the install has sufficient clues on how to solve the problem.

* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
** using staged installation
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 ‘/usr/local/lib/R/site-library/curl’
* installing *source* package ‘openssl’ ...
** package ‘openssl’ successfully unpacked and MD5 sums checked
** using staged installation
Using PKG_CFLAGS=
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because openssl was not found. Try installing:
 * deb: libssl-dev (Debian, Ubuntu, etc)
 * rpm: openssl-devel (Fedora, CentOS, RHEL)
 * csw: libssl_dev (Solaris)
 * brew: openssl@1.1 (Mac OSX)
If openssl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a openssl.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 ‘openssl’
* removing ‘/usr/local/lib/R/site-library/openssl’
ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’
* removing ‘/usr/local/lib/R/site-library/httr’
ERROR: dependency ‘httr’ is not available for package ‘influxdbr’
* removing ‘/usr/local/lib/R/site-library/influxdbr’

@gerhswitsiem
Copy link
Author

Ok - then I think we can close this issue. If somebody else have some trouble with this, he can find this issue and get the solution.
Thanks for your affort.

@dleutnant
Copy link
Owner

@gerhswitsiem Agreed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants