Pingzhao Hu
2003-Sep-29 03:57 UTC
[R] problem in integrating C routine with R on windows XP
Hi All, I a C function code, which has been successed in integrating with Splus on Unix. Now I want to move it on windows. So I want to integrate this C function with R on windows XP. I download tools.zip and saved it in c:\bin directory, download MinGW and saved it in c:\MinGw directory, download Perl and saved it in c:\Perl directory. My path is set as: C:\bin;C:\MinGW\bin;C:\Perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRo ot%\System32\Wbem;C:\Program Files\Common Files\Adaptec Shared\System;c:\matlab6p5\bin\win32; When I input the following command: c:\rw1071\bin> Rcmd SHLIB -o simu.dll simu.c I met the following problem: 'make' is not recognized as an internal or external command, operable program or batch file. Could any one tell me the problem here? which steps I have lost or the path has not been correctly set??? Thank you for your help in advance! Ping
Uwe Ligges
2003-Sep-29 06:33 UTC
[R] problem in integrating C routine with R on windows XP
Pingzhao Hu wrote:> Hi All, > I a C function code, which has been successed in integrating > with Splus on Unix. Now I want to move it on windows. > So I want to integrate this C function with R on windows XP. > > I download tools.zip and saved it in c:\bin directory, > download MinGW and saved it in c:\MinGw directory, > download Perl and saved it in c:\Perl directory. > > My path is set as: > > > C:\bin;C:\MinGW\bin;C:\Perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRo > ot%\System32\Wbem;C:\Program Files\Common Files\Adaptec > Shared\System;c:\matlab6p5\bin\win32;Leave out the last semicolon.> When I input the following command: > > c:\rw1071\bin> Rcmd SHLIB -o simu.dll simu.c > > I met the following problem: > > 'make' is not recognized as an internal or external command, > operable program or batch file. > > Could any one tell me the problem here? which steps I have lost or the path > has not been correctly set??? > > Thank you for your help in advance! > > Ping > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-helpYou might also want to read ...\src\gnuwin32\install to set up an environment for compiling R completely (e.g. LaTeX for generating help files, manuals, vignettes, etc.). That's sufficient for compiling packages (you won't need everything, but it doesn't hurt having too much installed). Uwe Ligges
Peter Dalgaard BSA
2003-Sep-29 06:55 UTC
[R] problem in integrating C routine with R on windows XP
Pingzhao Hu <hu at mshri.on.ca> writes:> Hi All, > I a C function code, which has been successed in integrating > with Splus on Unix. Now I want to move it on windows. > So I want to integrate this C function with R on windows XP. > > I download tools.zip and saved it in c:\bin directory, > download MinGW and saved it in c:\MinGw directory, > download Perl and saved it in c:\Perl directory. > > My path is set as: > > > C:\bin;C:\MinGW\bin;C:\Perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRo > ot%\System32\Wbem;C:\Program Files\Common Files\Adaptec > Shared\System;c:\matlab6p5\bin\win32; > > When I input the following command: > > c:\rw1071\bin> Rcmd SHLIB -o simu.dll simu.c > > I met the following problem: > > 'make' is not recognized as an internal or external command, > operable program or batch file. > > Could any one tell me the problem here? which steps I have lost or the path > has not been correctly set???Did you unpack tools.zip correctly? You should end up having a make.exe in C:\bin, and with the path above that should work. Another trap to fall in is that setting the path (via GUI) on XP sets the path for *subsequent* shells, not those that are open at the time. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907