ruby-on-rails - Error Running IRB from Terminal on Mac - Can't find gem
问题描述
When I type irb into terminal all I get is this:
Traceback (most recent call last):
2: from /usr/local/opt/ruby/bin/irb:23:in `<main>'
1: from /usr/local/lib/ruby/site_ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
/usr/local/lib/ruby/site_ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': can't find gem irb (>= 0.a) with executable irb (Gem::GemNotFoundException)
I think it might be something to do with the gem library or version but can't figure it out. I am new to this and don't want to further mess things up, any help would be greatly appreciated! Thanks in advance!
解决方案
推荐阅读
- qt - 如何设置 qml TreeView 指示器的颜色
- jquery - 将 keydown 事件绑定到 ("ENTER") 键不会发生
- powershell - 加载带有函数的脚本时,PowerShell 会话已终止
- r - 计算聚合数据的滞后
- vbscript - 删除 CSV 文件中的重复数据
- vb.net - 有没有办法单击一个按钮并出现 2 个不同的响应?
- python - 如何关闭日志缓冲区以使用 python 命令行工具实时获取日志?
- hana - 无法在 Eclipse Oxygen 中安装 SAP HANA 开发工具
- java - 接受 NULL 值并在 SQLite Java 中插入
- css - 将 css 应用于 Django 为 textarea 生成的表单对象