Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

549
Visualizações
Ruby on rails warning "ruby is loading libcrypto in an unsafe way"

When i run rails commands on the terminal like creating a model, this is the error I get:

WARNING: /Users/my_mac_username/.rvm/rubies/ruby-2.5.3/bin/ruby is loading libcrypto in an unsafe way

[1] 5396 abort bin/rails g model ModelName attribute_1:string attribute_2:integer

My mac is running big sur,

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

I ended up solving the same issue using information from this thread: https://giters.com/se3000/ruby-eth/issues/47

The solution which worked out of the box for me, on an M1 Mac, was to use the following:

sudo ln -s $(brew --prefix openssl)/lib/libcrypto.dylib /usr/local/lib/
sudo ln -s $(brew --prefix openssl)/lib/libssl.dylib  /usr/local/lib

This is definitely a dylib issue, as @tbraden pointed out.

over 4 years ago · Santiago Trujillo Relatório

0

This is just a warning not a fatal error. On mac you can open the Console program (spotlight search Console) and look for the ruby crash log.

For me it is error on invalid dylib load, which can be solved by creating the symlink following this thread https://developer.apple.com/forums/thread/119429.

over 4 years ago · Santiago Trujillo Relatório

0

this one will work if you have latest version of libssl

However if you have 1.1 version, you need to run the following

sudo ln -s $(brew --prefix openssl@1.1)/lib/libcrypto.dylib /usr/local/lib/
sudo ln -s $(brew --prefix openssl@1.1)/lib/libssl.dylib  /usr/local/lib

Also before running any command you can verify to which version it points on current moment

ls -la /usr/local/lib/libcrypto.dylib
lrwxr-xr-x  1 root  admin  46 Mar  3 14:27 /usr/local/lib/libcrypto.dylib -> /usr/local/opt/openssl@1.1/lib/libcrypto.dylib

ls -la /usr/local/lib/libssl.dylib
lrwxr-xr-x  1 root  admin  43 Mar  3 14:27 /usr/local/lib/libssl.dylib -> /usr/local/opt/openssl@1.1/lib/libssl.dylib
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda