2016-10-20 5 views
1

작업 개발 컴퓨터를 Sierra로 업그레이드했으며 더 이상 Capistrano를 사용하여 배포 할 수 없습니다.Sierra-ruby로 업그레이드 한 후 OpenSSL Seg 오류가 발생했습니다. 1.8.7

것은 그것을 아래로 추적,이 문제는 또한 시에라 업그레이드 다른 Mac을 사용하지만 괜찮

/Users/programmer1/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/irb.rb:310: [BUG] Segmentation fault 
ruby 1.8.7 (2013-06-27 patchlevel 374) [i686-darwin16.0.0] 

OpenSSL::PKey::RSA.new 

이 결과에 호출입니다.

나는 Openssl v0.9.8zg에 대해 rvm을 사용하여 루비를 만들었습니다.

rvm reinstall 1.8.7-p374 --autolibs=0 --with-openssl=~/builds/openssl-0.9.8zg 

나는 OpenSSL을 내가 카피 스트라 노를 사용하여 설치된 시스템에 대한 RVM의 루비를 구축하지만, Authlogic이 실패하면 때 SSL에서 설정 오류와 루비 온 레일즈 응용 프로그램에 사용자 로그인.

OpenSSL v0.9.8zg에 대해 rvm의 루비를 빌드하면 Authlogic이 올바르게 작동하지만 원격 서버에 연결할 때 Capistrano seg faults가 발생합니다.

Capistrano를 실행하기 전에 로컬 빌드 OpenSSL v0.9.8에 DYLD_LIBRARY_PATH를 설정했지만 여전히 코어 덤프를 시도했습니다.

Ruby on Rails 2.3.18 (기존 응용 프로그램). 루비 1.8.7-p374 OS X 시에라

아이디어를 진행하는 중입니다.

업데이트 :

otool -L /Users/programmer1/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/i686-darwin16.0.0/openssl.bundle 

/Users/programmer1/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/i686-darwin16.0.0/openssl.bundle: 
/Users/programmer1/.rvm/rubies/ruby-1.8.7-p374/lib/libruby.dylib (compatibility version 1.8.0, current version 1.8.7) 
/opt/local/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) 
/opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) 
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.0.0) 
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) 

루비는 항상 libssl1.0.0 내가 SSL의 0.9.7에 대해하시기 바랍니다 링크 RVM을 알 수있는 방법 결코 0.9.7

를 사용하고 있음을 보여줍니다?

답변

0

나는 내 자신의 문제에 대한 해결책을 자신에게 그리고 앞으로이 문제가있는 다른 사람에게 더 많이 게시하고 있습니다.

./config darwin64-x86_64-cc shared enable-ec_nistp_64_gcc_128 no-ssl2 no-ssl3 no-comp --openssldir=/usr/local/ssl/macos-x86_64 

다음 통해 ruby1.8.7 재설치 (https://wiki.openssl.org/index.php/Compilation_and_Installation#OS_X 참조)

OpenSSL을 (0.9.8)이 OpenSSL에 구성된 I 32 비트하지 64

컴파일 된 것 같습니다 rvm

rvm reinstall 1.8.7-p374 --autolibs=0 --with-openssl --with-opt-dir=/usr/local/ssl/macos-x86_64 

로드 된 버전 확인

otool -L /Users/programmer1/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/i686-darwin16.0.0/openssl.bundle 
관련 문제