[R-SIG-Mac] arules installation
Thomas.Chesney at nottingham.ac.uk
Wed Dec 7 14:52:56 CET 2011
Michael - thanks for the reply. So if I install my XCode C complier, then download the latest arules source file which is: arules_1.0-7.tar.gz and then run: install.packages("/Users/thomas/Documents/arules_1.0-7.tar.gz", repos=NULL, type="source") it will just work? (Why will that work with the latest version but the latest .tgz won't?)
What I usually do to install a package is download the .tgz file, double click to unzip it, then copy the resulting folder into Library/Frameworks/R.Framework/Resources/Library. I could install the latest R and then do that for arules, but then I'd have to do the same for dozens of other packages (or could I just copy them to another folder, update R, and then copy them to R.Framework/Resources/Library saying no to any replace file popups?)
From: R. Michael Weylandt <michael.weylandt at gmail.com> [michael.weylandt at gmail.com]
Sent: Wednesday, December 07, 2011 1:36 PM
To: Thomas Chesney
Cc: r-sig-mac at r-project.org
Subject: Re: [R-SIG-Mac] arules installation
You need a C compiler: the usual recommendation is XCode which you can get off your OS X install DVD or download from Apple Developer pages.
Out of curiosity, how did you download the first time? I can still get 2.13.x packages from CRAN though I haven't tried with arules specifically.
On Dec 7, 2011, at 6:05 AM, Thomas Chesney <Thomas.Chesney at nottingham.ac.uk> wrote:
> I sent the following and got the following reply to the R-Help, and then was told I should have sent it here.
> On 07.12.2011 10:54, Thomas Chesney wrote:
>> I'm using R version 2.13.0 (2011-04-13) on Mac OS X and I get the following error message with library(arules):
>> Loading required package: Matrix
>> Loading required package: lattice
>> Attaching package: 'Matrix'
>> The following object(s) are masked from 'package:base':
>> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>> unable to load shared object '/Library/Frameworks/R.framework/Versions/2.13/Resources/library/arules/libs/i386/arules.so':
>> dlopen(/Library/Frameworks/R.framework/Versions/2.13/Resources/library/arules/libs/i386/arules.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/2.14/Resources/lib/libR.dylib
>> Referenced from: /Library/Frameworks/R.framework/Versions/2.13/Resources/library/arules/libs/i386/arules.so
>> Reason: image not found
>> In addition: Warning message:
>> package 'arules' was built under R version 2.14.0
>> Error: package/namespace load failed for 'arules'
> Install an arules binary that was built for your version of R (reather
> than a later one) or install from sources.
> Uwe Ligges
>> The arules CRAN page says: Depends: R (≥ 2.11.0), stats, methods, Matrix (≥ 0.999375-38), all of which I have - anyone know what the problem is? I'm really relunctant to update R as its Package Installer is blocked somehow by our Firewall and updating all the packages I use is a major hassle.
>> Thank you (as always!)
>> PS on a related note, are the package installer port settings available somewhere and I'll send them to IT, ask them to unblock it?
> I tried installing from source as Prof Ligges suggested (as explained here: http://stackoverflow.com/questions/1474081/how-do-i-install-an-r-package-from-source) but got the following error:
> install.packages("/Users/thomas/Documents/arules_1.0-7.tar.gz", repos=NULL, type="source")
> * installing *source* package ‘arules’ ...
> ** libs
> *** arch - i386
> sh: make: command not found
> ERROR: compilation failed for package ‘arules’
> * removing ‘/Library/Frameworks/R.framework/Versions/2.13/Resources/library/arules’
> Warning message:
> In install.packages("/Users/thomas/Documents/arules_1.0-7.tar.gz", :
> installation of package '/Users/thomas/Documents/arules_1.0-7.tar.gz' had non-zero exit status
> Why would installing from source make any difference? Prof Ripley suggested I use arules for R.13.0, which I would if I could find it.
> Has anyone got any advice?
> Thank you,
> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
More information about the R-SIG-Mac