Ruby
0
Вклад в тег
apt install mariadb-server
apt install mysql-server
apt install ruby-full
gem install rails
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
current directory: /usr/share/rvm/gems/ruby-2.6.3/gems/mysql-2.9.1/ext/mysql_api
/usr/share/rvm/rubies/ruby-2.6.3/bin/ruby -I /usr/share/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0 -r ./siteconf20191211-4210-8d232p.rb extconf.rb
checking for mysql_query() in -lmysqlclient... no
checking for -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/share/rvm/rubies/ruby-2.6.3/bin/$(RUBY_BASE_NAME)
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
--without-socketlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-nsllib
--without-nsllib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mygcclib
--without-mygcclib
--with-mysqlclientlib
--without-mysqlclientlib
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/usr/share/rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/mysql-2.9.1/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /usr/share/rvm/gems/ruby-2.6.3/gems/mysql-2.9.1 for inspection.
Results logged to /usr/share/rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/mysql-2.9.1/gem_make.out
apt update
apt install mc
apt install gpg
apt install mysql-server
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
apt-get install software-properties-common
apt-add-repository -y ppa:rael-gc/rvm
apt-get update
apt-get install rvm
reboot
rvm install ruby
apt install libmysqlclient-dev
gem install mysql2