在linux上安装nsis失败了exitcode1

Sha*_*uan 1 c++ linux installation installer nsis

我正在尝试在Linux上安装Nsis,我找到了一个很好的安装指南:http://www.xdevsoftware.com/blog/post/How-to-Install-the-Nullsoft-Installer---NSIS- on-Linux-.aspx 问题是它在最后一步失败:scons SKIPSTUBS =所有SKIPPLUGINS =所有SKIPUTILS =所有SKIPMISC =所有NSIS_CONFIG_CONST_DATA =否PREFIX =/usr/local/nsis/nsis-2.46 install-compiler

这是我得到的输出:

Source/script.cpp:6460:1:   required from here
Source/util.h:145:1: error: 'close' was not declared in this scope, 
and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
Run Code Online (Sandbox Code Playgroud)

错误是:'close'未在此范围内声明.... 我尝试运行它几次,并在互联网上查找解决方案,但我认为这是一个64位的机器而不是32的问题.

任何的想法?

And*_*ers 6

尝试添加#include <unistd.h>到util.h

最近有关于close()的错误报告,但是这是在OSX上并且与编译器/ c ++库更改有关,所以我不确定它是否适用但是可能值得研究...