简体   繁体   English

如何安装ioreg?

[英]How to install ioreg?

ioreg was on my system, I use to run a program iStats and everything worked fine. ioreg在我的系统上,我用来运行程序iStats,一切正常。 Now for some reason when I run iStats it throws an error that ioreg cannot be found. 现在由于某种原因,当我运行iStats时,它引发了一个错误,即找不到ioreg。 If I run: 如果我运行:

which ioreg
ioreg not found

But if I go to /usr/sbin ioreg is there. 但是,如果我去/ usr / sbin, ioreg就在那里。 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. 听起来您的PATH变量已损坏。

Try running this in Terminal, it will reset your defaults PATH s: 尝试在Terminal中运行此命令,它将重置您的默认PATH

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

Then run which ioreg again. 然后再次运行which ioreg

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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