ld: library not found for -lzstd while bundle install for mysql2 gem Ruby on macOS Big Sur 11.4 Apple M1

Step 1: confirm you have both openssl and MySQL installed via brew brew install mysql brew install openssl or if you have previous version of openssl try brew reinstall openssl@3 Step 2: Run this on your Rails app to make sure you can get through bundler: gem install mysql2 -v ‘0.5.3’ — –with-opt-dir=$(brew –prefix openssl) … Read more

Why “bundle install” a gem instead of “gem install” for a rails 3 app?

Using bundler instead of gem command to directly install your gems gives you a whole lot of benefits. In this specific case where you suggest using the gem command to install and adding it later to the Gemfile, bundler will resolve all the dependencies for you when you install a gem, which you might have … Read more

Error installing Bundler

Had the same issue and everything is described here: http://railsapps.github.io/openssl-certificate-verify-failed.html tl;dr Recent versions of RVM, the Ruby Version Manager, include a utility to diagnose and resolve errors caused by outdated certificate files. See the article Installing Rails for instructions and advice. The RVM website explains how to install RVM. If you’ve installed RVM, try this: … Read more

What is the purpose of vendor/bundle? Heroku tells me to remove it

If you have the vendor/bundle directory in your project then at some point you must have run the bundle command with the –path vendor/bundle argument. This will load the files for all your project’s gems (listed in Gemfile) into the vendor/bundle directory in your local project rather than to a system gem location. You would … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)