Closed xwangzhaox closed 6 years ago
I have updated mina gem, then it throws some weird errors.
But, bundle exec mina deploy
solved my problem.
I hope it helps.
This looks like your system mysql and mysql gem are not compatible.
usually an update of myslq gem helps.
But not mina issue
My environment is: Centos 6.5 mysql 5.6 ruby 2.2.5(rvm) puma and mina ...
When I execute the ‘mina deploy’ command,I got some error msg as follows ` Installing mysql2 0.4.9 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
In that message we can see that my RVM setting is already in force. My ruby version in RVM is
2.2.5
. But in the tmp directory the created folder is/home/xxx/www/xxx/tmp/build-151350257610402/vendor/bundle/ruby/2.2.0/
. Why is not 2.2.5?When i execute
gem install mysql2 '0.4.9'
in ssh command line, it successed. And the mysql config file/etc/my.cnf
is does exist.Why i got this error? Help me! tks!