安装geniusgui-acs时出现Bundler错误。

时间:2016-12-09 08:10:54

标签: bundle

[root @ localhost genieacs-gui] #bundle

Don't run Bundler as root. Bundler can ask for sudo if it is needed, andinstalling your bundle as
root will break this application for all non-root users on this machine.
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Using rake 11.2.2
Using concurrent-ruby 1.0.2
Using i18n 0.7.0
Using minitest 5.9.0
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using pkg-config 1.1.7
Using rack 2.0.1
Using nio4r 1.2.1
Using websocket-extensions 0.1.2
Using mime-types-data 3.2016.0521
Using arel 7.1.0
Using byebug 9.0.5
Using coffee-script-source 1.10.0
Using execjs 2.7.0
Using method_source 0.8.2
Using thor 0.19.1
Using debug_inspector 0.0.2
Using ffi 1.9.14
Using multi_json 1.12.1
Installing json 1.8.3 with native extensions
Using rb-fsevent 0.9.7
Using puma 3.5.2
Using bundler 1.13.6
Using sass 3.4.22
Using tilt 2.0.5
Using spring 1.7.2
Using sqlite3 1.3.11
Using turbolinks-source 5.0.0
Using tzinfo 1.2.2
Using nokogiri 1.6.8
Using rack-test 0.6.3
Using sprockets 3.6.3
Using websocket-driver 0.6.4
Using mime-types 3.1
Using coffee-script 2.4.1
Using uglifier 3.0.0
Using rb-inotify 0.9.7
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
/usr/local/bin/ruby -r ./siteconf20161209-28728-12avihx.rb extconf.rb
creating Makefile

current directory: /usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR=" clean

current directory: /usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
generator.c: En la función ‘generate_json’:
generator.c:861:25: error: ‘rb_cFixnum’ no se declaró aquí (primer uso en esta función)
     } else if (klass == rb_cFixnum) {
                         ^
generator.c:861:25: nota: cada identificador sin declarar se reporta sólo una vez para cada función en
el que aparece
generator.c:863:25: error: ‘rb_cBignum’ no se declaró aquí (primer uso en esta función)
     } else if (klass == rb_cBignum) {
                         ^
generator.c: En el nivel principal:
cc1: aviso: no se reconoce la opción de línea de órdenes "-Wno-self-assign" [activado por defecto]
cc1: aviso: no se reconoce la opción de línea de órdenes "-Wno-constant-logical-operand" [activado por
defecto]
cc1: aviso: no se reconoce la opción de línea de órdenes "-Wno-parentheses-equality" [activado por
defecto]
cc1: aviso: no se reconoce la opción de línea de órdenes "-Wno-tautological-compare" [activado por
defecto]
make: *** [generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in /usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.3 for inspection.
Results logged to
/usr/local/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0-static/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.

我在CentOS Linux 7.2.1.5.11中使用ruby 2.4.0preview,rails 5.0.0.1,node v0.10.18。

我的问题是,当我尝试执行命令bundler时,会出现此错误。 我有点迷路了。有什么建议吗?

亲切的问候。

1 个答案:

答案 0 :(得分:0)

首先,您正在bundler作为sudo运行。在某些情况下,这可能会导致问题。上周我也遇到了问题,因为有人这样做了

第二次,看看为什么会失败。最后你有线索:Make sure that "gem install json -v '1.8.3'" succeeds before bundling.这意味着只需在终端中输入gem install json -v '1.8.3'

第三,GenieACS的v1.0或v1.1中既不支持ruby版本2.4.0。他们都支持2.3.X

第四,如果您正在安装GenieACS v1.0,那么节点v0.10.X会这样做,但如果您正在安装v1.1,那么它只适用于节点版本v6.X

希望你和GenieACS玩得愉快! :)

PS。我在Ubuntu 14.04中为GenieACS写了一个指南:https://github.com/zaidka/genieacs/wiki/Installation-in-Ubuntu-14.04-Server,-64-bit 它将安装v1.0,但这将在几个月内过时。我目前正在为Debian 8中的v1.1开发另一个指南。

相关问题