[R] installing package hier.part on Mac OSX

Jari Oksanen jarioksa at sun3.oulu.fi
Thu Feb 10 10:05:37 CET 2005


On Thu, 2005-02-10 at 08:01 +0000, Prof Brian Ripley wrote:
> For MacOS we have
> 
> Binary packages, foo.tgz
> Source packages, foo.tar.gz
> 
> Neither are `zip files' (things created by zip, usually with extension .zip).
> 
> It looks like you have not installed a source package before, and you 
> either do not have the development tools installed or they are not in your 
> path.

In this case probably the tools are missing, starting from 'make'. You
should install the Development Tools / X-Code which come with the MacOS
X installation cd/dvd at least from version 10.3.x. Otherwise you can
get the development tools from http://developer.apple.com/. Moreover,
in this case you need to get a Fortran compiler which does not come with
MacOS. See R for Mac OS X FAQ, section "the Fortran compiler g77 gcc
3.3". 

> 
> That there is no binary version of a package available usually indicates a 
> problem with it on MacOS X, at least on the autobuilder's version of 
> MacOS.
> 
Well, 'hier.part' is younger than the latest entry in Mac binary
packages: there is nothing after Jan 19, 2005. The binary package builds
beautifully in MacOS X. However, it seems to require package 'gtools'
that I can't find in CRAN nor in BioConductor repositories. It seems
that this didn't prevent passing tests to be included at CRAN or
producing Windows binaries. 

Theresa, I can send you a Mac binary if you don't want to see the
trouble of installing X-Code and g77. However, it failed with missing
'gtools' upon loading.

cheers, jari oksanen
> On Wed, 9 Feb 2005, Theresa Talley wrote:
> 
> > Hi-
> > I've been trying to install the hier.part package on
> > my mac (OSX 10.3.7) and it is not working for some
> > reason. I am downloading the package source called :
> > hier.part_1.0.tar.gz.  When I try to auto install from
> > the cran site, I get this message:
> > * Installing *source* package 'hier.part' ...
> > ** libs
> > /Library/Frameworks/R.framework/Resources/bin/SHLIB:
> > line 1: make: command not found
> >
> > And when I try to install from the zip file on my
> > computer, I get this message:
> 
> What precisely did you do here?
> 
> > gzip: stdin: not in gzip format
> > tar: Child returned status 1
> > tar: Error exit delayed from previous errors
> > Error in file(file, "r") : unable to open connection
> > In addition: Warning messages:
> > 1: Installation of package hier.part had non-zero exit
> > status in: install.packages(c("hier.part"), lib =
> > "/Library/Frameworks/R.framework/Resources/library",
> > 2: tar returned non-zero exit code: 512 in: untar(pkg,
> > tmpDir)
> > 3: cannot open file `hier.part_1.0.tar/DESCRIPTION'
> >
> > I've successfully installed other packages (e.g.,
> > vegan, cluster) so am not sure if there is something
> > different about this one or if I’m just being dopey.
> 
> 
> -- 
> 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 272866 (PA)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
> ______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list