Skip to content

R crash on startup in OS X

5 messages · Jordan Thomson, Simon Urbanek, Steve Lianoglou

#
Hello,

I'm having trouble running the latest version of R (2.9.2) in Mac OS X 10.4.11.  Once installed, the program crashes on launch, with the crash log giving the following error:  

Library not loaded: /Library/Frameworks/R.framework/Versions/2.9/Resources/lib/libR.dylib
  Referenced from: /Users/jordythomson/Desktop/All Things Academic/Courses and TA Files/R Workshop/R.app/Contents/MacOS/R
  Reason: image not found


The folder R is trying to access no longer exists.  I had an older version of R there but uninstalled it and deleted the folder some time ago.  My question is how do I get rid of any remnants of the older version of R in my system?  I've read a few posts on this and removed all the folders (R.app, R Framework, R Preferences, etc.) and also run a complete uninstall using Terminal commands but R continues to try and access an outdated home directory.
I've also read section 12.16 of the online FAQ dealing with crashes on startup but the proposed solutions there don't seem to apply (they deal with old/corrupt .Rdata and .Rhistory files, which I don't yet have because I've not been able to run an R session).


Apologies if any of my terminology is unclear (I'm what you might call a basic R user).  Any advice would be more than welcome.


Cheers,

Jordy Thomson
Department of Biological Sciences
Simon Fraser University
#
Hi Jordan,
On Oct 21, 2009, at 3:05 PM, Jordan Thomson wrote:

            
Perhaps I'm misunderstanding you, but I'm not sure how this is possible?

Your new version of R (2.9.2) is installed in precisely that  
folder ... the R.app file in your ../All Things Academic/../.. is  
simply referencing the R "system" installed in /Library/Frameworks/ 
R.framework/....

So, in short, you need /Library/Frameworks/R.framework/Versions/2.9  
and its contents to be there to have a working R on your system.

Does that help?

-steve

--
Steve Lianoglou
Graduate Student: Computational Systems Biology
   |  Memorial Sloan-Kettering Cancer Center
   |  Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact
#
Hi Steve,

Thanks for the quick reply.  The Framework folder and contents are all there at /Library/Frameworks/R.framework/Versions/2.9, including the library file (libR.dylib).  For some reason, however, R still won't load that library and crashes on launch.  

I'm not sure why that would be.  Do you have any other suggestions?

Thanks for your time,

Jordy



----- Original Message -----
From: "Steve Lianoglou" <mailinglist.honeypot at gmail.com>
To: "Jordan Thomson" <jathomso at sfu.ca>
Cc: r-sig-mac at stat.math.ethz.ch
Sent: Wednesday, October 21, 2009 12:20:12 PM GMT -08:00 US/Canada Pacific
Subject: Re: [R-SIG-Mac] R crash on startup in OS X

Hi Jordan,
On Oct 21, 2009, at 3:05 PM, Jordan Thomson wrote:

            
Perhaps I'm misunderstanding you, but I'm not sure how this is possible?

Your new version of R (2.9.2) is installed in precisely that  
folder ... the R.app file in your ../All Things Academic/../.. is  
simply referencing the R "system" installed in /Library/Frameworks/ 
R.framework/....

So, in short, you need /Library/Frameworks/R.framework/Versions/2.9  
and its contents to be there to have a working R on your system.

Does that help?

-steve

--
Steve Lianoglou
Graduate Student: Computational Systems Biology
   |  Memorial Sloan-Kettering Cancer Center
   |  Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact
#
On Oct 21, 2009, at 15:55 , Jordan Thomson wrote:

            
Are you really sure? Run this in Terminal:

file /Library/Frameworks/R.framework/Versions/2.9/Resources/lib/ 
libR.dylib

You should see something like

hagal:urbanek$ file /Library/Frameworks/R.framework/Versions/2.9/ 
Resources/lib/libR.dylib
/Library/Frameworks/R.framework/Versions/2.9/Resources/lib/libR.dylib:  
Mach-O universal binary with 2 architectures
/Library/Frameworks/R.framework/Versions/2.9/Resources/lib/libR.dylib  
(for architecture ppc):	Mach-O dynamically linked shared library ppc
/Library/Frameworks/R.framework/Versions/2.9/Resources/lib/libR.dylib  
(for architecture i386):	Mach-O dynamically linked shared library i386

and just to make sure that all is well you can also try

hagal:urbanek$ file -L /Library/Frameworks/R.framework/R
/Library/Frameworks/R.framework/R: Mach-O universal binary with 2  
architectures
/Library/Frameworks/R.framework/R (for architecture ppc):	Mach-O  
dynamically linked shared library ppc
/Library/Frameworks/R.framework/R (for architecture i386):	Mach-O  
dynamically linked shared library i386

Cheers,
Simon
#
On Oct 21, 2009, at 3:55 PM, Jordan Thomson wrote:

            
Hmm ... so I'm not sure what just happened since it wasn't there  
before (did you reinstall just now or something?).

I see Simon just responded to you, so definitely do what he suggests,  
but it seems something is wonky.

To minimize the back and forths, you might consider trashing the R.app  
you have in your *Academic* folder and reinstalling the R version you  
like from the appropriate *.dmg/*.pkg (eg. the new 2.10 RC is up at r.research.att.com 
  if you're interested in that).

If I recall correctly, the installer should put a new R.app in your / 
Applications folder. You should be able to move that wherever you like  
if you really don't want it there and it should "just work".

-steve
--
Steve Lianoglou
Graduate Student: Computational Systems Biology
   |  Memorial Sloan-Kettering Cancer Center
   |  Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact