【问题标题】:install nsis on linux fails exitcode1在 linux 上安装 nsis 失败 exitcode1
【发布时间】:2013-11-21 11:44:44
【问题描述】:

我正在尝试在 Linux 上安装 Nsis, 我找到了一个很棒的安装指南:http://www.xdevsoftware.com/blog/post/How-to-Install-the-Nullsoft-Installer---NSIS-on-Linux-.aspx 问题是它在最后一步失败了: scons SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all NSIS_CONFIG_CONST_DATA=no 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]

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

有什么想法吗?

【问题讨论】:

    标签: c++ linux installation nsis


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2021-04-24
      • 2012-03-05
      • 2016-03-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多