Hello all,
I just installed the latest R
and RStudio
using homebrew. Facing problems when installing packages (not only ps
but lot many other packages such as dplyr
, ggplot2
etc. This looks to me as compilation issues but don't know the fix.
> install.packages('ps')
trying URL 'https://cran.rstudio.com/src/contrib/ps_1.3.3.tar.gz'
Content type 'application/x-gzip' length 98973 bytes (96 KB)
==================================================
downloaded 96 KB
* installing *source* package ‘ps’ ...
** package ‘ps’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
/usr/local/opt/llvm/bin/clang -fopenmp -g -O3 -Wall -pedantic -std=gnu99 -mtune=native -pipe -Wall px.c -o px
ld: library not found for -lomp
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [px] Error 1
ERROR: compilation failed for package ‘ps’
* removing ‘/usr/local/Cellar/r/4.0.2_1/lib/R/library/ps’
Warning in install.packages :
installation of package ‘ps’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/32/ft150ftx3jqfmnzq6qdc6j0h0000gn/T/RtmpzxCl7x/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
My system (MacOS 10.15.6) gfortran
and clang
version:
❯ gfortran --version
GNU Fortran (Homebrew GCC 10.1.0) 10.1.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
❯ clang --version
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Can anybody please help me?