Install readxl pachage not working: installation of package ‘readxl’ had non-zero exit status

Hello there, I have problems installing the readxl package to read in excel files ..
I'm using a Macbook Air 2015 with the latest system and I have the latest version of R-Studio. Thank you so much already for every help!!
I added the code responding to my installing approach down low. :slight_smile:

installing the source package ‘readxl’

trying URL ''
Content type 'application/x-gzip' length 2090383 bytes (2.0 MB)

downloaded 2.0 MB

  • installing source package ‘readxl’ ...
    ** package ‘readxl’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
    ERROR: compilation failed for package ‘readxl’
  • removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/readxl’

The downloaded source packages are in

:heavy_check_mark: Package 'readxl' successfully installed.
Warning message:
In utils::install.packages("readxl", repos = "") :
installation of package ‘readxl’ had non-zero exit status

You might have the latest RStudio version but you have an old R version. RStudio is an IDE for the R programming language but they have independent versions.

Precompiled binaries of the latest package versions are only available for the latest R version, when you use an old R version you are forced to compile from source, but you are missing the required compilers in your system. You can either update your R version to get access to precompiled binaries or install the recommended development tools for macOS systems.

1 Like

I got it, its working!!!

Thank you so much for the fast help!
I wish you all the best!