installation of package ‘gifski’ had non-zero exit status

Hi, everyone, below are the scripts that describe the problem i am facing right now. i had downloaded the lastest version of R and restarted my computer, but it is still not working. Thank you


There is a binary version available but the source version is later:
binary source needs_compilation
gifski 0.8.6 0.8.7 TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Yes
installing the source package ‘gifski’

trying URL ''
Content type 'application/x-gzip' length 12337 bytes (12 KB)

downloaded 12 KB

  • installing source package ‘gifski’ ...
    ** package ‘gifski’ successfully unpacked and MD5 sums checked
    ** using staged installation
    cargo 1.50.0 (f04e7fab7 2021-02-04)
    Using /Users/weiyushi/.cargo/bin/cargo
    ** libs
    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
    ERROR: compilation failed for package ‘gifski’
  • removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/gifski’
    Warning in install.packages :
    installation of package ‘gifski’ had non-zero exit status

The downloaded source packages are in

Yes sometimes works. If it doesn't work on the first attempt, give up and choose No. This is a macOS compiler toolchain problem that is only going to get worse with Big Sur's successors and is already a huge problem on the M1 processor. It's what finally caused me to set aside macOS for Ubuntu.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.