0
Follow
0
View

sass fails to compile after mac upgrade

1234567891 未验证用户
2023-02-28 02:19

the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > this error message when installing the gem is compiled native extensions error caused by, This may be due to a lack of necessary libraries or header files. According to the error message, you will need to install the development tools before compiling native extensions. You can try to install the development tool by running the following command:

xcode-select --install

If you have installed the Xcode development tool and are still experiencing this problem, you can try updating the Xcode development tool or run the following command to update the Xcode development tool path:

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

If you have updated the Xcode development tool and are still experiencing problems, check the mkmf.log file for more detailed error information. You can open mkmf.log by running the following command:

less /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-21/2.6.0/ffi-1.15.5/mkmf.log

When viewing the mkmf.log file, you can search for keywords such as error, warning, and fatal to determine the cause of the compilation error. If you still can't fix the problem, try using a tool like RVM or rbenv to install Ruby to avoid affecting your system environment.