splor-mg / cookiecutter-datapackage

https://splor-mg.github.io/cookiecutter-datapackage/dev
0 stars 0 forks source link

Adicionar dependências de sistema para instalação do pacote R curl #30

Open fjuniorr opened 8 months ago

fjuniorr commented 8 months ago

A instalação do curl a partir do código fonte foi necessária no armazem-siafi-dados-2024 e nos relatórios do checks-planejamento.

Acho que faz sentido já deixar isso na dockerfile do cookiecutter pra evitarmos a interpretação do erro:

#15 158.0 - Installing curl ...                           FAILED
#15 158.5 Error: Error installing package 'curl':
#15 158.5 ================================
#15 158.5 
#15 158.5 * installing *source* package ‘curl’ ...
#15 158.5 ** package ‘curl’ successfully unpacked and MD5 sums checked
#15 158.5 ** using staged installation
#15 158.5 Using PKG_CFLAGS=
#15 158.5 Using PKG_LIBS=-lcurl
#15 158.5 --------------------------- [ANTICONF] --------------------------------
#15 158.5 Configuration failed because libcurl was not found. Try installing:
#15 158.5  * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
#15 158.5  * rpm: libcurl-devel (Fedora, CentOS, RHEL)
#15 158.5 If libcurl is already installed, check that 'pkg-config' is in your
#15 158.5 PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
#15 158.5 is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
#15 158.5 R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
#15 158.5 -------------------------- [ERROR MESSAGE] ---------------------------
#15 158.5 <stdin>:1:10: fatal error: curl/curl.h: No such file or directory
#15 158.5 compilation terminated.

Links

fjuniorr commented 8 months ago

Idem para openssl

#15 149.5 Error: Error installing package 'openssl':
#15 149.5 ===================================
#15 149.5 
#15 149.5 * installing *source* package ‘openssl’ ...
#15 149.5 ** package ‘openssl’ successfully unpacked and MD5 sums checked
#15 149.5 ** using staged installation
#15 149.5 Using PKG_CFLAGS=
#15 149.5 --------------------------- [ANTICONF] --------------------------------
#15 149.5 Configuration failed because openssl was not found. Try installing:
#15 149.5  * deb: libssl-dev (Debian, Ubuntu, etc)
#15 149.5  * rpm: openssl-devel (Fedora, CentOS, RHEL)
#15 149.5  * csw: libssl_dev (Solaris)
#15 149.5  * brew: openssl (Mac OSX)
#15 149.5 If openssl is already installed, check that 'pkg-config' is in your
#15 149.5 PATH and PKG_CONFIG_PATH contains a openssl.pc file. If pkg-config
#15 149.5 is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
#15 149.5 R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
#15 149.5 -------------------------- [ERROR MESSAGE] ---------------------------
#15 149.5 tools/version.c:1:10: fatal error: openssl/opensslv.h: No such file or directory
#15 149.5     1 | #include <openssl/opensslv.h>
#15 149.5       |          ^~~~~~~~~~~~~~~~~~~~
#15 149.5 compilation terminated.
fjuniorr commented 8 months ago

curl possui como SystemRequirements "libcurl: libcurl-devel (rpm) or libcurl4-openssl-dev (deb)" e openssl possui "OpenSSL >= 1.0.2".