【发布时间】:2017-08-21 09:00:42
【问题描述】:
一台 Macbook Pro(大约 2011 年)出现问题,我将硬盘换成另一台 Macbook Pro(大约 2008 年)。
启动终端以启动rails应用服务器rails s,服务器启动失败并出现错误
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
在rails s 命令之后:
/Users/maneuser/.rbenv/versions/2.3.4/lib/ruby/2.3.0/x86_64-darwin13/openssl.bundle:
[BUG] Illegal instruction at 0x0000011069880a
ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-darwin13]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
-- Control frame information -----------------------------------------------
c:0031 p:-17569493279562 s:0115 e:000114 TOP [FINISH]
c:0030 p:---- s:0113 e:000112 CFUNC :require
c:0029 p:0008 s:0109 e:000108 TOP /Users/maneuser/.rbenv/versions/2.3.4/lib/ruby/2.3.0/openssl.rb:13 [FINISH]
c:0028 p:---- s:0107 e:000106 CFUNC :require
c:0027 p:0010 s:0103 e:000102 TOP /Users/maneuser/.rbenv/versions/2.3.4/lib/ruby/2.3.0/securerandom./Users/maneuser/.rbenv/versions/2.3.4/lib/ruby/2.3.0/x86_64-darwin13/openssl.bundle: [BUG] Illegal instruction at 0x0000010dd2480a
ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-darwin13]
Ruby 是通过 rbenv 安装的。
对我来说,给定磁盘上的整个环境在另一台计算机上的行为方式不同是相当不合逻辑的。 似乎 ruby 以某种方式与运行它的硬件版本相关联。这个假设是错误的吗?
考虑到这个磁盘可能还需要移动到另一台机器上,因为这种情况应该是暂时的,所以继续获得工作版本的 ruby 的最佳方法是什么?
【问题讨论】:
-
我不明白“不,我不明白”。这是“红宝石被硬件束缚”的答案吗?
标签: ruby-on-rails ruby osx-mavericks rbenv