Development Tip

Windows에 씬을 설치할 수 없음

yourdevel 2020. 11. 17. 21:13
반응형

Windows에 씬을 설치할 수 없음


Windows에 얇은 gem을 설치할 수 없습니다. 기본 확장을 빌드하는 동안 문제가 발생합니다.

누구든지 같은 문제에 직면합니까?

다음은 스택 추적입니다.

>gem install thin --no-ri --no-rdoc
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing thin:
        ERROR: Failed to build gem native extension.

C:/Ruby/bin/ruby.exe extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... no
checking for rb_thread_check_ints()... yes
checking for rb_time_new()... yes
checking for windows.h... yes
checking for winsock.h... yes
checking for main() in -lkernel32... yes
checking for main() in -lrpcrt4... yes
checking for main() in -lgdi32... yes
checking for main() in -lssl... no
creating Makefile

make
g++ -I. -IC:/Ruby/include/ruby-1.9.1/i386-mingw32 -I/C/Ruby/include/ruby-1.9.1/ruby/backward -I/C/Ru
by/include/ruby-1.9.1 -I. -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_TBR -DHAVE_RB_THR
EAD_CHECK_INTS -DHAVE_RB_TIME_NEW -DOS_WIN32 -DHAVE_WINDOWS_H -DHAVE_WINSOCK_H -DWITHOUT_SSL -DHAVE_
MAKE_PAIR    -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -
Wno-missing-field-initializers -Wno-long-long   -o binder.o -c binder.cpp
In file included from project.h:137:0,
                 from binder.cpp:20:
binder.h:35:34: warning: type qualifiers ignored on function return type
In file included from project.h:138:0,
                 from binder.cpp:20:
em.h:91:47: warning: type qualifiers ignored on function return type
em.h:92:76: warning: type qualifiers ignored on function return type
em.h:93:56: warning: type qualifiers ignored on function return type
em.h:95:57: warning: type qualifiers ignored on function return type
em.h:96:60: warning: type qualifiers ignored on function return type
em.h:97:58: warning: type qualifiers ignored on function return type
em.h:98:55: warning: type qualifiers ignored on function return type
em.h:99:36: warning: type qualifiers ignored on function return type
em.h:101:47: warning: type qualifiers ignored on function return type
em.h:106:42: warning: type qualifiers ignored on function return type
em.h:123:45: warning: type qualifiers ignored on function return type
em.h:132:36: warning: type qualifiers ignored on function return type
In file included from project.h:145:0,
                 from binder.cpp:20:
eventmachine.h:45:61: warning: type qualifiers ignored on function return type
eventmachine.h:46:112: warning: type qualifiers ignored on function return type
eventmachine.h:47:69: warning: type qualifiers ignored on function return type
eventmachine.h:49:73: warning: type qualifiers ignored on function return type
eventmachine.h:62:75: warning: type qualifiers ignored on function return type
eventmachine.h:63:74: warning: type qualifiers ignored on function return type
eventmachine.h:64:77: warning: type qualifiers ignored on function return type
eventmachine.h:65:41: warning: type qualifiers ignored on function return type
In file included from project.h:145:0,
                 from binder.cpp:20:
eventmachine.h:99:60: warning: type qualifiers ignored on function return type
eventmachine.h:100:58: warning: type qualifiers ignored on function return type
eventmachine.h:102:60: warning: type qualifiers ignored on function return type
eventmachine.h:105:41: warning: type qualifiers ignored on function return type
g++ -I. -IC:/Ruby/include/ruby-1.9.1/i386-mingw32 -I/C/Ruby/include/ruby-1.9.1/ruby/backward -I/C/Ru
by/include/ruby-1.9.1 -I. -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_TBR -DHAVE_RB_THR
EAD_CHECK_INTS -DHAVE_RB_TIME_NEW -DOS_WIN32 -DHAVE_WINDOWS_H -DHAVE_WINSOCK_H -DWITHOUT_SSL -DHAVE_
MAKE_PAIR    -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -
Wno-missing-field-initializers -Wno-long-long   -o cmain.o -c cmain.cpp
In file included from project.h:137:0,
                 from cmain.cpp:20:
