Archive: Having problems compiling a script on Linux


Having problems compiling a script on Linux
  I'm trying to use the NSIS compiler for Linux. I've built the compiler on my box using scons, but when I run makensis, it gives me this error:


sh: line 1: LibraryLocal: command not found

warning
: unknown variable/constant "{LIBRARY_VERSION_HIGH}" detected, ignoring (macro:InstallLib:120)
>warning: unknown variable/constant "{LIBRARY_VERSION_LOW}" detected, ignoring (macro:InstallLib:121)
!undef: "LIBRARY_VERSION_HIGH" not defined!
>Error in macro InstallLib on macroline 125
Error in script"tybit-setup.nsi" on line 603 -- aborting creation process
>
I'm following along using http://www.xdevsoftware.com/blog/post/How-to-Install-the-Nullsoft-Installer---NSIS-on-Linux-.aspx and the NSIS manual.

My makensis command is in /usr/local/nsis/nsis-2.36/bin .
LibraryLocal.exe is in /usr/local/nsis/nsis-2.36/Bin, but I've copied that to both the /bin directory and the directory where my script resides.

Can someone please help me out here?

The key line is:

sh: line 1: LibraryLocal: command not found
That tutorial doesn't address installation of LibraryLocal. You should rename it from LibraryLocal.exe, make sure it's not win32 application (run it, for example) and copy it somewhere it can be found.

How do I know if it's a win32 application or not? I thought the output from Scons would make it POSIX compatible. Is that not the case?


As I said, run it.


It doesn't run. So am I SOL?


No, you're just using the wrong one. Rerun scons without the SKIP* and build only the `Library/LibraryLocal' target. You can then either install it or simply copy it from the build directory.