InfOmics / cuRnet

An R package for graph traversing on GPU.
MIT License
5 stars 4 forks source link

Installation problem #1

Open DiegoAPacheco opened 4 years ago

DiegoAPacheco commented 4 years ago

Hi. I am having trouble installing the package in Windows.

Downloading GitHub repo InfOmics/cuRnet@master

√  checking for file 'C:\Users\diego\AppData\Local\Temp\RtmpERZkuk\remotes2ec43eeb6831\InfOmics-cuRnet-c7c1f0f/DESCRIPTION' (337ms)
-  preparing 'cuRnet': (1.7s)
√  checking DESCRIPTION meta-information ... 
-  cleaning src
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
-  building 'cuRnet_0.5.2.tar.gz'
   Warning: file 'cuRnet/configure' did not have execute permissions: corrected
   Warning in utils::tar(filepath, pkgname, compression = compression, compression_level = 9L,  :
     storing paths of more than 100 bytes is not portable:
     'cuRnet/src/parallelSCC-4k/cub-1.4.0/cub/block/specializations/block_reduce_raking_commutative_only.cuh'

Installing package into ‘C:/Users/diego/OneDrive/Documentos/R/win-library/4.0’
(as ‘lib’ is unspecified)
* installing *source* package 'cuRnet' ...
** using staged installation

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

** libs
"C:/rtools40/mingw64/bin/"g++ -std=gnu++11  -I"C:/PROGRA~1/R/R-40~1.0/include" -DNDEBUG  -I'C:/Users/diego/OneDrive/Documentos/R/win-library/4.0/Rcpp/include'        -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c cuRnet.cpp -o cuRnet.o
cuRnet.cpp:8:10: fatal error: Host/GraphSSSP.hpp: No such file or directory
 #include "Host/GraphSSSP.hpp"
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [C:/PROGRA~1/R/R-40~1.0/etc/x64/Makeconf:229: cuRnet.o] Error 1
ERROR: compilation failed for package 'cuRnet'
* removing 'C:/Users/diego/OneDrive/Documentos/R/win-library/4.0/cuRnet'
Installation failed: NULL : Failed to install 'cuRnet' from GitHub:
  (convertido del aviso) installation of package ‘C:/Users/diego/AppData/Local/Temp/RtmpERZkuk/file2ec4484c34fc/cuRnet_0.5.2.tar.gz’ had non-zero exit status

The following packages were not able to be installed:
cuRnet

Is there a way to avoid it?

vbonnici commented 4 years ago

Dear Diego, we have modified a little bit the make file, however, it is possible that is will not work on your configuration especially if you are using MinGW on a Windows system. Please, modify the makefile at your convenience.

slfan2013 commented 2 years ago

How to modify makefile ?

vbonnici commented 2 years ago

Please @slfan2013 report your output

slfan2013 commented 2 years ago

Identical to Diego’s post.

vbonnici commented 2 years ago

We modified the makefile in 2020. If it does not work for you, It is possible that your configuration needs further modifications, but I cannot help you with this. I suggest installing "bash on Windows" and running R and this package on it.