cdeterman / gpuR

R interface to use GPU's
241 stars 26 forks source link

gpuR package installation #49

Closed YassGuenn closed 8 years ago

YassGuenn commented 8 years ago

Hello,

I tried to install the gpuR package on my Windows computer, after having downloaded the CUBA toolkit, but it didn’t work. I also installed Rtools and changed the system PATH. I got a message telling me that the package “is only available in source form, and may need compilation of C/C++/Fortran”. I tried to install the package with the source file, but it wasn’t more successful.

Do you know how to fix my problem ?

Kind regards,

Yassin

cdeterman commented 8 years ago

Hello again Yassin,

Can you provide the output from the attempted package installation?

YassGuenn commented 8 years ago

Yes, of course :

install.packages("gpuR")

Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘gpuR’ These will not be installed

When I try to use the source file to install the package, I get this message :

install.packages("~/R - Packages/gpuR_1.1.2.tar.gz", repos = NULL, type = "source")

'\f-sokaris\home2$\a004184\MyDocs' CMD.EXE a ‚t‚ d‚marr‚ avec le chemin d'accŠs comme r‚pertoire en cours. Les chemins d'accŠs UNC ne sont pas prise en charge. Utilisation du r‚pertoire Windows par d‚faut.

Kind regards,

Yassin

cdeterman commented 8 years ago

Try installing my most recent development version with the following call

devtools::install_github('cdeterman/gpuR', ref = 'develop')

If that doesn't work, please report back the output again.

YassGuenn commented 8 years ago

Thank you for your help. Unfortunately, it did not work and I got the following message :

devtools::install_github('cdeterman/gpuR', ref = 'develop') Error in curl::curl_fetch_disk(url, x$path, handle = handle) : Couldn't resolve host name

cdeterman commented 8 years ago

@YassGuenn well that is strange. Is your network connection working to CRAN? Can you install any other packages at all even via install.packages currently? That isn't a problem with gpuR but with your network or with your devtools install.

YassGuenn commented 8 years ago

Yes you are right. Excuse me, I was not connected to the right network when I computed the last code. With the right network (which allows to install packages via install.packages), I got this following message :

devtools::install_github('cdeterman/gpuR', ref = 'develop')

Error in curl::curl_fetch_disk(url, x$path, handle = handle) : Problem with the SSL CA cert (path? access rights?)

cdeterman commented 8 years ago

According the issue posted here you should restart R and reinstall curl and httr.

YassGuenn commented 8 years ago

Ok, that is what I did, and now I have the following message :

devtools::install_github('cdeterman/gpuR', ref = 'develop')

Downloading GitHub repo cdeterman/gpuR@develop from URL https://api.github.com/repos/cdeterman/gpuR/zipball/develop Installing gpuR "D:/Public/Programme/R-3.3.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \ "C:/Users/a004184/AppData/Local/Temp/RtmpCGyEZ1/devtools18dc7df34de5/cdeterman-gpuR-1cfee03" --library="D:/Public/Programme/R-3.3.1/library" --install-tests

\ libs Erreur : package 'RViennaCL' 1.7.1-1 trouvé, mais >= 1.7.1.3 est nécessaire pour 'cdeterman-gpuR-1cfee03'

It is suggesting that I have downloaded the wrong version of the RViennaCL, but I installed the last release...

cdeterman commented 8 years ago

Ah, yes, this keeps coming up but it is my fault. I will be releasing another version of RViennaCL before I release the newest gpuR (hopefully very soon). You can install it easily with

devtools::install_github('cdeterman/RViennaCL')`
YassGuenn commented 8 years ago

It works ! Thank you for your help.

Kind regards,

Yassin

thomasclifford commented 6 years ago

Good day to you. I am now getting an error when trying devtools::install_github('cdeterman/gpuR', ref = 'develop') it returns: Downloading GitHub repo cdeterman/gpuR@develop from URL https://api.github.com/repos/cdeterman/gpuR/zipball/develop Installing gpuR Installation failed: error reading from connection Have you moved or updated the master at this point ? When I use regular install.packages("gpuR"), it used to prompt me to install from source, but today I'm getting the same error as above, 'error reading from connection. Browsing to https://api.github.com/repos/cdeterman/gpuR/zipball/develop prompts me to download the zip file. Would I be able to install.packages("/cdeterman-gpuR-v2.0.0-60-ge780286.zip", type = "source") ?

cdeterman commented 6 years ago

@thomasclifford odd, no I have not moved anything. It should work fine installing directly with devtools like that. I am not sure at the moment. Perhaps try again another time? Regarding the zip file, yes, you should be able to simply download from the develop branch and manually install as well.

seekerquoc commented 6 years ago

Hello,

When i installed it on window 10 64bit and it show me this error with this command: ### devtools::install_github('cdeterman/gpuR', ref = 'develop')

** libs

*** arch - i386 Warning in system(cmd) : 'make' not found ERROR: compilation failed for package 'gpuR'

cdeterman commented 6 years ago

@seekerquoc do you have Rtools installed?

seekerquoc commented 6 years ago

sorry when i restarted R studio, its working well

ty so much

NickSEC commented 5 years ago

Folks, This gpuR package loos very nice! Just one problem - when I tried to install Rcpp, it installs version 12.7, which is the latest that is on the CRAN site. However, the installation error tells me that version 12.15 is required. Where on CRAN is this version?? I hope that finding it will be the final step in installing gpuR.

Nick.

NickSEC commented 5 years ago

devtools::install_github('cdeterman/gpuR', ref = 'develop') Downloading GitHub repo cdeterman/gpuR@develop from URL https://api.github.com/repos/cdeterman/gpuR/zipball/develop Installing gpuR "C:/PROGRA~1/MIE74D~1/RCLIEN~1/R_SERVER/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \ "C:/Users/Analysis/AppData/Local/Temp/Rtmp8aSpaX/devtools1e14673a5d7/cdeterman-gpuR-a42f75d" \ --library="C:/Users/Analysis/Documents/R/win-library/3.3" --install-tests

** libs Error: package 'Rcpp' 0.12.7 was found, but >= 0.12.15 is required by 'cdeterman-gpuR-a42f75d'

jsancheg commented 4 months ago

Hello,

After downloading the CUDA toolkit, I tried to install the gpuR package on my computer with Windows 10 as OS and R version 4.2, but it didn’t work. I run the line install.packages("gpuR") and obtain this message.

Warning in install.packages : package ‘gpuR’ is not available for this version of R

A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

then, I tried devtools::install_github('cdeterman/gpuR', ref = 'develop') obtained the following messages.

Warning: file 'gpuR/cleanup' did not have execute permissions: corrected Warning: file 'gpuR/configure' did not have execute permissions: corrected

Installing package into ‘C:/Users/Jorge/AppData/Local/R/win-library/4.2’ (as ‘lib’ is unspecified) ERROR: dependency 'assertive' is not available for package 'gpuR'

A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages 2: In file.copy(savedcopy, lib, recursive = TRUE) : problem copying C:\Users\Jorge\AppData\Local\R\win-library\4.2\00LOCK\Rcpp\libs\x64\Rcpp.dll to C:\Users\Jorge\AppData\Local\R\win-library\4.2\Rcpp\libs\x64\Rcpp.dll: Permission denied 3: In i.p(...) : installation of package ‘C:/Users/Jorge/AppData/Local/Temp/Rtmp8w1PG0/file56dc3a566be1/gpuR_2.0.3.tar.gz’ had non-zero exit status

Do you know how to fix my problem ?

Kind regards,

Jorge