Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10 Install Error? #1101

Closed
gregwright85 opened this issue Dec 19, 2019 · 3 comments
Closed

Windows 10 Install Error? #1101

gregwright85 opened this issue Dec 19, 2019 · 3 comments
Labels
Milestone

Comments

@gregwright85
Copy link

@gregwright85 gregwright85 commented Dec 19, 2019

I am getting an error install COSMOS:

As of YARD v0.9.2:

RubyGems "--document=yri,yard" hooks are now supported. You can auto-configure
YARD to automatically build the yri index for installed gems by typing:

    $ yard config --gem-install-yri

See `yard config --help` for more information on RubyGems install hooks.

You can also add the following to your .gemspec to have YARD document your gem
on install:

    spec.metadata["yard.run"] = "yri" # use "yard" to build full HTML docs.

--------------------------------------------------------------------------------
Successfully installed yard-0.9.20
Fetching: pry-doc-0.13.5.gem (100%)
Successfully installed pry-doc-0.13.5
Fetching: uuidtools-2.1.5.gem (100%)
Successfully installed uuidtools-2.1.5
Fetching: snmp-1.3.2.gem (100%)
Successfully installed snmp-1.3.2
Fetching: rubyzip-1.3.0.gem (100%)
Successfully installed rubyzip-1.3.0
Fetching: mini_portile2-2.4.0.gem (100%)
Successfully installed mini_portile2-2.4.0
Fetching: nokogiri-1.10.7-x64-mingw32.gem (100%)
Nokogiri is built with the packaged libraries: libxml2-2.9.10, libxslt-1.1.34, zlib-1.2.11, libiconv-1.15.
Successfully installed nokogiri-1.10.7-x64-mingw32
Fetching: opengl-bindings-1.6.9.gem (100%)
Successfully installed opengl-bindings-1.6.9
Fetching: qtbindings-qt-4.8.6.4-x64-mingw32.gem (100%)
Successfully installed qtbindings-qt-4.8.6.4-x64-mingw32
Fetching: qtbindings-4.8.6.5-x64-mingw32.gem (100%)
Successfully installed qtbindings-4.8.6.5-x64-mingw32
Fetching: puma-3.12.2.gem (100%)
Temporarily enhancing PATH for MSYS/MINGW...
Installing required msys2 packages: mingw-w64-x86_64-openssl
Building native extensions. This could take a while...
ERROR:  Error installing cosmos:
        ERROR: Failed to build gem native extension.

    current directory: C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.5.0/gems/puma-3.12.2/ext/puma_http11
C:/COSMOS/Vendor/Ruby/bin/ruby.exe -r ./siteconf20191219-19396-1ob61bz.rb extconf.rb
checking for BIO_read() in -lcrypto... yes
checking for SSL_CTX_new() in -lssl... yes
checking for openssl/bio.h... yes
creating Makefile

current directory: C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.5.0/gems/puma-3.12.2/ext/puma_http11
make "DESTDIR=" clean

current directory: C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.5.0/gems/puma-3.12.2/ext/puma_http11
make "DESTDIR="
generating puma_http11-x64-mingw32.def
compiling http11_parser.c
compiling io_buffer.c
compiling mini_ssl.c
mini_ssl.c: In function 'engine_init_client':
mini_ssl.c:220:3: warning: 'DTLSv1_method' is deprecated [-Wdeprecated-declarations]
  220 |   conn->ctx = SSL_CTX_new(DTLSv1_method());
      |   ^~~~
In file included from C:/COSMOS/Vendor/Ruby/msys64/mingw64/include/openssl/e_os2.h:13,
                 from C:/COSMOS/Vendor/Ruby/msys64/mingw64/include/openssl/bio.h:13,
                 from mini_ssl.c:14:
C:/COSMOS/Vendor/Ruby/msys64/mingw64/include/openssl/ssl.h:1895:1: note: declared here
 1895 | DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_method(void)) /* DTLSv1.0 */
      | ^~~~~~~~~~~~~~~~~~
compiling puma_http11.c
linking shared-object puma/puma_http11.so
C:/COSMOS/Vendor/Ruby/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: puma_http11.o:puma_http11.c:(.text+0x9a0): undefined reference to `__memcpy_chk'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:259: puma_http11.so] Error 1

make failed, exit code 2

Gem files will remain installed in C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.5.0/gems/puma-3.12.2 for inspection.
Results logged to C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/puma-3.12.2/gem_make.out
ERROR: Problem installing cosmos gem
INSTALL FAILED
Press any key to continue . . .

Any ideas? Thank you for your help!

@ryanatball

This comment has been minimized.

Copy link
Member

@ryanatball ryanatball commented Dec 19, 2019

I just checked in a change to the INSTALL_COSMOS.bat file. Please update that and try again. Let me know if it works.

@gregwright85

This comment has been minimized.

Copy link
Author

@gregwright85 gregwright85 commented Dec 19, 2019

Perfect! Works great. Any idea why the Launcher window looks to be frozen and never fully opens (see taskbar screenshot below)? It works another Windows 10 machine I have fine. The Basic and Demo configs both do this

image

@ryanatball

This comment has been minimized.

Copy link
Member

@ryanatball ryanatball commented Dec 19, 2019

Haven't seen that. Things to try:

  1. Reboot
  2. Run COSMOS from a cmd prompt and see if anything is different or messages: ruby Launcher
  3. Check your path to see if there are any qt dlls anywhere besides /vendor/ruby/bin - that could potentially cause problems
@ryanatball ryanatball closed this Dec 19, 2019
@ryanmelt ryanmelt added this to the v4.4.1 milestone Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.