I can't load "psyc" on freshly installed Rstduio. Xcode tools are present. Tried mirror repo to no avail.Any help will be appreciated. here is what i get:
> install.packages("psych")
also installing the dependency ‘mnormt’
There is a binary version available but the source version is later:
binary source needs_compilation
mnormt 1.5-7 2.0.0 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) y
trying URL 'https://cran.ms.unimelb.edu.au/bin/macosx/contrib/4.0/psych_1.9.12.31.tgz'
Content type 'application/octet-stream' length 3786330 bytes (3.6 MB)
==================================================
downloaded 3.6 MB
The downloaded binary packages are in
/var/folders/ff/w_06yckn6x5_43_5kz5t0rfc0000gn/T//RtmpdXL9Y1/downloaded_packages
installing the source package ‘mnormt’
trying URL 'https://cran.ms.unimelb.edu.au/src/contrib/mnormt_2.0.0.tar.gz'
Content type 'application/octet-stream' length 48856 bytes (47 KB)
==================================================
downloaded 47 KB
* installing *source* package ‘mnormt’ ...
** package ‘mnormt’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls -fPIC -Wall -g -O2 -c biv-nt.f -o biv-nt.o
make: gfortran: No such file or directory
make: *** [biv-nt.o] Error 1
ERROR: compilation failed for package ‘mnormt’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/mnormt’
Warning in install.packages :
installation of package ‘mnormt’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/ff/w_06yckn6x5_43_5kz5t0rfc0000gn/T/RtmpdXL9Y1/downloaded_packages’