[Rd] Build from Source fails on Loading required package Matrix

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Aug 15 18:06:16 CEST 2012



On 15.08.2012 17:53, Dan Murphy wrote:
> On Wed, Aug 15, 2012 at 8:04 AM, Simon Urbanek
> <simon.urbanek at r-project.org> wrote:
>>
>> Dan,
>>
>> On Aug 15, 2012, at 10:54 AM, Dan Murphy <chiefmurphy at gmail.com> wrote:
>>
>>> Hello:
>>>
>>> I am building R 2.15.1 from source on a Windows 7 machine with the x64
>>> toolset, MixTeX, and InnoSetup per
>>> http://cran.r-project.org/bin/windows/Rtools/. I obtained the source for
>>> 2.15.1 via svn from https://svn.r-project.org/R/branches/R-2-15-branch/.
>>
>> Did you also rsync the recommended packages? They are not in the SVN. If
>> in doubt, use released source tar balls.
>>
>> Cheers,
>> Simon
>>
> Thanks, Simon. I should have mentioned that as well. Yes, I did "make
> rsync-recommended" per Chapter 3 of the manual and that worked without
> error.
>
> I first inadvertently had tried to build the 2.16 version in /trunk
> and got that "undefined exports" error, then switched to the
> /R-2-15-branch when I realized /trunk held the development version.
>
> In between the two svn checkouts, I had tried the source tar ball at
> the link  R-2.15.1.tar.gz. That terminated much sooner in the build,
> which I thought could have resulted from me using 7-Zip on the tar
> ball (lacking a windows version of your tar), so I went back to the
> subversion checkout method.

Please read the R Installation and Administration manual that explains 
how to set up your environment under Windows to build R yourself and 
what tools are needed. Note that a binary is available from CRAN.

Uwe Ligges


>
>>
>>
>>> This is my first try building R from source. The build seems to go far,
>>> then terminates with "undefined exports: .M.classEnv" from the Matrix
>>> package, I believe. Here are the last few lines of the build session
>>>
>>> Creating a generic function for 'qr.resid' from package 'base' in
>>> package
>>> 'Matrix'
>>> Creating a generic function for 'qr.fitted' from package 'base' in
>>> package
>>> 'Matrix'
>>> ** help
>>> *** installing help indices
>>> ** building package indices
>>> Loading required package: Matrix
>>> Error in namespaceExport(ns, exports) : undefined exports: .M.classEnv
>>> Error : require(Matrix) is not TRUE
>>> ERROR: installing package indices failed
>>> * removing 'C:/Users/Dan/Documents/R-2.15.1/library/Matrix'
>>> make[1]: *** [Matrix.ts] Error 1
>>> make: *** [recommended] Error 2
>>>
>>> Perhaps there are special settings I should be making in MkRules.local?
>>> My
>>> only modification was MULTI = 64.
>>>
>>> Thanks in advance for your help.
>>>
>>> Dan Murphy
>>>
>>>        [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> 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