簡體   English   中英

無法在MobaXTerm中的導軌上安裝ruby

[英]Can't install ruby on rails in MobaXTerm

我無法使用MobaXTerm應用程序在軌道上安裝ruby。

我執行gem install rails並得到以下輸出:

Fetching: rack-1.6.0.gem (100%)
Successfully installed rack-1.6.0
Fetching: rack-test-0.6.3.gem (100%)
Successfully installed rack-test-0.6.3
Building native extensions.  This could take a while...
ERROR:  Error installing rails:
        ERROR: Failed to build gem native extension.

    /usr/bin/ruby.exe extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
checking for gzdopen() in -lz... yes
checking for iconv... yes
************************************************************************
IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxml2-2.9.2
with the following patches applied:
        - 0001-Revert-Missing-initialization-for-the-catalog-module.patch
        - 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch

Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:

    gem install nokogiri -- --use-system-libraries
        [--with-xml2-config=/path/to/xml2-config]
        [--with-xslt-config=/path/to/xslt-config]

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install

Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.2.tar.gz into tmp/i686-pc-cygwin/ports/libxml2/2.9.2... ERROR
sh: zxf: command not found
*** 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
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/ruby
        --help
        --clean
        --use-system-libraries
        --enable-static
        --disable-static
        --with-zlib-dir
        --without-zlib-dir
        --with-zlib-include
        --without-zlib-include=${zlib-dir}/include
        --with-zlib-lib
        --without-zlib-lib=${zlib-dir}/lib
        --enable-cross-build
        --disable-cross-build
/home/mobaxterm/.gem/ruby/gems/mini_portile-0.6.2/lib/mini_portile.rb:262:in `extract_file': Failed to complete extract task (RuntimeError)
        from /home/mobaxterm/.gem/ruby/gems/mini_portile-0.6.2/lib/mini_portile.rb:35:in `block in extract'
        from /home/mobaxterm/.gem/ruby/gems/mini_portile-0.6.2/lib/mini_portile.rb:33:in `each'
        from /home/mobaxterm/.gem/ruby/gems/mini_portile-0.6.2/lib/mini_portile.rb:33:in `extract'
        from /home/mobaxterm/.gem/ruby/gems/mini_portile-0.6.2/lib/mini_portile.rb:107:in `cook'
        from extconf.rb:278:in `block in process_recipe'
        from extconf.rb:177:in `tap'
        from extconf.rb:177:in `process_recipe'
        from extconf.rb:475:in `<main>'

我已經為ruby,sqlite和gcc安裝了插件。 除了剛剛安裝的應用程序。

版本是:

Ruby:ruby 2.0.0p598(2014-11-13)[i386-cygwin]寶石:2.0.3

希望有人找到了如何進行這項工作。

在此先感謝您的幫助

如果您嘗試在MobaXterm上安裝Ruby-on-rails,則只需在MobaXterm終端中鍵入以下命令:

apt-get install ruby-rails

這將下載並安裝ruby-rails軟件包以及所有需要的依賴關系。

面臨同樣的問題。 您必須安裝tar

apt-get install tar

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM