Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dqmagic for windows user #4

Open
VincentGuyader opened this issue Mar 21, 2018 · 3 comments
Open

dqmagic for windows user #4

VincentGuyader opened this issue Mar 21, 2018 · 3 comments
Assignees

Comments

@VincentGuyader
Copy link

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

@rstub
Copy link
Member

rstub commented Mar 21, 2018

Currently, dqmagic officially runs on Linux and Mac OS X. However, there is experimental Windows support in the windows branch. That is not uploaded to the drat repository, though. Installing via

remotes::install_github("RInstitute/dqmagic@windows")

might work. Let me know what happens. :-)

@rstub rstub self-assigned this Mar 21, 2018
@rstub
Copy link
Member

rstub commented Mar 26, 2018

@VincentGuyader Have you tried installiing dqmagic via devtools?

@konradmayer
Copy link

konradmayer commented Mar 9, 2021

I know this is an old issue, but it may help you to get feedback:

Installation on Windows 10 via

remotes::install_github("RInstitute/dqmagic@windows")

threw a warning:

In utils::untar(tarfile, ...) :
  ‘tar.exe -xf "C:\Users\Konrad\AppData\Local\Temp\RtmpGiBW2V\file5dbc781933c7.tar.gz" -C "C:/Users/Konrad/AppData/Local/Temp/RtmpGiBW2V/remotes5dbc38ba5de3"’ returned error code 1

but dqmagic seems to work as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants