Steve_Friedman at nps.gov
2010-May-10 12:24 UTC
[R] Installing randomForest on Ubuntu Errors
Hello, I've tried to install randomForest on a Ubuntu 8.04 Hardy Heron system. I've repeatedly rec'd the error:> install.packages("randomForest", dependencies = TRUE)ERROR: compiliation failed for package 'randomForest' ** Removing '/home/admuser/R/i486-pc-linux-gnu-library/2.6/randomForest' The downloaded packages are in /tmp/RtmpkDsmTK/downloaded_packages Warning message: In install.packages("randomForest"", dependencies = TRUE) : installation of package 'randomForest' had a non-zero exit status>The package loads correctly on my windows box, but not on the linux side. Is this package available for Ubuntu Linux, if so what should I do to install it? Thanks Steve Steve Friedman Ph. D. Spatial Statistical Analyst Everglades and Dry Tortugas National Park 950 N Krome Ave (3rd Floor) Homestead, Florida 33034 Steve_Friedman at nps.gov Office (305) 224 - 4282 Fax (305) 224 - 4147
I don't know much about how permissions are managed under ubuntu, but you can try a couple of things: - Dirk had worked very hard at automating building of CRAN packages for Debian (from which Ubuntu is based). I believe randomForest is among one of those available. I'm not sure if you need to set up special respository, but the idea is that you should be able to install R packages via apt-get. - Try installing in your home directory and see if that works: Make a directory under your home directory, e.g., called "Rlibs". Then in R, do install.packages("randomForest", lib.loc="~/Rlibs", depend=TRUE). If that works, then your original problem is likely caused by permission. Andy From: Steve_Friedman at nps.gov> > Hello, > > I've tried to install randomForest on a Ubuntu 8.04 Hardy > Heron system. > > I've repeatedly rec'd the error: > > > install.packages("randomForest", dependencies = TRUE) > > ERROR: compiliation failed for package 'randomForest' > ** Removing > '/home/admuser/R/i486-pc-linux-gnu-library/2.6/randomForest' > > The downloaded packages are in > /tmp/RtmpkDsmTK/downloaded_packages > Warning message: > In install.packages("randomForest"", dependencies = TRUE) : > installation of package 'randomForest' had a non-zero exit status > > > > > The package loads correctly on my windows box, but not on the > linux side. > > Is this package available for Ubuntu Linux, if so what should > I do to install it? > > Thanks > > Steve > > > Steve Friedman Ph. D. > Spatial Statistical Analyst > Everglades and Dry Tortugas National Park 950 N Krome Ave > (3rd Floor) Homestead, Florida 33034 > > Steve_Friedman at nps.gov > Office (305) 224 - 4282 > Fax (305) 224 - 4147 > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >Notice: This e-mail message, together with any attachme...{{dropped:11}}
Steve, The list r-sig-debian is a more appropriate forum for this question as it is dedicated to R on Debian / Ubuntu. On 10 May 2010 at 08:24, Steve_Friedman at nps.gov wrote: | | Hello, | | I've tried to install randomForest on a Ubuntu 8.04 Hardy Heron system. | | I've repeatedly rec'd the error: | | > install.packages("randomForest", dependencies = TRUE) | | ERROR: compiliation failed for package 'randomForest' | ** Removing '/home/admuser/R/i486-pc-linux-gnu-library/2.6/randomForest' Can you produce the actual error? Ie why did install.packages fail? What happens when you down the source .tar.gz and try sudo R CMD INSTALL randomForest_*.tar.gz instead? Many of us happily run and install numerous packages from CRAN on Debian and/or Ubuntu and I am sure we can help out, but it would be best if you came over to r-sig-debian (and you need to subscribe first). Hth, Dirk | The downloaded packages are in | /tmp/RtmpkDsmTK/downloaded_packages | Warning message: | In install.packages("randomForest"", dependencies = TRUE) : | installation of package 'randomForest' had a non-zero exit status | | > | | The package loads correctly on my windows box, but not on the linux side. | | Is this package available for Ubuntu Linux, if so what should I do to | install it? | | Thanks | | Steve | | | Steve Friedman Ph. D. | Spatial Statistical Analyst | Everglades and Dry Tortugas National Park | 950 N Krome Ave (3rd Floor) | Homestead, Florida 33034 | | Steve_Friedman at nps.gov | Office (305) 224 - 4282 | Fax (305) 224 - 4147 | | ______________________________________________ | R-help at r-project.org mailing list | https://stat.ethz.ch/mailman/listinfo/r-help | PLEASE do read the posting guide http://www.R-project.org/posting-guide.html | and provide commented, minimal, self-contained, reproducible code. -- Regards, Dirk