如何使用Cygwin64终端在Windows 8上安装ruby 2.3.1?

时间:2017-07-30 00:46:06

标签: ruby-on-rails ruby windows cygwin rvm

我正在尝试使用以下命令在rvm on cygin上在Windows 8.1(64)上安装ruby 2.3.1:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

\curl -sSL https://get.rvm.io | bash -s stable

rvm install ruby-2.3.1之后,我收到此错误:

ruby-2.3.1 - #removing src/ruby-2.3.1..
Searching for binary rubies, this might take some time.
No binary rubies available for: cygwin/unknown/x86_64/ruby-2.3.1.
Continuing with compilation. Please read 'rvm help mount' to get more 
information on binary rubies.
Checking requirements for cygwin.
Requirements installation successful.
Installing Ruby from source to: /home/mypc/.rvm/rubies/ruby-2.3.1, this may 
take a while depending on your cpu(s)...
ruby-2.3.1 - #downloading ruby-2.3.1, this may take a while depending on 
your connection...
ruby-2.3.1 - #extracting ruby-2.3.1 to /home/mypc/.rvm/src/ruby-2.3.1....
ruby-2.3.1 - #applying patch 
/home/mypc/.rvm/patches/ruby/2.3.1/fix_resolv_kernel32_dll.patch.
ruby-2.3.1 - 
#configuring..........................................................
ruby-2.3.1 - #post-configuration..
ruby-2.3.1 - #compiling...........
Error running '__rvm_make -j4',
showing last 15 lines of /home/mypc/.rvm/log/1501370385_ruby-2.3.1/make.log
rb_str_new_static((str), (long)strlen(str)) : \
                                    ^
ruby.c:417:29: erreur : request for member ‘dli_fname’ in something not a 
structure or union
fname = rb_str_new_cstr(dli.dli_fname);
                         ^
./include/ruby/intern.h:807:18: note : in definition of macro 
‘rb_str_new_cstr’
  rb_str_new_cstr(str);   \
                   ^

ruby.c:402:1: attention : ‘dladdr_path’ defined but not used [-Wunused-
function]
dladdr_path(const void* addr)
^

我使用rvm requirements重新加载了rvm依赖项,但即使在执行this之后,我仍然遇到相同的消息错误。

0 个答案:

没有答案