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

Compiled done but when executed :( #2

Open
dsweb19778 opened this issue Jul 16, 2023 · 3 comments
Open

Compiled done but when executed :( #2

dsweb19778 opened this issue Jul 16, 2023 · 3 comments

Comments

@dsweb19778
Copy link

internal:C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:85:in require': 126: The specified module could not be found. - C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/lib/ruby/3.2.0/x64-mingw-ucrt/openssl.so (LoadError) from <internal:C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in require'
from C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/lib/ruby/3.2.0/openssl.rb:13:in <top (required)>' from <internal:C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in require'
from internal:C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:85:in require' from C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/gemhome/gems/httparty-0.21.0/lib/httparty/connection_adapter.rb:211:in attach_ssl_certificates'
from C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/gemhome/gems/httparty-0.21.0/lib/httparty/connection_adapter.rb:117:in connection' from C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/gemhome/gems/httparty-0.21.0/lib/httparty/connection_adapter.rb:80:in call'
from C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/gemhome/gems/httparty-0.21.0/lib/httparty/request.rb:197:in http' from C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/gemhome/gems/httparty-0.21.0/lib/httparty/request.rb:154:in perform'
from C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/gemhome/gems/httparty-0.21.0/lib/httparty.rb:612:in perform_request' from C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/gemhome/gems/httparty-0.21.0/lib/httparty.rb:542:in post'
from C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/gemhome/gems/httparty-0.21.0/lib/httparty.rb:649:in post' from C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/src/learn.rb:56:in block in

'
from C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/src/learn.rb:44:in each' from C:/Users/zd/AppData/Local/Temp/ocr7BD9.tmp/src/learn.rb:44:in '

@ccorn90
Copy link

ccorn90 commented Aug 16, 2023

@dsweb19778 did you get a solution on this? IIRC, there are some issues back in the day for the original ocra that are similar and you may need to manually add the SO file to your windows system.

@YOU54F
Copy link

YOU54F commented Aug 17, 2023

I recently tried this out for one of our open source projects that has previously been packaged with traveling-ruby.

I upgraded that recently to run across 2.6.10 -> 3.2.2 (and 3.3.0-preview1) and added support for arm64 in a fork, but it lacked support for native extensions on windows, so I was pleased to see this fork spring up for ocra (I've been watching all the forks for ruby packagers over the last 18 months or so )

Anyway here is script I've tested out so far with ocran.

--add-all-core and including the --dll xyz seemed to be the magic trick for me.

https://github.com/YOU54F/pact-ruby-standalone/blob/feat/ocran/script/package-with-ocra.sh

The only change I had to make to our entrypoint scripts was stopping one service from starting with unless defined?(Ocran)

https://github.com/YOU54F/pact-ruby-standalone/blob/2e4f5e288dc4818d93f05e409594f3d172a683b5/packaging/pact-mock-service.rb#L21

I also wrapped up the installed packages with scoop so it was nice and easy for me to get access to my our tooling when I am working on windows machines :)

Cheers @Largo

@Largo
Copy link
Owner

Largo commented Aug 26, 2023

Can i have your example code and what command you run that does not work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants