'How to install slather

Getting below error while using sudo gem install slather command. I wanna install slather, how can I do it. Could anyone help me out

Ignoring ffi-1.14.2 because its extensions are not built. Try: gem pristine ffi --version 1.14.2
Building native extensions. This could take a while...
ERROR:  Error installing slather:
    ERROR: Failed to build gem native extension.

    current directory: /Library/Ruby/Gems/2.6.0/gems/racc-1.6.0/ext/racc/cparse
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20220321-16257-ik2blv.rb extconf.rb
checking for rb_block_call()... yes
checking for rb_ary_subseq()... yes
creating Makefile

current directory: /Library/Ruby/Gems/2.6.0/gems/racc-1.6.0/ext/racc/cparse
make "DESTDIR=" clean

current directory: /Library/Ruby/Gems/2.6.0/gems/racc-1.6.0/ext/racc/cparse
make "DESTDIR="
make: *** No rule to make target `"/Applications/Xcode', needed by `cparse.o'.  Stop.

make failed, exit code 2

Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/racc-1.6.0 for inspection.
Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-21/2.6.0/racc-1.6.0/gem_make.out


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source