Question: Cannot install ANY PACKAGE in R (MAC OS Mojave)
0
gravatar for lucatucciarone
7 months ago by
lucatucciarone50 wrote:

Hello guys! Unfortunatelu i am not able to install ANY package in Rstudio. R is the last version (3.5.1 i Believe) Any advice? That's the error!

ld: library not found for -lintl
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [sourcetools.so] Error 1
ERROR: compilation failed for package ‘sourcetools’
* removing ‘/usr/local/lib/R/3.5/site-library/sourcetools’
R software error • 3.4k views
ADD COMMENTlink modified 6 months ago • written 7 months ago by lucatucciarone50
1

Have you installed Xcode and developer tools? It looks like that particular library may be part of gettext which you will need to install.

ADD REPLYlink written 7 months ago by genomax67k

I installed Xcode but I don't think I installed the developer tools. Could you link it please?

ADD REPLYlink written 6 months ago by lucatucciarone50

Search using google on how to install command line developer tools. You also need to install a particular library besides these tools.

ADD REPLYlink modified 6 months ago • written 6 months ago by genomax67k

They just say to install Xcode (and I did) I cannot find any particular reference with what you say!

ADD REPLYlink written 6 months ago by lucatucciarone50
2
gravatar for lucatucciarone
6 months ago by
lucatucciarone50 wrote:

SOLVED!!!! I followed this guide here: https://github.com/adamhsparks/setup_macOS_for_R

Suggestion, if during the makevar manipulation you are not able to modify it, use nano in sudo:

sudo nano ~/.R/Makevars

ADD COMMENTlink written 6 months ago by lucatucciarone50
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 794 users visited in the last hour