Я пытаюсь запустить приложение rails в plesk, но когда я делаю пакетную установку (кнопка на панели администратора), я получаю следующую ошибку, что это может быть?Можно ли запустить консоль командной строки для решения этой ошибки?
Я пытаюсь получить доступ через замазку на сервере, но при выполнении ruby -v он показывает версию ruby, отличную от версии, установленной в администраторе.и при попытке сделать rbenv aglobal он не распознает версию, установленную администратором, кажется, что администратору была установлена одна версия, а в замазке - другая более старая
The git source `git://github.com/plataformatec/devise.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
Warning: the running version of Bundler (1.13.5) is older than the version that created the lockfile (1.17.3). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Fetching gem metadata from https://rubygems.org/.............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Using rake 12.3.2
Using concurrent-ruby 1.1.4
Installing json 1.8.6 with native extensions
Using minitest 5.11.3
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.4.0
Using crass 1.0.4
Using rack 1.6.11
Using mini_mime 1.0.1
Using arel 6.0.4
Installing bcrypt 3.1.12 with native extensions
Installing debug_inspector 0.0.3 with native extensions
Using thor 0.20.3
Installing byebug 10.0.2 with native extensions
Using climate_control 0.2.0
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using orm_adapter 0.5.0
Installing ffi 1.10.0 with native extensions
Using fusioncharts-rails 0.0.2
Installing iconv 1.0.7 with native extensions
Using multi_json 1.13.1
Using kaminari-core 1.1.1
Using bundler 1.13.5
Using mime-types-data 3.2018.0812
Using mimemagic 0.3.3
Using pdf-core 0.7.0
Using ttfunk 1.5.1
Using rb-fsevent 0.10.3
Using rdoc 4.3.0
Using remotipart 1.4.2
Using rubyzip 1.2.2
Using ruby-ole 1.2.12.1
Installing ruby-odbc 0.99999 with native extensions
Using tilt 2.0.9
Installing sqlite3 1.3.13 with native extensions
Installing tiny_tds 2.1.2 with native extensions
Using i18n 0.9.5
Installing tzinfo 1.2.5
Installing nokogiri 1.10.1 with native extensions
Installing rack-test 0.6.3
Installing warden 1.2.7
Installing sprockets 3.7.2
Installing mail 2.7.1
Installing binding_of_caller 0.8.0 with native extensions
Installing select2-rails 4.0.3
Installing terrapin 0.6.0
Installing coffee-script 2.4.1
Installing uglifier 4.1.20
Installing rb-inotify 0.10.0
Installing mime-types 3.2.2
Installing prawn 2.2.2
Installing sdoc 0.4.2
Installing spreadsheet 1.1.8
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/var/www/vhosts/assistpro-adl.com/bi.sfa.assistpro-adl.com/vendor/bundle/ruby/2.3.0/gems/ruby-odbc-0.99999/ext
/opt/plesk/ruby/2.3.7/bin/ruby -r ./siteconf20190130-3668-1ro0es7.rb extconf.rb
checking for version.h... no
checking for sql.h... 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/x86_64-linux-gnu
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/opt/plesk/ruby/2.3.7/bin/$(RUBY_BASE_NAME)
--with-odbc-dir
--without-odbc-dir
--with-odbc-include
--without-odbc-include=${odbc-dir}/include
--with-odbc-lib
--without-odbc-lib=${odbc-dir}/lib/x86_64-linux-gnu
ERROR: sql.h not found
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
/var/www/vhosts/assist.com/bi.sfa.assist.com/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/ruby-odbc-0.99999/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
/var/www/vhosts/assist.com/bi.sfa.assist.com/vendor/bundle/ruby/2.3.0/gems/ruby-odbc-0.99999
for inspection.
Results logged to
/var/www/vhosts/assist.com/bi.sfa.assist.com/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/ruby-odbc-0.99999/gem_make.out
An error occurred while installing ruby-odbc (0.99999), and Bundler cannot
continue.
Make sure that `gem install ruby-odbc -v '0.99999'` succeeds before bundling.
ERROR:rubymng:Command '['/opt/psa/admin/sbin/filemng', 'assistpro', 'exec', '/var/www/vhosts/assist.com/bi.sfa.assist.com', '/bin/bash', '-l', '-c', 'bundle install --path vendor/bundle']' returned non-zero exit status 5