Rails 3-로드 할 파일 없음 — openssl
Rails 서버를 실행할 때 다음 오류가 발생합니다.로드 할 파일이 없습니다 .-- openssl
온라인에서 찾은 해결책을 시도합니다. ~ / .rvm / src / ruby-1.9.2-head / ext / openssl로 이동합니다. ruby extconf.rb를 입력했지만 다음과 같은 결과가 나타납니다.
=== OpenSSL for Ruby configurator ===
=== Checking for system dependent stuff... ===
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for assert.h... yes
=== Checking for required stuff... ===
checking for openssl/ssl.h... no
=== Checking for required stuff failed. ===
Makefile wasn't created. Fix the errors above.
make 나 make install을 사용할 수 없습니다.
rvm pkg install openssl
(이전 형식- rvm package install openssl
)
rvm pkg install iconv
(이전 형식- rvm package install iconv
)
rvm remove 1.9.2
rvm install 1.9.2 -C --with-openssl-dir=$HOME/.rvm/usr,--with-iconv-dir=$HOME/.rvm/usr
http://www.isnull.com.ar/에 대한 크레딧
이 명령 확인 http://rvm.io/packages/openssl/를 - 명심하는 것이 빠른 수정 한 블록 전체가 아니라 페이지입니다.
openssl / net / http 용 라이브러리를 설치하고 다음 코드를 실행하고 openssl과 iconv를 설치해야합니다. 다음 코드는 UBUNTU에서 작동합니다.
sudo apt-get install libopenssl-ruby1.9.1
이것은 루비 1.9.1 용입니다.
sudo apt-get install libopenssl-ruby
루비 1.8.x 용
먼저 openssl 패키지가있는 rvm을 확인하십시오. /usr/local/src/rvm/ruby-1.9.2-p290/으로 이동합니다.
그런 다음 ext / openssl로 이동하십시오.
다음 과 같은 오류를 발견하면 ruby extconf.rb를 입력 하십시오.
enter code here
=== OpenSSL for Ruby configurator ===
=== Checking for system dependent stuff... ===
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for assert.h... yes
=== Checking for required stuff... ===
checking for openssl/ssl.h... no
=== Checking for required stuff failed. ===
Makefile wasn't created. Fix the errors above
그런 다음 apt-get install libssl-dev.Once installed rub ruby extconf.rb를 설치 하십시오 . 이제 openssl이 설치됩니다.
우분투의 경우 다음을 수행했습니다.
apt-get install libssl-dev
cd ruby-1.9(source directory used to install ruby)/ext/openssl
ruby extconf.rb
make
make install
이것은 나를 위해 문제를 해결했습니다.
rvm pkg install openssl
rvm reinstall 1.9.2 --with-openssl-dir=$rvm_path/usr
그리고 루비 버전을 사용중인 버전으로 변경하는 것을 잊지 마십시오. 이전 rvm이있는 경우 처음에도 업데이트해야합니다.
내가 만든
rvm pkg install openssl
rvm reinstall 1.9.3
완료되었습니다!
head 대신 ruby-1.9.2-rc2를 실행하고 싶습니까? 이 문제를 해결할 수 있을지 모르겠지만, 머리 밑으로 달려가는 데 많은 문제가있었습니다.
명령이 다음과 같은지 확인하십시오-rvm install 1.9.2-rc2
레일을 다시 설치해야합니다.
This error means that your Ruby isn’t compiled with openssl. Assuming that you use RVM, these are the steps to follow to fix this issue.
1.Install the openssl package
rvm pkg install openssl
2.Remove the Ruby installation you’re using
rvm remove 1.9.3
3.And finally recompile Ruby with openssl
rvm install 1.9.3 --with-openssl-dir=$HOME/.rvm/usr
4.Everything should be working now. Don’t forget to:
rvm use 1.9.3 --default
ReferenceURL : https://stackoverflow.com/questions/3464098/rails-3-no-such-file-to-load-openssl
'your programing' 카테고리의 다른 글
모듈러스 연산자를 사용할 때 인식 (0) | 2020.12.29 |
---|---|
패턴 일치 숫자가 egrep에서 작동하지 않습니까? (0) | 2020.12.29 |
++ 연산자 스레드가 안전합니까? (0) | 2020.12.29 |
Excel 파일에서 가져올 때 텍스트가 잘렸거나 하나 이상의 문자가 대상 코드 페이지에서 일치하지 않았습니다. (0) | 2020.12.29 |
자바에서 이미지에 텍스트를 추가하는 방법은 무엇입니까? (0) | 2020.12.29 |