GithubHelp home page GithubHelp logo

error during install about achilles HOT 7 CLOSED

ohdsi avatar ohdsi commented on August 10, 2024
error during install

from achilles.

Comments (7)

vojtechhuser avatar vojtechhuser commented on August 10, 2024 1

full install script:

#install java SE (JDK+JRE, most recent ver8 was fine)
install.packages("devtools")
install.packages("rJava")
library(devtools)
install_github("ohdsi/DatabaseConnector")
install_github("ohdsi/SqlRender")
install_github("ohdsi/Achilles")

library(Achilles)

from achilles.

schuemie avatar schuemie commented on August 10, 2024

We've seen this before when message when RTools was not installed. Can you confirm that you have RTools installed?

from achilles.

vojtechhuser avatar vojtechhuser commented on August 10, 2024

I apologize for not following instructions.
RTools install fixed the problem.

small issue 2
note there is also dependency on rJava

do this to fix it:

  1. install java SE (JRE and JDK - check java_home variable existence)
  2. install.packages("rJava")

from achilles.

phanikumarpingali avatar phanikumarpingali commented on August 10, 2024

I am trying to run "install_github("ohdsi/SqlRender")" on windows 7, 64-bit with jdk 7 (64- bit), R version 3.1.2 and R-GUI (64-bit).

I am getting the following error:

library("devtools")
Warning message:
package ‘devtools’ was built under R version 3.1.3
install_github("ohdsi/SqlRender")
Downloading github repo ohdsi/SqlRender@master
Installing SqlRender
"C:/PROGRA1/R/R-311.2/bin/x64/R" --no-site-file --no-environ --no-save --no-restore CMD INSTALL
"C:/Users/PPingali/AppData/Local/Temp/RtmpMtqVJl/devtools1318104472eb/OHDSI-SqlRender-cc551a2"
--library="C:/Users/PPingali/Documents/R/win-library/3.1" --install-tests

  • installing source package 'SqlRender' ...
    ** R
    ** inst
    ** tests
    ** preparing package for lazy loading
    ** help
    *** installing help indices
    ** building package indices
    ** installing vignettes
    ** testing if installed package can be loaded
    *** arch - i386
    Error : .onLoad failed in loadNamespace() for 'rJava', details:
    call: inDL(x, as.logical(local), as.logical(now), ...)
    error: unable to load shared object 'C:/Users/PPingali/Documents/R/win-library/3.1/rJava/libs/i386/rJava.dll':
    LoadLibrary failure: %1 is not a valid Win32 application.

Error: loading failed
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'

  • removing 'C:/Users/PPingali/Documents/R/win-library/3.1/SqlRender'
    Error: Command failed (1)

Please help me out in fixing this issue...
Thanks in advance.....

from achilles.

schuemie avatar schuemie commented on August 10, 2024

The problem might be that you only have a 64-bit version of Java, but install_github is trying to build both the 32-bit and 64-bit version of the package. For some reason the simple JRE from Oracle does not have this problem, but the JDK does. You can try one of two things:

  1. Install a 32-bit Java version next to your 64-bit one
  2. Install all OHDSI packages using the args="--no-multiarch" option, so for example
install_github("ohdsi/SqlRender", args="--no-multiarch")

from achilles.

phanikumarpingali avatar phanikumarpingali commented on August 10, 2024

Thanks for the reply... Its working fine now !!!

from achilles.

devincwru avatar devincwru commented on August 10, 2024

Hi,
I run the command in Windows, install_github("ohdsi/SqlRender", args="--no-multiarch"). Still get the following error:
Error: package or namespace load failed for 'SqlRender':
.onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/yxt30/Documents/R/win-library/3.5/rJava/libs/i386/rJava.dll':
LoadLibrary failure: %1 is not a valid Win32 application.

Could you please help? -Thanks!

from achilles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.