OceaneCsn / DIANE

Dashboard for the Inference and Analysis of Networks from Expression data
GNU General Public License v3.0
14 stars 4 forks source link

problems installing DIANE in Ubuntu 22.04 #48

Open Valentin-Bio opened 1 day ago

Valentin-Bio commented 1 day ago

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 commented 1 day ago

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 commented 1 day ago

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!