2016-12-09 60 views
0

[根@本地genieacs桂]安裝geniusgui-acs時Bundler錯誤。

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. 

我使用紅寶石2.4.0preview#束軌道5.0.0.1,在Linux的CentOS的節點7.2.1.5.11 v0.10.18。

我的問題是,當我嘗試執行命令打包器時,出現此錯誤。 我有點失落。任何建議?

親切的問候。

回答

0

第一個,您正在運行bundlersudo。這在某些情況下可能會導致問題。上週我有一個問題,因爲有人這樣做

第二,看看它爲什麼失敗。最後,你有線索:Make sure that "gem install json -v '1.8.3'" succeeds before bundling.這意味着僅僅在終端

鍵入gem install json -v '1.8.3',紅寶石版本2.4.0即不是1.0或者GenieACS的V1.1支持。它們都支持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開發另一個指南。

相關問題