ruby-packer icon indicating copy to clipboard operation
ruby-packer copied to clipboard

problems with installation of ruby-packer

Open BluePeony opened this issue 7 years ago • 4 comments

Hi, I am trying to install ruby-packer on a Windows10 machine. But it did not work. After I followed the installation procedure written here: https://github.com/pmq20/ruby-packer I get an error when trying to execute rubyc. The error says that nmake could not be found. What am I doing wrong?

BluePeony avatar Feb 11 '18 16:02 BluePeony

Sounds like Visual Studio command line tools aren't available. Are you able to run nmake from the command line?

tomdalling avatar Feb 12 '18 03:02 tomdalling

Thank you! You were right. The error does not show up when I run "rubyc" from the VS command prompt and not from the "normal"/usual one. However when I run "rubyc" now it keeps running for quite some time and then aborts with an error, that the command "bison" could not be found. bison_error Do you have any idea how to fix that? I googled it but did not find any solution.

BluePeony avatar Feb 13 '18 07:02 BluePeony

Your error message seems to say The command "bison" is either misspelled or could not be found", so maybe bison for win32 will help?

drbrain avatar May 09 '18 22:05 drbrain

Same issue on Linux with bison: command not found. Installing bison with sudo apt install bison works (as in the Docker file in https://github.com/pmq20/ruby-packer/issues/39)

So I suggest to simply add bison along squashfs-tools in the list of Linux/OSX dependencies (Install on Linux/macOS sections), and bison for Windows in Install on Windows as drbrain suggested.

I also suggest editing this issue's title to something like "bison: command not found on compile -> suggest adding bison as dependency in README" to make it more specific.

hsandt avatar Jun 30 '19 12:06 hsandt