您当前的位置: 首页 >  macos

ITKEY_

暂无认证

  • 0浏览

    0关注

    732博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

macOS 安装istats zsh: command not found: istats

ITKEY_ 发布时间:2021-11-16 23:30:00 ,浏览量:0

现象

已经成功安装了istats,但是仍然提示zsh: command not found: istats

sudo gem install iStats
Fetching iStats-1.6.1.gem
Building native extensions. This could take a while...
Successfully
~ » istats
zsh: command not found: istats
解决办法
gem uninstall iStats
gem install iStats --user-install

在环境变量中(vim ~/.zshrc)增加:

#根据你的实际路径修改
export PATH="/Users/itkey/.gem/ruby/3.0.0/bin:$PATH"
source ~/.zshrc

现在在输入istats就可以正常运行了。

参考

https://apple.stackexchange.com/questions/363225/command-istats-gives-bash-istats-command-not-found-after-gem-install-ist

关注
打赏
1665243900
查看更多评论
立即登录/注册

微信扫码登录

0.0448s