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

Install on windows #32

Closed
DKOli8 opened this issue Sep 5, 2016 · 13 comments
Closed

Install on windows #32

DKOli8 opened this issue Sep 5, 2016 · 13 comments

Comments

@DKOli8
Copy link

DKOli8 commented Sep 5, 2016

Getting the following error trying to install:

  • installing source package 'gpuR' ...
    ** package 'gpuR' successfully unpacked and MD5 sums checked
    g++ version = egcs-2.91.57
    OPENCL_INC not found!
    Please set OPENCL_INC to OpenCL headers.
    Warning: running command 'sh ./configure.win' had status 1

I downloaded openCL code builder, then visual studio as well as cuda, but R could never find a g++ compiler so I installed cygwin. I've also added "C:\cygnus\cygwin-b20\H-i586-cygwin32\bin" to my user and system PATH variables.

I'm an analyst trying to install this, not a computer scientist. I know my way around a computer but very limited experience in compiling etc

Thanks in advance

@cdeterman
Copy link
Owner

@DKOli8 you need to have Rtools installed to compile C++ packages for R.

Assuming you are installing from the CRAN repository you will need to set the environmental variables OPENCL_INC and likely OPENCL_LIB64.

If you try to install from my 'develop' branch it should be automatic. You can try it with devtools::install_github('cdeterman/gpuR', ref = 'develop') once you have Rtools installed.

@DKOli8
Copy link
Author

DKOli8 commented Sep 6, 2016

Replying on my phone, hopefully goes through.

I have RTools and have used it to successfully get the dev version of data.table that's not on cran yet (it resolved a bug in fread that in the cran one).

I tried what you put after seeing it on stack overflow yesterday. However when I do it asks me to download and install RTools. I have RTools and it is in my C:/ directory. Do I need to run setwd(C:/) first? My current working directly is a different drive.

Thanks

Sent from my iPhone

On 6 Sep 2016, at 13:59, Charles Determan <notifications@github.commailto:notifications@github.com> wrote:

@DKOli8https://github.com/DKOli8 you need to have Rtoolshttps://cran.r-project.org/bin/windows/Rtools/ installed to compile C++ packages for R.

Assuming you are installing from the CRAN repository you will need to set the environmental variables OPENCL_INC and likely OPENCL_LIB64.

If you try to install from my 'develop' branch it should be automatic. You can try it with devtools::install_github('cdeterman/gpuR', ref = 'develop') once you have Rtools installed.

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/32#issuecomment-244941973, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQegR3WjhRAfaMuW1FuLhC92gQ5aB4i5ks5qnWOigaJpZM4J1H4i.

@cdeterman
Copy link
Owner

@DKOli8, no, you should have Rtools in your PATH variable. You shouldn't need to set and working directories for that. Also, if installing from my 'develop' branch you will also need the more recent RViennaCL package too devtools::install_github('cdeterman/RViennaCL')

@DKOli8
Copy link
Author

DKOli8 commented Sep 6, 2016

Working from home today, will see if that works tomorrow. Thanks!

Sent from my iPhone

On 6 Sep 2016, at 14:12, Charles Determan <notifications@github.commailto:notifications@github.com> wrote:

@DKOli8https://github.com/DKOli8, no, you should have Rtools in your PATH variable. You shouldn't need to set and working directories for that. Also, if installing from my 'develop' branch you will also need the more recent RViennaCL package too devtools::install_github('cdeterman/RViennaCL')

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/32#issuecomment-244945300, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQegR_-96bBQ-P550Uh-OamVMUNP3ajrks5qnWa5gaJpZM4J1H4i.

@cdeterman
Copy link
Owner

@DKOli8 did you manage to try the reinstall again?

@DKOli8
Copy link
Author

DKOli8 commented Sep 9, 2016

I've literally just opened this page to do it.

I added C:/RTools to my environment.

Ran your install:

Downloading GitHub repo cdeterman/gpuR@develop
from URL https://api.github.com/repos/cdeterman/gpuR/zipball/develop
trying URL 'https://cran.rstudio.com/bin/windows/Rtools/Rtools33.exe'
Content type 'application/x-msdos-program' length 129680178 bytes (123.7 MB)

downloaded 123.7 MB

Error: running command '"C:/PROGRA1/R/R-331.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD config CC' had status 2

^For some reason it tried to download RTools33.exe again and then R gives the above error before windows prompts to install.

Looking at the prompt, the location is in Appdata and attempts to install to directory or C:\RBuildTools\3.3 which I already have.

I have C:\RBuildTools\3.3 and C:\RTools. They have the same file/folders except RBuild also has the folder gcc-4.63.

I will add the RBuildTools\3.3 to my env path now try again.

No, it failed. However the RViennaCL was successful:

Downloading GitHub repo cdeterman/RViennaCL@master
from URL https://api.github.com/repos/cdeterman/RViennaCL/zipball/master
Installing RViennaCL
"C:/PROGRA1/R/R-331.1/bin/x64/R" --no-site-file --no-environ
--no-save --no-restore --quiet CMD INSTALL
"C:/Users/robsoo01/AppData/Local/Temp/RtmpErjoaK/devtoolsb30396c5bf3/cdeterman-RViennaCL-a8326af"
--library="C:/Users/robsoo01/Documents/R/win-library/3.3"
--install-tests

  • installing source package 'RViennaCL' ...
    ** inst
    ** help
    *** installing help indices
    ** building package indices
    ** testing if installed package can be loaded
    *** arch - i386
    *** arch - x64
  • DONE (RViennaCL)

@cdeterman
Copy link
Owner

@DKOli8 you want the following near the beginning of your PATH variable.

c:\Rtools\bin;c:\Rtools\mingw_64\bin;c:\Rtools\mingw_32\bin;

This way it looks in the bin directory where all the executable files are.

@DKOli8
Copy link
Author

DKOli8 commented Sep 9, 2016

I have:

C:\Users\robsoo01\AppData\Local\atom\bin;C:\Oracle\instantclient_12_1;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\cygnus\cygwin-b20\H-i586-cygwin32\bin;C:\RTools;C:\RBuildTools\3.3;c:\Rtools\bin;c:\Rtools\mingw_64\bin;c:\Rtools\mingw_32\bin;

For user and for system:

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\libnvvp;C:\Program Files (x86)\Intel\OpenCL SDK\6.1\bin\x64;C:\Program Files (x86)\Intel\OpenCL SDK\6.1\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\6.1\bin\Pin;C:\Program Files (x86)\Intel\OpenCL SDK\6.1\bin\GTPin;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn;C:\Program Files\Git\cmd;C:\HashiCorp\Vagrant\bin;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Users\robsoo01.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\cygnus\cygwin-b20\H-i586-cygwin32\bin;C:\RBuildTools\3.3;C:\RTools;c:\Rtools\bin;c:\Rtools\mingw_64\bin;c:\Rtools\mingw_32\bin;

@cdeterman
Copy link
Owner

I suspect it is having issues with cygwin because it comes before Rtools in your PATH. You should have all Rtools related variables at the start of your PATH. That is why during install if you select the option to alter your PATH automatically they will be added to the start.

@DKOli8
Copy link
Author

DKOli8 commented Sep 9, 2016

Could you post an example of how the above should be rearranged? I don't want to mess up anything else like Orcale or SQL server or anything else.

@cdeterman
Copy link
Owner

For example, the first PATH you provided

C:\Users\robsoo01\AppData\Local\atom\bin;C:\Oracle\instantclient_12_1;C:\Program Files\Intel\WiFi\bin\;
C:\Program Files\Common Files\Intel\WirelessCommon\;C:\cygnus\cygwin-b20\H-i586-cygwin32\bin;
C:\RTools;C:\RBuildTools\3.3;c:\Rtools\bin;c:\Rtools\mingw_64\bin;c:\Rtools\mingw_32\bin;

it should be:

c:\Rtools\bin;c:\Rtools\mingw_64\bin;c:\Rtools\mingw_32\bin;
C:\Users\robsoo01\AppData\Local\atom\bin;C:\Oracle\instantclient_12_1;C:\Program Files\Intel\WiFi\bin\;
C:\Program Files\Common Files\Intel\WirelessCommon\;C:\cygnus\cygwin-b20\H-i586-cygwin32\bin;

@DKOli8
Copy link
Author

DKOli8 commented Sep 9, 2016

edited the system ones too:

...
checked all devices
completed initialization
[1] "context initialization successful"
[1] "startup message not problem"

  • DONE (gpuR)

Thanks!

@cdeterman
Copy link
Owner

Excellent, glad it worked for you.

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

No branches or pull requests

2 participants