
mysql2 설치시 library 'zstd' not found 문제
mysql2 gem 을 설치하여 잘 쓰다가, 다른 프로젝트에서 전역전인 설정을 건드려 갑자기 서버가 끊겼었습니다... 진짜 심하게 화가 났지만 결국 문제를 찾아냈습니다 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.An error occurred while installing mysql2 (0.5.6), and Bundler cannot continue. 에러들을 전부 찬찬히 잃어보니 결국에는 ld: library 'zstd' not found 라는 오류문구를 찾았습니다. 처음에는 brew install zstd 를 해하고 다시 bundle install 을 했지만 여전히 오류는 같았습니다 zstd 경로를 제대로 찾지를 못해 없다..
mysql2 gem 을 설치하여 잘 쓰다가, 다른 프로젝트에서 전역전인 설정을 건드려 갑자기 서버가 끊겼었습니다... 진짜 심하게 화가 났지만 결국 문제를 찾아냈습니다
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
An error occurred while installing mysql2 (0.5.6), and Bundler cannot continue.

에러들을 전부 찬찬히 잃어보니 결국에는 ld: library 'zstd' not found 라는 오류문구를 찾았습니다.
처음에는 brew install zstd 를 해하고 다시 bundle install 을 했지만 여전히 오류는 같았습니다
zstd 경로를 제대로 찾지를 못해 없다고만 오류가 나왔었네요.
터미널을 켜서
export LIBRARY_PATH=$LIBRARY_PATH:$(brew --prefix zstd)/lib/
이후
bundle install


