2013-03-09 143 views
2

我創建了一個並且我想上傳phpfog,但是在第一步上傳我的數據庫時遇到了麻煩,我贏了7個x64,我下載並安裝了ruby命令提示符,同時創建了一個隧道:如何在win 7上安裝caldecott?

C:\Ruby200\devkit>gem install caldecott --platform=ruby 
    Temporarily enhancing PATH to include DevKit... 
    Building native extensions. This could take a while... 
    ERROR: Error installing caldecott: 
      ERROR: Failed to build gem native extension. 

     C:/Ruby200/bin/ruby.exe extconf.rb 
    creating Makefile 

    make 
    generating generator-i386-mingw32.def 
    compiling generator.c 
    generator.c: In function 'cState_aref': 
    generator.c:632:5: warning: variable 'state' set but not used [-Wunused-but-set- 
    variable] 
    generator.c: In function 'isArrayOrObject': 
    generator.c:867:5: warning: suggest parentheses around '&&' within '||' [-Wparen 
    theses] 
    linking shared-object json/ext/generator.so 

    make install 
    /usr/bin/install -c -m 0755 generator.so C:/Ruby200/lib/ruby/gems/2.0.0/gems/jso 
    n-1.6.8/ext/json/ext/json/ext 
    /usr/bin/install: cannot create regular file `C:/Ruby200/lib/ruby/gems/2.0.0/gem 
    s/json-1.6.8/ext/json/ext/json/ext': No such file or directory 
    make: *** [install-so] Error 1 


    Gem files will remain installed in C:/Ruby200/lib/ruby/gems/2.0.0/gems/json-1.6. 
    8 for inspection. 
    Results logged to C:/Ruby200/lib/ruby/gems/2.0.0/gems/json-1.6.8/ext/json/ext/ge 
    nerator/gem_make.out 

    C:\Ruby200\devkit>gem install caldecott --platform=ruby 


` 

回答

0

Ruby 2.0.0版本發生此錯誤。降級到1.9.3紅寶石

1

我有Win7的X64,紅寶石2.0.0,的devkit(的devkit-mingw64-32-4.7.2-20130224-1151)

我面臨着同樣的問題。我的解決方案:從GitHub

  1. 下載寶石源 - https://github.com/cloudfoundry/caldecott/archive/master.zip
  2. 解壓到C:\郝德傑(例如)JSON依賴
  3. 打開文件caldecott.gemspec和變化版本 「〜> 1.7」
  4. 打開命令提示符,移動到寶石源目錄,並藉此在:

    寶石打造caldecott.gemspec

    創業板安裝凱迪克0.0.5.gem

這是所有

+0

什麼ü用'4的意思。打開命令提示符,轉到gem源目錄和perfrom:'。 – 2013-06-19 07:30:32