0

I need to setup ruby on rails with MySQL

I already have installed MYSQL

when I do Bundle install it shows following error.

Fetching mysql2 0.3.21
Installing mysql2 0.3.21 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

I am using Cent-os 8

anyone can help

Thanks

Qiniso
  • 2,587
  • 1
  • 24
  • 30
Ronak Bhatt
  • 113
  • 1
  • 2
  • 14
  • 1
    You're going to need to give more detail than that. Usually it tells you about where to look for a more detailed error report. – tadman Nov 13 '19 at 19:05

1 Answers1

0

Run first this command gem 'mysql2', '~> 0.3.21' in terminal and when finish then try bundle again

Nezir
  • 6,727
  • 12
  • 54
  • 78