iStats
iStats copied to clipboard
I can't install it by all means
OS version:10.15.7
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
xcode-select version 2373.
I have tried to upgrade Ruby,XCODE,Command-Line But it still reports an error
➜ ~ sudo gem install iStats
Building native extensions. This could take a while...
ERROR: Error installing iStats:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.6.0/gems/iStats-1.6.1/ext/osx_stats
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /Library/Ruby/Site/2.6.0 -r ./siteconf20210526-5653-192hz9m.rb extconf.rb
creating Makefile
current directory: /Library/Ruby/Gems/2.6.0/gems/iStats-1.6.1/ext/osx_stats
make DESTDIR\= clean
current directory: /Library/Ruby/Gems/2.6.0/gems/iStats-1.6.1/ext/osx_stats
make DESTDIR\=
make: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/universal-darwin19/ruby/config.h', needed by `smc.o'. Stop.
make failed, exit code 2
Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/iStats-1.6.1 for inspection.
Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/iStats-1.6.1/gem_make.out
https://notes.zhangjie.work/index.php/archives/35/
https://notes.zhangjie.work/index.php/archives/35/
I tried this it wont work:((