binder.h:35:34: warning: type qualifiers ignored on function return type
In file included from project.h:138:0,
                 from cmain.cpp:20:
em.h:91:47: warning: type qualifiers ignored on function return type
em.h:92:76: warning: type qualifiers ignored on function return type
em.h:93:56: warning: type qualifiers ignored on function return type
em.h:95:57: warning: type qualifiers ignored on function return type
em.h:96:60: warning: type qualifiers ignored on function return type
em.h:97:58: warning: type qualifiers ignored on function return type
em.h:98:55: warning: type qualifiers ignored on function return type
em.h:99:36: warning: type qualifiers ignored on function return type
em.h:101:47: warning: type qualifiers ignored on function return type
em.h:106:42: warning: type qualifiers ignored on function return type
em.h:123:45: warning: type qualifiers ignored on function return type
em.h:132:36: warning: type qualifiers ignored on function return type
In file included from project.h:145:0,
                 from cmain.cpp:20:
eventmachine.h:45:61: warning: type qualifiers ignored on function return type
eventmachine.h:46:112: warning: type qualifiers ignored on function return type
eventmachine.h:47:69: warning: type qualifiers ignored on function return type
eventmachine.h:49:73: warning: type qualifiers ignored on function return type
eventmachine.h:62:75: warning: type qualifiers ignored on function return type
eventmachine.h:63:74: warning: type qualifiers ignored on function return type
eventmachine.h:64:77: warning: type qualifiers ignored on function return type
eventmachine.h:65:41: warning: type qualifiers ignored on function return type
In file included from project.h:145:0,
                 from cmain.cpp:20:
eventmachine.h:99:60: warning: type qualifiers ignored on function return type
eventmachine.h:100:58: warning: type qualifiers ignored on function return type
eventmachine.h:102:60: warning: type qualifiers ignored on function return type
eventmachine.h:105:41: warning: type qualifiers ignored on function return type
cmain.cpp:98:71: warning: type qualifiers ignored on function return type
cmain.cpp:109:122: warning: type qualifiers ignored on function return type
cmain.cpp:119:79: warning: type qualifiers ignored on function return type
cmain.cpp:129:83: warning: type qualifiers ignored on function return type
cmain.cpp:260:85: warning: type qualifiers ignored on function return type
cmain.cpp:270:84: warning: type qualifiers ignored on function return type
cmain.cpp:280:88: warning: type qualifiers ignored on function return type
cmain.cpp:290:51: warning: type qualifiers ignored on function return type
cmain.cpp:300:70: warning: type qualifiers ignored on function return type
cmain.cpp:320:55: warning: type qualifiers ignored on function return type
cmain.cpp:546:70: warning: type qualifiers ignored on function return type
cmain.cpp:669:68: warning: type qualifiers ignored on function return type
cmain.cpp: In function 'int evma_send_file_data_to_connection(long unsigned int, const char*)':
cmain.cpp:752:6: error: cannot convert 'stat*' to '_stati64*' for argument '2' to 'int _fstati64(int
, _stati64*)'
make: *** [cmain.o] Error 1


Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10 for inspect
ion.
Results logged to C:/Ruby/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/ext/gem_make.out

git 또는 rubygems 저장소에서 설치하는 것은 더 이상 (현재) 1.9.2 또는 1.9.3에서 작동하지 않습니다 (2012 년 6 월 22 일에 여전히 중단 된 것으로 확인 됨). 대신 다음과 같이하면됩니다.

gem install eventmachine --pre
gem install thin

2012-June-18에 현재 프리 릴리즈의 이름1.0.0.rc.1로 변경 되었으므로 Windows에서 작동하는 버전이 '곧'공식 릴리스가되어 더 이상 문제가되지 않을 가능성이 있습니다.


github repo에서 1.9.2 이하로 gem을 빌드하려고하면 다음과 같은 내용이 표시 될 수 있습니다 (검색 엔진 히트에 포함됨).

C : \ eventmachine> 레이크 빌드
(C : / eventmachine에서)
cd ext
C : /Ruby/bin/ruby.exe extconf.rb
ruby.h, rubysig.h에서 rb_trap_immediate 확인 중 ... *** extconf.rb 실패 ***
어떤 이유로 인해 Makefile을 만들 수 없습니다. 아마도 필요하지 않을 것입니다.
라이브러리 및 / 또는 헤더. 자세한 내용은 mkmf.log 파일을 확인하십시오.

rubygems 저장소에서 1.9.3 이하로 gem을 설치하려고하면 다음과 같은 내용이 표시 될 수 있습니다 (검색 엔진 히트에 포함됨).

C : \> gem 설치 이벤트 머신
DevKit을 포함하도록 PATH를 일시적으로 개선 중 ...
기본 확장 빌드. 시간이 좀 걸릴 수 있습니다 ...
오류 : eventmachine 설치 오류 :
        오류 : gem 기본 확장을 빌드하지 못했습니다.

        C : /Ruby193/bin/ruby.exe extconf.rb
ruby.h, rubysig.h에서 rb_trap_immediate 확인 중 ... 아니요
rb_thread_blocking_region () 확인 중 ... 예
sys / inotify.h에서 inotify_init () 확인 중 ... 아니요
sys / syscall.h에서 __NR_inotify_init 확인 중 ... 아니요
sys / uio.h에서 writev () 확인 중 ... 아니요
rb_thread_check_ints () 확인 중 ... 예
rb_time_new () 확인 중 ... 예
windows.h ... 확인
winsock.h 확인 중 ... 예
-lkernel32에서 main () 확인 중 ... 예
-lrpcrt4에서 main () 확인 중 ... 예
-lgdi32에서 main () 확인 중 ... 예
-lssl에서 main () 확인 중 ... 아니요
Makefile 생성

하다
rubyeventmachine-i386-mingw32.def 생성
binder.cpp 컴파일
cc1plus.exe : 경고 : 명령 줄 옵션 "-Wdeclaration-after-statement"는 C / ObjC에는 유효하지만 C ++에는 유효하지 않습니다.
cc1plus.exe : 경고 : 명령 줄 옵션 "-Wimplicit-function-declaration"은 C / ObjC에는 유효하지만 C ++에는 유효하지 않습니다.
binder.cpp : 20 : 0에 포함 된 파일 :
project.h : 85 : 0 : 경고 : "FD_SETSIZE"재정의
: 0 : 0 : 참고 : 이것은 이전 정의의 위치입니다.
project.h : 137 : 0에서 포함 된 파일에서,
                 binder.cpp : 20에서 :
binder.h : 35 : 34 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
project.h : 138 : 0에서 포함 된 파일에서,
                 binder.cpp : 20에서 :
em.h : 91 : 47 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 92 : 76 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 93 : 56 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 95 : 57 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 96 : 60 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 97 : 58 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 98 : 55 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 99 : 36 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 101 : 47 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 106 : 42 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 123 : 45 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 132 : 36 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
project.h : 145 : 0에서 포함 된 파일에서,
                 binder.cpp : 20에서 :
eventmachine.h : 45 : 61 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 46 : 112 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 47 : 69 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 49 : 73 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 62 : 75 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 63 : 74 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 64 : 77 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 65 : 41 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
project.h : 145 : 0에서 포함 된 파일에서,
                 binder.cpp : 20에서 :
eventmachine.h : 99 : 60 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 100 : 58 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 102 : 60 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 105 : 41 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
cmain.cpp 컴파일
cc1plus.exe : 경고 : 명령 줄 옵션 "-Wdeclaration-after-statement"는 C / ObjC에는 유효하지만 C ++에는 유효하지 않습니다.
cc1plus.exe : 경고 : 명령 줄 옵션 "-Wimplicit-function-declaration"은 C / ObjC에는 유효하지만 C ++에는 유효하지 않습니다.
cmain.cpp : 20 : 0에 포함 된 파일 :
project.h : 85 : 0 : 경고 : "FD_SETSIZE"재정의
: 0 : 0 : 참고 : 이것은 이전 정의의 위치입니다.
project.h : 137 : 0에서 포함 된 파일에서,
                 cmain.cpp : 20에서 :
binder.h : 35 : 34 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
project.h : 138 : 0에서 포함 된 파일에서,
                 cmain.cpp : 20에서 :
em.h : 91 : 47 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 92 : 76 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 93 : 56 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 95 : 57 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 96 : 60 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 97 : 58 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 98 : 55 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 99 : 36 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 101 : 47 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 106 : 42 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 123 : 45 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
em.h : 132 : 36 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
project.h : 145 : 0에서 포함 된 파일에서,
                 cmain.cpp : 20에서 :
eventmachine.h : 45 : 61 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 46 : 112 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 47 : 69 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 49 : 73 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 62 : 75 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 63 : 74 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 64 : 77 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 65 : 41 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
project.h : 145 : 0에서 포함 된 파일에서,
                 cmain.cpp : 20에서 :
eventmachine.h : 99 : 60 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 100 : 58 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 102 : 60 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
eventmachine.h : 105 : 41 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
cmain.cpp : 98 : 71 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
cmain.cpp : 109 : 122 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
cmain.cpp : 119 : 79 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
cmain.cpp : 129 : 83 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
cmain.cpp : 260 : 85 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
cmain.cpp : 270 : 84 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
cmain.cpp : 280 : 88 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
cmain.cpp : 290 : 51 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
cmain.cpp : 300 : 70 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
cmain.cpp : 320 : 55 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
cmain.cpp : 546 : 70 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
cmain.cpp : 669 : 68 : 경고 : 함수 반환 유형에서 유형 한정자가 무시 됨
cmain.cpp : 'int evma_send_file_data_to_connection (long unsigned int, const char *)'함수에서 :
cmain.cpp : 752 : 6 : 오류 : 인수 '2'에 대해 'stat *'를 '_stati64 *'로 변환 할 수 없습니다. 'int _fstati64 (int, _stati64 *)'
make : *** [cmain.o] 오류 1


Gem 파일은 검사를 위해 C : /Ruby193/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10에 설치된 상태로 유지됩니다.
C : /Ruby193/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/ext/gem_make.out에 기록 된 결과

First, install the DevKit from the RubyInstaller for Windows website (which it appears you have already done).

Then install eventmachine separately from the git repository as Roger shows.

> gem install specific_install
Successfully installed backports-1.18.1
Successfully installed specific_install-0.2.3
2 gems installed
...
> gem specific_install -l http://github.com/eventmachine/eventmachine.git
git installing from http://github.com/eventmachine/eventmachine.git
...
Successfully built RubyGem
Name: eventmachine
Version: 0.12.11
File: eventmachine-0.12.11.gem
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed eventmachine-0.12.11
1 gem installed
...
successfully installed

You should then be able to install thin from the gem.

> gem install thin
Temporarily enhancing PATH to include DevKit...
Successfully installed thin-1.2.7-x86-mingw32
1 gem installed 
...
> thin start
Using rack adapter
Thin web server (v1.2.7 codename No Hup)
Maximum connections set to 1024
Listening on 0.0.0.0:3000, CTRL+C to stop

Try the running the following

gem install thin –ignore-dependencies

If it fails retry installing rack and eventmachine and then re-running the above command.

gem install rack
gem install eventmachine -l
gem install thin –ignore-dependencies

This will help you...

Add this below line to your gem file

gem 'eventmachine', :git => 'https://github.com/eventmachine/eventmachine.git'

then run bundle install


This might help:

$ gem install specific_install
$ gem specific_install -l http://github.com/eventmachine/eventmachine.git

You can install Thin without needing to build it yourself by using the pre-built binaries but you need to know which ones. To get the latest pre-built win32 version do the following:

  1. Go to the RubyGems Thin page
  2. Look under the "Versions" section for a version that has "x86-mswin32" to the right of it. (As of today versions 1.2.11, 1.2.10, etc all have win32 binaries)
  3. Run the following following "gem install" command with the version of Thin included with the "-v" flag:

gem install thin -v 1.2.11

Here are the results from my installation:

c:\>gem install thin -v 1.2.11
Successfully installed thin-1.2.11-x86-mswin32
1 gem installed
Installing ri documentation for thin-1.2.11-x86-mswin32... 
Updating ri class cache with 3611 classes... 
Installing RDoc documentation for thin-1.2.11-x86-mswin32...

참고URL : https://stackoverflow.com/questions/3649252/cannot-install-thin-on-windows

반응형