Ruby fails to start when switching bootable HD from one machine to other -
having problem 1 macbook pro (circa 2011), swap hard disk macbook pro (circa 2008).
firing terminal launch rails application server rails s, server fails launch error
you may have encountered bug in ruby interpreter or extension libraries. bug reports welcome. details: http://www.ruby-lang.org/bugreport.html right after rails s command:
/users/maneuser/.rbenv/versions/2.3.4/lib/ruby/2.3.0/x86_64-darwin13/openssl.bundle: [bug] illegal instruction @ 0x0000011069880a ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-darwin13] -- crash report log information -------------------------------------------- see crash report log file under 1 of following: * ~/library/logs/crashreporter * /library/logs/crashreporter * ~/library/logs/diagnosticreports * /library/logs/diagnosticreports more details. don't forget include 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 @ 0x0000010dd2480a ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-darwin13] ruby installed via rbenv.
to me rather illogical entire environment on given disk not behave same way on computer. appears ruby somehow tethered version of hardware on running. assumption mistaken?
what best way proceed obtain working versions of ruby, considering disk may need moved machine, condition should temporary?
you can see issue coming openssl here.
whatever openssl installed on computer dynamically linked installed libs, @ time install ruby.
machines old may 32-bit instead of 64-bit.
you can check processor type here:
https://support.apple.com/en-us/ht201948
short version, core solo , core duo 32-bit, core 2 duo , later 64-bit.
removing , reinstalling ruby through rbenv or ruby-install should fix issue, if indeed booting hard drive on new hardware, i'm bit surprised aren't having lot more trouble ruby.
Comments
Post a Comment