Skip to content

dqmagic for windows user #4

@VincentGuyader

Description

@VincentGuyader

Hi,

When I try to install dqmagic on windows I have this error :

> if (!requireNamespace("drat", quietly = TRUE)) install.packages("drat")
> drat::addRepo("RInstitute")
> install.packages("dqmagic")
Installing package into ‘C:/Users/Vincent/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
  unable to access index for repository https://RInstitute.github.io/drat/bin/windows/contrib/3.4:
  cannot open URL 'https://RInstitute.github.io/drat/bin/windows/contrib/3.4/PACKAGES'
Package which is only available in source form, and may need compilation
  of C/C++/Fortran: ‘dqmagic’
Do you want to attempt to install these from sources?
y/n: y
installing the source package ‘dqmagic’

trying URL 'https://RInstitute.github.io/drat/src/contrib/dqmagic_0.0.3.tar.gz'
Content type 'application/gzip' length 53896 bytes (52 KB)
downloaded 52 KB

* installing *source* package 'dqmagic' ...

   **********************************************
   WARNING: this package has a configure script
         It probably needs manual configuration
   **********************************************


** libs

*** arch - i386
C:/RBuildTools/3.4/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/Vincent/Documents/R/win-library/3.4/Rcpp/include"        -O2 -Wall  -mtune=generic -c RcppExports.cpp -o RcppExports.o
C:/RBuildTools/3.4/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/Vincent/Documents/R/win-library/3.4/Rcpp/include"        -O2 -Wall  -mtune=generic -c file.cpp -o file.o
file.cpp:23:19: fatal error: magic.h: No such file or directory
 #include <magic.h>
                   ^
compilation terminated.
make: *** [file.o] Error 1
Warning: l'exécution de la commande 'make -f "C:/PROGRA~1/R/R-34~1.3/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.3/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="dqmagic.dll" OBJECTS="RcppExports.o file.o magic.o"' renvoie un statut 2
ERROR: compilation failed for package 'dqmagic'
* removing 'C:/Users/Vincent/Documents/R/win-library/3.4/dqmagic'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\Vincent\Documents\R\win-library\3.4" C:\Users\Vincent\AppData\Local\Temp\Rtmpiwpwzl/downloaded_packages/dqmagic_0.0.3.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘dqmagic’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\Vincent\AppData\Local\Temp\Rtmpiwpwzl\downloaded_packages’

Any ide how to correct this ?

regards

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions