ropensci / jqr

R interface to jq
https://docs.ropensci.org/jqr
Other
143 stars 13 forks source link

libjq was not found on Linux systems #77

Closed PoGibas closed 5 years ago

PoGibas commented 5 years ago

install.packages("jqr") returns Configuration failed because libjq was not found on:

But works on macOS Mojave (3.5.2).

It's possible to specify path using suggested method from the error message:

On Ubuntu 14.04 or 16.04 you can use the PPA:
  sudo add-apt-repository -y ppa:opencpu/jq
  sudo apt-get update
  sudo apt-get install libjq-dev
On other sytems try installing:
 * deb: libjq-dev (Debian, Ubuntu 16.10 and up).
 * rpm: jq-devel (Fedora, EPEL)
 * csw: libjq_dev (Solaris)
 * brew: jq (OSX)
If  is already installed set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'

However this causes problems when trying to pass Travis CI

sckott commented 5 years ago

sounds like your use case is tyring to install jq on travis? or both on your own machine and travis? can you share the actual error message you get

jeroen commented 5 years ago

Try to using the same .travis configuration as this repo:

https://github.com/ropensci/jqr/blob/5d2c2f7a3688b0da8b3b99688da70b3df7385bb4/.travis.yml#L19-L24