简体   繁体   中英

How to install ioreg?

ioreg was on my system, I use to run a program iStats and everything worked fine. Now for some reason when I run iStats it throws an error that ioreg cannot be found. If I run:

which ioreg
ioreg not found

But if I go to /usr/sbin ioreg is there. No other programs have seem to broken, I don't have any clue why it wouldn't be able to find it. I would like to just reinstall it or get it working again.

Sounds like your PATH variables are broken.

Try running this in Terminal, it will reset your defaults PATH s:

export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"

Then run which ioreg again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM