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

problems installing DIANE in Ubuntu 22.04 #48

Open
Valentin-Bio opened this issue Nov 21, 2024 · 2 comments
Open

problems installing DIANE in Ubuntu 22.04 #48

Valentin-Bio opened this issue Nov 21, 2024 · 2 comments

Comments

@Valentin-Bio
Copy link

Hello Developer, I'm having problems when installing DIANE in ubuntu by running:

remotes::install_github("OceaneCsn/DIANE")

this is the erro I get, there are missing dependencies like rfPermute, but when I install that dependency I get the error "package is not available". I have previously got this error by installing tidyverse for example. In that I had to install some libraries in Ubuntu. Can a missing ubuntu library be the problem here as well?

This is the error message:

Installing 3 packages: runjags, swfscMisc, rfPermute
Installing packages into ‘/home/valentinignacio/R/x86_64-pc-linux-gnu-library/4.4’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/runjags_2.2.2-4.tar.gz'
Content type 'application/x-gzip' length 1115780 bytes (1.1 MB)

downloaded 1.1 MB

trying URL 'https://cloud.r-project.org/src/contrib/swfscMisc_1.6.5.tar.gz'
Content type 'application/x-gzip' length 44846 bytes (43 KB)

downloaded 43 KB

trying URL 'https://cloud.r-project.org/src/contrib/rfPermute_2.5.2.tar.gz'
Content type 'application/x-gzip' length 1746749 bytes (1.7 MB)

downloaded 1.7 MB

  • installing source package ‘runjags’ ...
    ** package ‘runjags’ successfully unpacked and MD5 sums checked
    ** using staged installation
    checking for pkg-config... /usr/bin/pkg-config
    configure: WARNING: pkg-config file for jags unavailable
    configure: WARNING: Consider adding the directory containing jags.pc
    configure: WARNING: to the PKG_CONFIG_PATH environment variable
    configure: Attempting legacy configuration of rjags
    checking for jags... no
    configure: error: "automatic detection of JAGS failed. Please use pkg-config to locate the JAGS library. See the INSTALL file for details."
    ERROR: configuration failed for package ‘runjags’
  • removing ‘/home/valentinignacio/R/x86_64-pc-linux-gnu-library/4.4/runjags’
    ERROR: dependency ‘runjags’ is not available for package ‘swfscMisc’
  • removing ‘/home/valentinignacio/R/x86_64-pc-linux-gnu-library/4.4/swfscMisc’
    ERROR: dependency ‘swfscMisc’ is not available for package ‘rfPermute’
  • removing ‘/home/valentinignacio/R/x86_64-pc-linux-gnu-library/4.4/rfPermute’

The downloaded source packages are in
‘/tmp/Rtmpi9c7zr/downloaded_packages’
── R CMD build ──────────────────────────────────────────────────────────────────────────────────
✔ checking for file ‘/tmp/Rtmpi9c7zr/remotes1d67528016dc6/OceaneCsn-DIANE-0039094/DESCRIPTION’ ...
─ preparing ‘DIANE’:
✔ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘DIANE_1.0.6.tar.gz’

Installing package into ‘/home/valentinignacio/R/x86_64-pc-linux-gnu-library/4.4’
(as ‘lib’ is unspecified)
ERROR: dependency ‘rfPermute’ is not available for package ‘DIANE’

  • removing ‘/home/valentinignacio/R/x86_64-pc-linux-gnu-library/4.4/DIANE’
    Warning messages:
    1: In i.p(...) :
    installation of package ‘runjags’ had non-zero exit status
    2: In i.p(...) :
    installation of package ‘swfscMisc’ had non-zero exit status
    3: In i.p(...) :
    installation of package ‘rfPermute’ had non-zero exit status
    4: In i.p(...) :
    installation of package ‘/tmp/Rtmpi9c7zr/file1d675286ec12a/DIANE_1.0.6.tar.gz’ had non-zero exit status
@Alexandre-So
Copy link
Contributor

Hello,

Thank you for your message.

Package dependency management can be overwhelming sometimes. It’s the first time I see this specific error.

From what I can found, this may come from the absence of “jags” on your computer, as you guessed. So you can try to install it first, using :

sudo apt install jags

And then try again to install your package as usual.

Best,
Alexandre

@Valentin-Bio
Copy link
Author

Thanks so much! it worked!. after installing jags via the terminal I could install DIANE via install_github(). We are using your program for teaching purposes in a class!

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

2 participants