[Rd] Error in R CMD INSTALL on Windows XP using Rtools28
Gabor Grothendieck
ggrothendieck at gmail.com
Fri Dec 5 22:17:44 CET 2008
Note that there is an Rcmd.bat batch file in http://batchfiles.googlecode.com
which automatically sets all environment variables for you including the
PATH making it unnecessary to set your PATH or any environment
variables.
On Fri, Dec 5, 2008 at 4:06 PM, cstrato <cstrato at aon.at> wrote:
> Dear Duncan
>
> Thank you for this explicit explanation, you are right:
>
> When setting the system variable "Path" (as administrator) in addition to
> setting the user variable "PATH" (as user), now everything works fine.
>
> Interestingly, setting the system variable "Path" on my laptop with Rtools27
> seems not to be necessary.
>
> May I suggest that this could be clarified in "R Installation and
> Administration" since there only the user variable "PATH" is mentioned (as
> far as I see).
>
> Thank you all one more time.
> Best regards
> Christian
>
>
> Duncan Murdoch wrote:
>>
>> cstrato wrote:
>>>
>>> Dear all
>>>
>>> Thank you all for you fast reply.
>>>
>>> As I said, everything on my laptop and Mac is identical, here are my user
>>> defined environment variables:
>>>
>>> HOME: c:\home\Rabbitus
>>> INCLUDE: C:\Programme\Microsoft Visual Studio
>>> 9.0\VC\include;C:\Programme\Microsoft SDKs\Windows\v6.0A\Include
>>> LIB: C:\Programme\Microsoft Visual Studio
>>> 9.0\VC\lib;C:\Programme\Microsoft SDKs\Windows\v6.0A\Lib;C:\root\lib
>>> PATH:
>>> C:\Rtools\bin;C:\Rtools\perl\bin;C:\Rtools\MinGW\bin;C:\Programme\HTML Help
>>> Workshop;C:\Programme\R\R-2.8.0\bin;C:\root\bin;
>>> MSVSPATH: C:\Programme\Microsoft Visual Studio 9.0\VC\bin
>>> ROOTSYS: c:\root
>>> R_LIBS: cd "C:\home\Rabbitus\CRAN"
>>> TMPDIR: c:\home\Rabbitus\temp
>>>
>>
>> I think Brian was right, your PATH is not what is shown above. (That
>> doesn't include the Windows directories, for instance.)
>>
>> Were you running Rcmd INSTALL from a shell? Which shell? What does the
>> shell report as your PATH just before running it?
>> On Windows, the PATH is handled in a fairly complicated way. I believe
>> this description is correct, but it may not apply to all Windows versions:
>>
>> The thing you set from within the Control Panel only applies to the
>> currently running copy of Explorer. Other applications that are currently
>> running (e.g. an existing CMD shell) do not have their path updated.
>>
>> There are both system and user level PATH settings. Explorer combines
>> them by putting the system settings *first*.
>> Within a CMD shell, you can override the PATH completely, just by setting
>> it to a new set of directories.
>>
>> So it looks as though your problem is that your are showing us the user
>> settings for the PATH, but not the system settings, and the system settings
>> are messing you up.
>>
>> Duncan Murdoch
>>>
>>> I have just checked again, all variables are identical on both systems.
>>>
>>> Could there be another reason?
>>> What about the registry setting mentioned by Gabor Grothendieck?
>>>
>>> Best regaards
>>> Christian
>>>
>>>
>>> Prof Brian Ripley wrote:
>>>
>>>>
>>>> This is a PATH error: you must have Rtools/bin before Windows system
>>>> directories in your path. As the R-admin manual tells you explicitly ....
>>>>
>>>> fortune("WTFM") applies.
>>>>
>>>> On Fri, 5 Dec 2008, cstrato wrote:
>>>>
>>>>
>>>>>
>>>>> Dear all
>>>>>
>>>>> When trying to install my package on Windows XP on my Mac, I get the
>>>>> following error:
>>>>>
>>>>> ---------- Making package xps ------------
>>>>> ...
>>>>> ...
>>>>> xpsDict.cxx
>>>>> "C:\Programme\Microsoft Visual Studio 9.0\VC\bin/link" /dll
>>>>> /def:xps.def /out:xps.dll fp10.obj -opt:noref -nologo
>>>>> -include:_G__cpp_setupG__Hist -include:_G__cpp_setupG__Graf1
>>>>> -include:_G__cpp_setupG__G3D -include:_G__cpp_setupG__GPad
>>>>> -include:_G__cpp_setupG__Tree -include:_G__cpp_setupG__Rint
>>>>> -include:_G__cpp_setupG__PostScript -include:_G__cpp_setupG__Matrix
>>>>> -include:_G__cpp_setupG__Physics -include:_G__cpp_setupG__Ged
>>>>> "C:\root/lib/libCore.lib" "C:\root/lib/libCint.lib"
>>>>> "C:\root/lib/libHist.lib" "C:\root/lib/libGraf.lib"
>>>>> "C:\root/lib/libGraf3d.lib" "C:\root/lib/libGpad.lib"
>>>>> "C:\root/lib/libTree.lib" "C:\root/lib/libRint.lib"
>>>>> "C:\root/lib/libPostscript.lib" "C:\root/lib/libMatrix.lib"
>>>>> "C:\root/lib/libPhysics.lib" "C:\root/lib/libNet.lib"
>>>>> "C:\root/lib/libRIO.lib" "C:\root/lib/libMathCore.lib"
>>>>> "C:\root/lib/libGui.lib" "C:\root/lib/libGraf.lib" "C:\root/lib/libGpad.lib"
>>>>> "C:\root/lib/libGed.lib" "C:\root/lib/libTreePlayer.lib"
>>>>> "C:\root/lib/libTreeViewer.lib" *.obj
>>>>> Creating library xps.lib and object xps.exp
>>>>> ... done
>>>>> installing DLL
>>>>> installing R files
>>>>> installing inst files
>>>>> FIND: Parameterformat falsch
>>>>> make[2]: *** [C:/home/Rabbitus/CRAN/xps.Rcheck/xps/inst] Error 2
>>>>> make[1]: *** [all] Error 2
>>>>> make: *** [pkg-xps] Error 2
>>>>> *** Installation of xps failed ***
>>>>>
>>>>>
>>>>> However, when I install my package on my Windows XP laptop, everything
>>>>> is ok:
>>>>>
>>>>> ---------- Making package xps ------------
>>>>> ...
>>>>> ...
>>>>> xpsDict.cxx
>>>>> "C:\Programme\Microsoft Visual Studio 9.0\VC\bin/link" /dll
>>>>> /def:xps.def /out:xps.dll fp10.obj -opt:noref -nologo
>>>>> -include:_G__cpp_setupG__Hist -include:_G__cpp_setupG__Graf1
>>>>> -include:_G__cpp_setupG__G3D -include:_G__cpp_setupG__GPad
>>>>> -include:_G__cpp_setupG__Tree -include:_G__cpp_setupG__Rint
>>>>> -include:_G__cpp_setupG__PostScript -include:_G__cpp_setupG__Matrix
>>>>> -include:_G__cpp_setupG__Physics -include:_G__cpp_setupG__Ged
>>>>> "C:\root/lib/libCore.lib" "C:\root/lib/libCint.lib"
>>>>> "C:\root/lib/libHist.lib" "C:\root/lib/libGraf.lib"
>>>>> "C:\root/lib/libGraf3d.lib" "C:\root/lib/libGpad.lib"
>>>>> "C:\root/lib/libTree.lib" "C:\root/lib/libRint.lib"
>>>>> "C:\root/lib/libPostscript.lib" "C:\root/lib/libMatrix.lib"
>>>>> "C:\root/lib/libPhysics.lib" "C:\root/lib/libNet.lib"
>>>>> "C:\root/lib/libRIO.lib" "C:\root/lib/libMathCore.lib"
>>>>> "C:\root/lib/libGui.lib" "C:\root/lib/libGraf.lib" "C:\root/lib/libGpad.lib"
>>>>> "C:\root/lib/libGed.lib" "C:\root/lib/libTreePlayer.lib"
>>>>> "C:\root/lib/libTreeViewer.lib" *.obj
>>>>> Creating library xps.lib and object xps.exp
>>>>> ... done
>>>>> installing DLL
>>>>> installing R files
>>>>> installing inst files
>>>>> preparing package xps for lazy loading
>>>>> installing man source files
>>>>> installing indices
>>>>> Warning messages:
>>>>> 1: In file.create(f.tg) :
>>>>> kann Datei 'c:/Programme/R/R-2.8.0/doc/html/packages.html' nicht
>>>>> erzeugen. Grund 'Permission denied'
>>>>> 2: In tools:::win.packages.html(.Library) :
>>>>> kann HTML Paketindex nicht aktualisieren
>>>>> installing help
>>>>>
>>>>>>>>
>>>>>>>> Building/Updating help pages for package 'xps'
>>>>>>>>
>>>>>
>>>>> ...
>>>>>
>>>>> To my knowledge I have only made one difference when installing
>>>>> everything necessary to build my package:
>>>>> On my laptop I have installed Rtools27.exe, while on WinXP on my Mac I
>>>>> have installed Rtools28.exe.
>>>>>
>>>>> Do you know what the reason for the error might be?
>>>>>
>>>>> Thank you in advance.
>>>>> Best regards
>>>>> Christian
>>>>> _._._._._._._._._._._._._._._._._._
>>>>> C.h.r.i.s.t.i.a.n S.t.r.a.t.o.w.a
>>>>> V.i.e.n.n.a A.u.s.t.r.i.a
>>>>> e.m.a.i.l: cstrato at aon.at
>>>>> _._._._._._._._._._._._._._._._._._
>>>>>
>>>>> ______________________________________________
>>>>> R-devel at r-project.org mailing list
>>>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>>>
>>>>>
>>>
>>> ______________________________________________
>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>
>>
>>
>>
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
More information about the R-devel
mailing list