Chris911 / iStats

Ruby gem for your mac stats
http://chris911.github.io/iStats/
MIT License
2.41k stars 170 forks source link

I can't install it by all means #106

Closed LeXwDeX closed 5 months ago

LeXwDeX commented 3 years ago

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
ChiehJang commented 3 years ago

https://notes.zhangjie.work/index.php/archives/35/

haassttee commented 3 years ago

https://notes.zhangjie.work/index.php/archives/35/

I tried this it wont work:((

sunnieboi commented 8 months ago

this page isnt up anymore... getting the same error when installing with both commands suggested, Id like to merge this with another stats bar but if I cant get this to work I'm back at the drawing board. system info macOS 12.7.4 ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.x86_64-darwin21]

joe105598055 commented 5 months ago

Try to update XCode. It works for me.