The specified module could not be found in R

15,156

There is not an easy way in R to get more information from the error I mentioned. But I found free software to find which dependency the dill is missing by following web site: http://www.dependencywalker.com/

Using the software I was able to find following dlls are needed to be in system path.

GPSVC.dll
IESHIMS.dll
SYSNIFY.dll
Share:
15,156
Tae-Sung Shin
Author by

Tae-Sung Shin

Updated on June 08, 2022

Comments

  • Tae-Sung Shin
    Tae-Sung Shin about 2 years

    I am developing a package using Rcpp and another third party C++ library. When I tried to install the package, I got

    Error in inDL(x, as.logical(local), as.logical(now), ...) : 
      unable to load shared object 'C:/Users/Admin/Documents/R/win-library/2.15/packagename/libs/i386/package.dll':
       LoadLibrary failure:  The specified module could not be found.
    

    In 32-bit Windows OS, following an advice from my colleague, I fixed the problem by adding location of following dlls from MingW to system path.

    libgcc_s_dw2-1.dll
    

    But 64-bit Windows, I get the same error even with the dll although I am using 32-bit R.

    So my question:

    Is there any way to know why The specified module could not be found error occurs? I mean I would like to know which module is missing. Maybe verbose option some where?

  • Dirk Eddelbuettel
    Dirk Eddelbuettel over 11 years
    Looks like your mixing VS-compiled and MinGW-compiled libraries. That is not for the faint of heart, and not what is generally document for R or Rcpp.
  • Dirk Eddelbuettel
    Dirk Eddelbuettel over 11 years
    Then your path is wrong, plain and simple. How to build packages on Windows is clearly described in several places, but you have to follow it to the letter.