-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
newbie question about download and installation #72
Comments
Try installing ruby via brew first: |
I get a similar issue
(Without sudo I get a permission error)
|
@leon1995 I have exactly same errors you got,
then re-open(or open a new terminal session, so that will apply above environment variables). |
btw, if somehow missing the command then copy & paste the code from this GitHub repository for the missing executable file. FYI. |
Thanks for the reply! I already installed homebrew, xcode and ruby (via brew). I just added
to ~/.bash_profile as u mentioned and
did the work. But now it cant find the command istats when I try to use it.
|
hi @leon1995 , |
Works! thanks! |
I am not sure how to paste that ruby code; though I have tried it in Xcode by modifying the command line. But as it turns out, another error occurred as well: — client.js:1:749223 http://127.0.0.1:41416/run/Failed to load resource: the server responded with a status of 500 (Internal Server Error) redraw — client.js:1:734729index-js: – Error: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- osx_stats (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require'from /Library/Ruby/Gems/2.3.0/gems/iStats-1.6.1/lib/iStats.rb:2:in <top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require'from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /Library/Ruby/Gems/2.3.0/gems/iStats-1.6.1/bin/istats:6:in '— client.js:1:749223 Still experiencing error: iStats --help -bash: /usr/local/bin/iStats: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory iStats seems to be installed and running when I typed in: I just cannot seem to be able to have it working on my desktop anymore. Any help/assistance is much appreciated! Thank you. |
@fawnberry obviously you missing bash env. if you are working on make your Übersicht works, then you won't missing those env. ;-) |
I had that checkbox checked, still didn't work. Decided to not use this widget anymore. It worked beautifully up until I did an update. |
@fawnberry does istats work in a terminal? Im not sure what do you mean by trying in xcode and modifying the command line |
I have same issue too, and it was solved just when I update ruby to 2.6. |
I ran into a similar situation. For whatever reason, "sudo gem install" worked to modify Mac's installation of Ruby. Some time after upgrading to Mojave, I ran 'istats' after a period of time in which I hadn't used it, and it complained about which version I was running. It suggested executing 'gem pristine iStats --version 1.5.2'. I did and that broke my installation. At this point, I was getting a permissions error trying to uninstall and reinstall iStats (rightly so, as it's not a good practice to modify Apple's ruby install). Eventually, I just reinstalled ruby using Homebrew and did as suggested (putting ruby at the start of $PATH). This allowed me to reinstall iStats at which point I was able to confirm that particular executable worked. I ran into a new issue where 'which istats' was still pointing to the broken version. To remedy this, I simply added an alias in my bash_profile. 'alias istats='/usr/local/lib/ruby/gems/2.6.0/bin/istats' |
I'm also having trouble installing iStats on my Mac OS X 10.7 (Lion) 2012 Macbook Pro. Is it supported? The following is my output from running from file: gem_make.out
|
I wanted to download your program and use it on my 2011 macbook pro (running High Sierra 10.13.6), but it's not exactly clear to me what I'm supposed to do or in what order in order to get it working. I am VERY new to tinkering around with my mac, new to programming, and new to github, etc so please forgive the ignorance! ANY help or guidance you'd be willing to offer a newbie would be greatly appreciated!
If it helps with context, what I did try downloading the files and running the installation command in a terminal window, but I received the following message:
macbook-pro:Applications a$ sudo gem install iStats
Password:
Fetching: sparkr-0.4.1.gem (100%)
Successfully installed sparkr-0.4.1
Fetching: parseconfig-1.0.8.gem (100%)
Successfully installed parseconfig-1.0.8
Fetching: iStats-1.6.1.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing iStats:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20181107-637-1i81ihm.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/iStats-1.6.1 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/iStats-1.6.1/gem_make.out
If you're not sure how to help get me going or don't have the time, at a minimum I would definitely appreciate it if you could let me know which leftover files/folders from the failed installation are specific to iStats so I can clean them out in the event I can't get the program up and running. Thank you!
The text was updated successfully, but these errors were encountered: