cran / RxODE

:exclamation: This is a read-only mirror of the CRAN R package repository. RxODE — Facilities for Simulating from ODE-Based Models. Homepage: https://nlmixrdevelopment.github.io/RxODE/, https://github.com/nlmixrdevelopment/RxODE/ Report bugs for this package: https://github.com/nlmixrdevelopment/RxODE/issues/
0 stars 1 forks source link

Error compiling model #1

Open pharaveej opened 7 years ago

pharaveej commented 7 years ago

Hi.

I am trying to use the RxODE package but have been having problem compiling model after defining the differential equations using the example code. mod1 <- RxODE(model = ode, modName = "mod1")

Warning message: running command 'make -f "Makevars" -f "C:/PROGRA~1/R/R-33~1.2/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-33~1.2/share/make/winshlib.mk" SHLIB="C:/Users/pharavee/Desktop/mod1.d/mod1.dll" WIN=64 TCLBIN=64 OBJECTS="C:/Users/pharavee/Desktop/mod1.d/mod1.o C:/Users/pharavee/Desktop/mod1.d/call_dvode.o"' had status 127 Error in cmpMgr$compile() : error loading dll file C:/Users/pharavee/Desktop/mod1.d/mod1.dll In addition: Warning message: running command 'C:/PROGRA~1/R/R-33~1.2/bin/R CMD SHLIB C:/Users/pharavee/Desktop/mod1.d/mod1.c C:/Users/pharavee/Desktop/mod1.d/call_dvode.o' had status 1

Is there something we're missing here? Thank you!

jgonlop3 commented 7 years ago

I have the same problem!

Please help us!

JSC67 commented 7 years ago

Alas, me too.

jgonlop3 commented 7 years ago

I have solved this problem! It´s related with Rtools path configuration. Try to check this items:

  1. Rtools must be installed in C:/Rtools
  2. In R, write: path <- Sys.getenv("PATH") path <- c("C:\Rtools\bin", "C:\Rtools\gcc-4.6.3\bin", path) path <- paste(path,collapse=";") Sys.setenv(PATH=path) Sys.getenv("PATH")

ATTENTION: the paths in line 2 ("C:\Rtools\bin" and "C:\Rtools\gcc-4.6.3\bin", path) can be different in same Rtools versions. Correct as you need.

pharaveej commented 7 years ago

@jgonlop3 I followed your direction and it works perfectly now. Thanks so much! Although in R code line 2 I need to change the path to the following code for the latest version of Rtools: path <- c("C:/Rtools/bin", "C:/Rtools/mingw_64/gcc-4.9.3/bin", path)

mattfidler commented 3 years ago

Typically these issues should be in the github repository:

https://github.com/nlmixrdevelopment/RxODE

I am more likely to help :smile: