한 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를 통해 설치됩니다.
나에게 주어진 디스크의 전체 환경이 다른 컴퓨터에서 동일한 방식으로 작동하지 않는다는 것은 다소 비논리적입니다. 루비는 어떻게 든이 실행되는 하드웨어의 버전에 닿는되어 나타납니다 . 이 가정이 잘못 되었습니까?
상태가 일시적이어야하므로이 디스크를 다른 시스템으로 이동해야 할 수도 있다는 점을 고려할 때, 루비의 작업 버전을 구하는 가장 좋은 방법은 무엇입니까?
여기에서 openssl에서 발생하는 문제를 볼 수 있습니다.
컴퓨터에 설치된 OpenSSL은 일반적으로 Ruby를 설치할 때 설치된 libs에 동적으로 연결됩니다.
오래된 머신은 64 비트가 아닌 32 비트 일 수 있습니다.
여기에서 프로세서 유형을 확인할 수 있습니다.
https://support.apple.com/en-us/HT201948
Short 버전, Core Solo 및 Core Duo는 32 비트, Core 2 Duo 이상은 64 비트입니다.
rbenv 또는 ruby-install을 통해 Ruby를 제거하고 다시 설치하면 문제가 해결되지만 실제로 새 하드웨어에서 하드 드라이브를 부팅하는 경우 Ruby보다 더 많은 문제가 발생하지 않는다는 사실에 조금 놀랐습니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다