“不存在Java运行时,请求安装”用于Ghidra安装
试图运行Ghidra,这要求我下载Java Runtime and Development Kit(JDK)并将其放在路径上。我提取了JDK并得到了垃圾箱。
但是,我不确定如何执行以下步骤:
- 打开〜/.bashrc,带有您选择的编辑。例如:vi〜/.bashrc
我需要下载vim吗?我尝试在自制的地方输入它,只有在底部插入的东西。当我在其中键入第2步时,它不太有效。
- 在文件末尾,将JDK bin目录添加到路径变量: 导出路径=/bin:$ path
我正在使用MacBook,如果有人可以指导我完成整个过程,这将不胜感激!谢谢 :)
Trying to run Ghidra, which require me to download Java runtime and development kit (JDK) and put it on the path. I extracted the JDK and got the bin.
However, I'm not really sure how to do the following steps:
- Open ~/.bashrc with an editor of your choice. For example: vi ~/.bashrc
Do I need to download vim for this? I tried inputting this in homebrew and got nothing but a INSERT at the bottom. And when I type step 2 in it it didn't work as well.
- At the very end of the file, add the JDK bin directory to the PATH variable:
export PATH=/bin:$PATH
I'm using a Macbook and it would be appreciated if someone can guide me through the process! Thanks :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
典型的Java/JDK安装后,它应该已经在路径上了。
您可以通过打开终端应用程序并输入
java -version
来验证这一点。如果您进行了非标准安装,我建议使用Homebrew安装JDK。
然后,应该没有理由更新您的
〜/.bashrc
文件。关于编辑器 - 使用您喜欢的任何东西。
如果您知道如何使用
vim
,则一定可以尝试 - 应该在MacOS上预装(终端中的vim
)。After a typical installation of Java/JDK it should already be on the path.
You can verify this by opening the Terminal app and typing in
java -version
.If you did a non-standard installation I suggest using homebrew to install the JDK.
Then there should be no reason to update your
~/.bashrc
file.As regards to the editor - use whatever you like.
If you know how to use
vim
, you can definitely try it - it should be preinstalled on macOS (just typevim
in the Terminal).