[R] Error 127 and dlltool

Tom Richards upcirichards at yahoo.com
Mon Aug 12 20:36:34 CEST 2002


Hello:

Many thanks to Professor Ripley for responding to my earlier post, included below, about trying to use mingw32 gcc.I did put back the original Rinternals.h. I am still crashing R every time I try to use C code. 



Here is what I did, basd on readme.packages:



1.) Ensured that C:\Rtools was first in my path, and obtained a new tools.zip from BDR's R tools site.



2.) Ensured that I do have Mingw-1.1, whose bin directory is in my path. Here is my path:



C:\rw1051\src\gnuwin32>path

PATH="C:\Rtools\";C:\Perl\bin;"C:\Mingw-1.1\bin";"C:\Rw1051\bin";C:\WINNT\system32;C:\WINNT;"D:\Program Files\Hummingbird\Connectivity\7.00\Accessories\";C:\Mingw-1.1\bin;



3.) Installed ActivePerl 5.6.1.



4.) Set R_HOME to C:\Rw1051



5.) edited MkRules: set only HEADER=C:\mingw-1.1\include



6.) Tried to make make libR.a:



C:\rw1051\src\gnuwin32>make libR.a



dlltool -k --as as --dllname R.dll --def R.exp --output-lib libR.a

make: dlltool: Command not found

make: *** [libR.a] Error 127

Now, dlltool.exe is in mingw-1.1\bin, which is in my path. I 

have no idea why that file is not found!



I tried a google search and found some earlier reports of 

Error 127 and dlltool problems with R, but most seem to 

involve using rcmd INSTALL.



What is my next step here? Have i missed something obvious  in readme.packages? Thanks in advance...



Tom Richards



> -----Original Message-----

> From: ripley at stats.ox.ac.uk [mailto:ripley at stats.ox.ac.uk]

> Sent: Saturday, August 10, 2002 2:57 PM

> To: Richards, Tom

> Cc: r-help at stat.math.ethz.ch

> Subject: Re: [R] R and gcc, yet again

> 

> 

> On Sat, 10 Aug 2002, Richards, Tom wrote:

> 

> > Hello:

> >

> > I have not compiled C code for R since around version 

> 1.1.0, and i see that

> > I am really missing something here. I am using widoes and 

> mingw32 port of

> > gcc. Now, as usual I have gone into Rinternals.h and 

> physically changed all

> > declarations of functions returning SEXP's to

> >

> > __declspec(dllimport) SEXP

> >

> > but I still am getting repeated crashes of R. Do any 

> windows users know

> > what I am forgetting to do here? Thanks in advance.

> 

> Not leaving things alone? There is no need to change the 

> header files if

> you follow exactly the documented procedures.

> 

> -- 

> Brian D. Ripley, ripley at stats.ox.ac.uk

> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/

> University of Oxford, Tel: +44 1865 272861 (self)

> 1 South Parks Road, +44 1865 272860 (secr)

> Oxford OX1 3TG, UK Fax: +44 1865 272595

> 

> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.

> -.-.-.-.-.-.-.-.-

> r-help mailing list -- Read 

> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html

> Send "info", "help", or "[un]subscribe"

> (in the "body", not the subject !) To: 

> r-help-request at stat.math.ethz.ch

> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.

> _._._._._._._._._

> 



---------------------------------

HotJobs, a Yahoo! service - Search Thousands of New Jobs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20020812/5fe488e5/attachment.html


More information about the R-help mailing list