Comments (5)
估计是版本太低了, 有些依赖库要求的版本达不到
from courseselect.
from courseselect.
估计是版本太低了, 有些依赖库要求的版本达不到
下面是详细的数据,可以给个思路怎么修复吗?
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.5.3
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Fetching rake 11.2.2
Fetching i18n 0.7.0
Fetching json 1.8.3
Installing i18n 0.7.0
Installing json 1.8.3 with native extensions
Installing rake 11.2.2
Fetching minitest 5.9.0
Fetching thread_safe 0.3.5
Installing minitest 5.9.0
Installing thread_safe 0.3.5
Fetching builder 3.2.2
Fetching erubis 2.7.0
Installing builder 3.2.2
Installing erubis 2.7.0
Fetching mini_portile2 2.1.0
Installing mini_portile2 2.1.0
Fetching pkg-config 1.1.7
Installing pkg-config 1.1.7
Fetching rack 1.6.4
Installing rack 1.6.4
Fetching mime-types-data 3.2016.0521
Installing mime-types-data 3.2016.0521
Fetching arel 6.0.3
Installing arel 6.0.3
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching htmlentities 4.3.4
Installing htmlentities 4.3.4
Fetching rubyzip 1.1.7
Installing rubyzip 1.1.7
Fetching bcrypt 3.1.11
Installing bcrypt 3.1.11 with native extensions
Fetching sass 3.4.22
Installing sass 3.4.22
Fetching will_paginate 3.1.6
Installing will_paginate 3.1.6
Using bundler 1.15.2
Fetching climate_control 0.2.0
Installing climate_control 0.2.0
Fetching coderay 1.1.2
Installing coderay 1.1.2
Fetching coffee-script-source 1.10.0
Installing coffee-script-source 1.10.0
Fetching thor 0.19.1
Installing thor 0.19.1
Fetching concurrent-ruby 1.0.2
Installing concurrent-ruby 1.0.2
Fetching tilt 2.0.5
Installing tilt 2.0.5
Fetching multi_json 1.12.1
Installing multi_json 1.12.1
Fetching method_source 0.9.0
Installing method_source 0.9.0
Fetching mimemagic 0.3.2
Fetching nested_form 0.3.2
Installing mimemagic 0.3.2
Installing nested_form 0.3.2
Fetching request_store 1.3.2
Installing request_store 1.3.2
Fetching pg 0.18.4
Installing pg 0.18.4 with native extensions
Fetching rails_serve_static_assets 0.0.5
Installing rails_serve_static_assets 0.0.5
Fetching rails_stdout_logging 0.0.5
Installing rails_stdout_logging 0.0.5
Fetching remotipart 1.2.1
Installing remotipart 1.2.1
Fetching safe_yaml 1.0.4
Installing safe_yaml 1.0.4
Fetching ruby-ole 1.2.12.1
Fetching turbolinks-source 5.0.0
Installing ruby-ole 1.2.12.1
Installing turbolinks-source 5.0.0
Fetching faker 1.6.3
Fetching tzinfo 1.2.2
Installing tzinfo 1.2.2
Installing faker 1.6.3
Fetching nokogiri 1.6.8
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Fetching mime-types 3.1
Installing mime-types 3.1
Installing nokogiri 1.6.8 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/tmp/build_b6fddf20ce13b4936c64cf127118bbfd/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
/tmp/build_b6fddf20ce13b4936c64cf127118bbfd/vendor/ruby-2.5.3/bin/ruby -r
./siteconf20190308-225-1r6upvz.rb extconf.rb
creating Makefile
current directory:
/tmp/build_b6fddf20ce13b4936c64cf127118bbfd/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR=" clean
current directory:
/tmp/build_b6fddf20ce13b4936c64cf127118bbfd/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
generator.c: In function ‘generate_json’:
generator.c:861:25: error: ‘rb_cFixnum’ undeclared (first use in this function);
did you mean ‘mFixnum’?
} else if (klass == rb_cFixnum) {
^~~~~~~~~~
mFixnum
generator.c:861:25: note: each undeclared identifier is reported only once for
each function it appears in
generator.c:863:25: error: ‘rb_cBignum’ undeclared (first use in this function);
did you mean ‘rb_cFixnum’?
} else if (klass == rb_cBignum) {
^~~~~~~~~~
rb_cFixnum
generator.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
Makefile:241: recipe for target 'generator.o' failed
make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in
/tmp/build_b6fddf20ce13b4936c64cf127118bbfd/vendor/bundle/ruby/2.5.0/gems/json-1.8.3
for inspection.
Results logged to
/tmp/build_b6fddf20ce13b4936c64cf127118bbfd/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/json-1.8.3/gem_make.out
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
In Gemfile:
rails_admin was resolved to 0.8.1, which depends on
rails was resolved to 4.2.5.2, which depends on
actionmailer was resolved to 4.2.5.2, which depends on
actionpack was resolved to 4.2.5.2, which depends on
actionview was resolved to 4.2.5.2, which depends on
rails-dom-testing was resolved to 1.0.7, which depends on
rails-deprecated_sanitizer was resolved to 1.0.3, which depends on
activesupport was resolved to 4.2.5.2, which depends on
json
Bundler Output: Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Fetching rake 11.2.2
Fetching i18n 0.7.0
Fetching json 1.8.3
Installing i18n 0.7.0
Installing json 1.8.3 with native extensions
Installing rake 11.2.2
Fetching minitest 5.9.0
Fetching thread_safe 0.3.5
Installing minitest 5.9.0
Installing thread_safe 0.3.5
Fetching builder 3.2.2
Fetching erubis 2.7.0
Installing builder 3.2.2
Installing erubis 2.7.0
Fetching mini_portile2 2.1.0
Installing mini_portile2 2.1.0
Fetching pkg-config 1.1.7
Installing pkg-config 1.1.7
Fetching rack 1.6.4
Installing rack 1.6.4
Fetching mime-types-data 3.2016.0521
Installing mime-types-data 3.2016.0521
Fetching arel 6.0.3
Installing arel 6.0.3
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching htmlentities 4.3.4
Installing htmlentities 4.3.4
Fetching rubyzip 1.1.7
Installing rubyzip 1.1.7
Fetching bcrypt 3.1.11
Installing bcrypt 3.1.11 with native extensions
Fetching sass 3.4.22
Installing sass 3.4.22
Fetching will_paginate 3.1.6
Installing will_paginate 3.1.6
Using bundler 1.15.2
Fetching climate_control 0.2.0
Installing climate_control 0.2.0
Fetching coderay 1.1.2
Installing coderay 1.1.2
Fetching coffee-script-source 1.10.0
Installing coffee-script-source 1.10.0
Fetching thor 0.19.1
Installing thor 0.19.1
Fetching concurrent-ruby 1.0.2
Installing concurrent-ruby 1.0.2
Fetching tilt 2.0.5
Installing tilt 2.0.5
Fetching multi_json 1.12.1
Installing multi_json 1.12.1
Fetching method_source 0.9.0
Installing method_source 0.9.0
Fetching mimemagic 0.3.2
Fetching nested_form 0.3.2
Installing mimemagic 0.3.2
Installing nested_form 0.3.2
Fetching request_store 1.3.2
Installing request_store 1.3.2
Fetching pg 0.18.4
Installing pg 0.18.4 with native extensions
Fetching rails_serve_static_assets 0.0.5
Installing rails_serve_static_assets 0.0.5
Fetching rails_stdout_logging 0.0.5
Installing rails_stdout_logging 0.0.5
Fetching remotipart 1.2.1
Installing remotipart 1.2.1
Fetching safe_yaml 1.0.4
Installing safe_yaml 1.0.4
Fetching ruby-ole 1.2.12.1
Fetching turbolinks-source 5.0.0
Installing ruby-ole 1.2.12.1
Installing turbolinks-source 5.0.0
Fetching faker 1.6.3
Fetching tzinfo 1.2.2
Installing tzinfo 1.2.2
Installing faker 1.6.3
Fetching nokogiri 1.6.8
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Fetching mime-types 3.1
Installing mime-types 3.1
Installing nokogiri 1.6.8 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/tmp/build_b6fddf20ce13b4936c64cf127118bbfd/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
/tmp/build_b6fddf20ce13b4936c64cf127118bbfd/vendor/ruby-2.5.3/bin/ruby -r
./siteconf20190308-225-1r6upvz.rb extconf.rb
creating Makefile
current directory:
/tmp/build_b6fddf20ce13b4936c64cf127118bbfd/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR=" clean
current directory:
/tmp/build_b6fddf20ce13b4936c64cf127118bbfd/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
generator.c: In function ‘generate_json’:
generator.c:861:25: error: ‘rb_cFixnum’ undeclared (first use in this function);
did you mean ‘mFixnum’?
} else if (klass == rb_cFixnum) {
^~~~~~~~~~
mFixnum
generator.c:861:25: note: each undeclared identifier is reported only once for
each function it appears in
generator.c:863:25: error: ‘rb_cBignum’ undeclared (first use in this function);
did you mean ‘rb_cFixnum’?
} else if (klass == rb_cBignum) {
^~~~~~~~~~
rb_cFixnum
generator.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
Makefile:241: recipe for target 'generator.o' failed
make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in
/tmp/build_b6fddf20ce13b4936c64cf127118bbfd/vendor/bundle/ruby/2.5.0/gems/json-1.8.3
for inspection.
Results logged to
/tmp/build_b6fddf20ce13b4936c64cf127118bbfd/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/json-1.8.3/gem_make.out
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
In Gemfile:
rails_admin was resolved to 0.8.1, which depends on
rails was resolved to 4.2.5.2, which depends on
actionmailer was resolved to 4.2.5.2, which depends on
actionpack was resolved to 4.2.5.2, which depends on
actionview was resolved to 4.2.5.2, which depends on
rails-dom-testing was resolved to 1.0.7, which depends on
rails-deprecated_sanitizer was resolved to 1.0.3, which depends on
activesupport was resolved to 4.2.5.2, which depends on
json
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app.
! Push failed
from courseselect.
首先检查你的ruby版本, 用rvm把你的ruby版本升级到最新, 然后选一个高一点的rails版本, 修改gem文件CourseSelect/Gemfile,
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '5.x.x.x'
然后运行bundle install,让bundle自动装相应的rails版本, 也可以直接用gem装
https://github.com/PENGZhaoqing/CourseSelect/wiki/FAQ-of-installation
from courseselect.
ruby v显示信息如下:
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
大神啥时候有空可不可以直接登陆我账号看看原因
from courseselect.
Related Issues (20)
- 关于在rails视图中使用二维数组 HOT 2
- redirect_to HOT 1
- 请问如何将数据导入到数据库中 HOT 2
- 导出课程列表的时候提示路由错误 HOT 2
- 关于删除选课的参数问题 HOT 8
- 在html文件中增加搜索框 HOT 7
- github在pull request时出现conflict HOT 1
- cloud9上执行rake db:migrate时的问题 HOT 1
- 查询数据库的问题 HOT 1
- 下载excel文件自动跳转微软url问题
- form表单submit按钮无法提交,除非刷新一次 HOT 3
- sudo service postgrsql start 出现问题 HOT 1
- heroku 部署的问题 HOT 1
- rake db:seed rake aborted! Email has already been taken HOT 1
- gem install nokogiri -v '1.6.8' HOT 1
- 执行rake test 报错 HOT 4
- heroku上部署以后无法发送邮件 HOT 1
- An error occurred while installing pg (0.18.4) HOT 8
- bundle instll error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from courseselect.