How to solve Gem::Ext::BuildError: ERROR: Failed to build gem native extension. Question
I'm trying to install the Q&A platform using :
CREATE USER root@bimberspot IDENTIFIED BY '.....';
GRANT ALL ON qpixel_dev.* TO root@bimberspot;
GRANT ALL ON qpixel_test.* TO root@bimberspot;
GRANT ALL ON qpixel.* TO root@bimberspot;
then I run : bundle install
output :
domain name bimberspot.com, using vps ubuntu.
2 answers
As the error message says, you can re-run the installation for that single gem to get more detail about the error:
gem install mysql2
Read the log and any error messages carefully, as they will contain information about what's wrong.
As I mentioned in a comment, you will need various dependencies installed:
sudo apt install mysql-server mysql-client libmysqlclient-dev
1 comment thread
I think my problem is my config/database.yml : check :
default: &default adapter: mysql2 encoding: utf8mb4 collation: utf8mb4_unicode_ci host: 127.0.0.1 port: 3306 Change these credentials to match your own environment username: root password: µµµµµµµ
development: <<: *default database: qpixel_dev
test: <<: *default database: qpixel_test
production: <<: *default`
'
my information domain name: bimberspot.com Ip: 104.238.145.139 Port 22 any suggestions
1 comment thread