Cannot install ANY PACKAGE in R (MAC OS Mojave)
1
0
Entering edit mode
6.1 years ago

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 • 7.8k views
ADD COMMENT
1
Entering edit mode

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 REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
2
Entering edit mode
6.1 years ago

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 COMMENT

Login before adding your answer.

Traffic: 1178 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6