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

How to build nodec for Window? #140

Open
saurabh-deep opened this issue Apr 5, 2019 · 4 comments
Open

How to build nodec for Window? #140

saurabh-deep opened this issue Apr 5, 2019 · 4 comments

Comments

@saurabh-deep
Copy link

Hi, Can someone please guide me on how to create a new nodec executable for Windows? I have been able to build for MacOS using ruby-packer, but am unable to proceed with Windows. In need of urgent help please.

@slee047
Copy link
Contributor

slee047 commented Apr 24, 2019

Do you mean building a single nodec executable file like the downloads from:
http://enclose.io/nodec

@saurabh-deep
Copy link
Author

Do you mean building a single nodec executable file like the downloads from:
http://enclose.io/nodec

Yeah. That was the goal. I even managed to build the nodec for Mac using ruby-packer (rubyc), but failed to do so for Windows.

@slee047
Copy link
Contributor

slee047 commented Apr 24, 2019

Do you mean building a single nodec executable file like the downloads from:
http://enclose.io/nodec

Yeah. That was the goal. I even managed to build the nodec for Mac using ruby-packer (rubyc), but failed to do so for Windows.

I tried using ruby-packer but I got this:

=> Building ruby phase 1
Traceback (most recent call last):
9: from C:/ruby-packer/bin/rubyc:143:in <main>' 8: from C:/ruby-packer/lib/compiler.rb:661:in run!'
7: from C:/ruby-packer/lib/compiler.rb:183:in build_ruby_pass_1_windows' 6: from C:/ruby-packer/lib/compiler.rb:183:in chdir'
5: from C:/ruby-packer/lib/compiler.rb:184:in block in build_ruby_pass_1_windows' 4: from C:/ruby-packer/lib/compiler/utils.rb:52:in run'
3: from C:/ruby-packer/lib/compiler/utils.rb:52:in map' 2: from C:/ruby-packer/lib/compiler/utils.rb:52:in each'
1: from C:/ruby-packer/lib/compiler/utils.rb:53:in block in run' C:/ruby-packer/lib/compiler/utils.rb:38:in escape': undefined method `include?' for nil:NilClass (NoMethodError)

So how did you use ruby-packer to pack this in macOS?

@saurabh-deep
Copy link
Author

Do you mean building a single nodec executable file like the downloads from:
http://enclose.io/nodec

Yeah. That was the goal. I even managed to build the nodec for Mac using ruby-packer (rubyc), but failed to do so for Windows.

I tried using ruby-packer but I got this:

=> Building ruby phase 1
Traceback (most recent call last):
9: from C:/ruby-packer/bin/rubyc:143:in <main>' 8: from C:/ruby-packer/lib/compiler.rb:661:in run!'
7: from C:/ruby-packer/lib/compiler.rb:183:in build_ruby_pass_1_windows' 6: from C:/ruby-packer/lib/compiler.rb:183:in chdir'
5: from C:/ruby-packer/lib/compiler.rb:184:in block in build_ruby_pass_1_windows' 4: from C:/ruby-packer/lib/compiler/utils.rb:52:in run'
3: from C:/ruby-packer/lib/compiler/utils.rb:52:in map' 2: from C:/ruby-packer/lib/compiler/utils.rb:52:in each'
1: from C:/ruby-packer/lib/compiler/utils.rb:53:in block in run' C:/ruby-packer/lib/compiler/utils.rb:38:in escape': undefined method `include?' for nil:NilClass (NoMethodError)

So how did you use ruby-packer to pack this in macOS?

Exact steps mentioned here worked for me on macOS but on Windows it fails with compile-time errors - https://github.com/adobe/node-packer/blob/master/BUILD_INSTRUCTIONS.md

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

2 participants