Here is what happened when I ran install.sh:
Code: Select all
[root@ip-172-31-18-160 nrdsconfigmanager]# ./install.sh
--2017-03-06 06:40:14-- https://assets.nagios.com/downloads/nrdp/nrds-1.2.4.tar.gz
Resolving assets.nagios.com (assets.nagios.com)... 72.14.181.71, 2600:3c00::f03c:91ff:fedf:b821
Connecting to assets.nagios.com (assets.nagios.com)|72.14.181.71|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19769298 (19M) [application/x-gzip]
Saving to: ‘nrds-1.2.4.tar.gz’
100%[==============================================================================>] 19,769,298 11.8MB/s in 1.6s
2017-03-06 06:40:16 (11.8 MB/s) - ‘nrds-1.2.4.tar.gz’ saved [19769298/19769298]
--2017-03-06 06:40:16-- https://assets.nagios.com/downloads/nsis/nsis_0_1_1.tar.gz
Resolving assets.nagios.com (assets.nagios.com)... 72.14.181.71, 2600:3c00::f03c:91ff:fedf:b821
Connecting to assets.nagios.com (assets.nagios.com)|72.14.181.71|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6124270 (5.8M) [application/x-gzip]
Saving to: ‘nsis_0_1_1.tar.gz’
100%[==============================================================================>] 6,124,270 11.6MB/s in 0.5s
2017-03-06 06:40:17 (11.6 MB/s) - ‘nsis_0_1_1.tar.gz’ saved [6124270/6124270]
##################################
#
# Adding NRDS to NRDP Server
#
##################################
copying files...
Updating permissions...
updating NRDP server config...
##################################
#
# NRDS update complete.
# You will also want to install the NRDS Config Manager
# component if you have not done so already.
#
##################################
/usr/local/nsis
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.advancedhosters.com
* epel: mirror.cogentco.com
* extras: mirror.cc.columbia.edu
* updates: mirrors.advancedhosters.com
Package scons-2.5.1-1.el7.noarch already installed and latest version
Package gcc-c++-4.8.5-11.el7.x86_64 already installed and latest version
Nothing to do
patching file SCons/Config/gnu
patching file Source/DialogTemplate.cpp
patching file Source/Platform.h
patching file Source/Plugins.cpp
patching file Source/ResourceEditor.cpp
patching file Source/ResourceEditor.h
patching file Source/ResourceVersionInfo.cpp
patching file Source/fileform.cpp
patching file Source/mmap.cpp
patching file Source/script.cpp
patching file Source/util.cpp
scons: Reading SConscript files ...
Mkdir("build/release/config")
Delete("nsis-06-Mar-2017.cvs")
Delete(".instdist")
Delete(".test")
Using GNU tools configuration
Checking for linker flag $MAP_FLAG... yes
Checking for linker flag -s... yes
Checking for linker flag $MAP_FLAG... yes
Checking for linker flag -s... yes
Checking for memcpy requirement... no
Checking for memset requirement... no
Checking for linker flag -pthread... yes
Checking for __BIG_ENDIAN__... no
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 459, in <module>
Checking for C library gdi32... no
Checking for C library user32... no
Checking for C library pthread... yes
Checking for C library iconv... no
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 543, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 615, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 630, in <module>
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/tmp/nsis/nsis-2.46-src/SConstruct", line 674, in <module>
Checking for C library dl... yes
Checking for C library gdi32... no
Checking for C library iconv... no
Checking for C library pthread... yes
Checking for C library user32... no
Checking for C++ library cppunit... no
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/release/makensis/build.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/build.cpp
In file included from Source/writer.h:22:0,
from Source/fileform.h:21,
from Source/build.cpp:25:
Source/crc32.h:27:79: warning: '__stdcall__' attribute ignored [-Wattributes]
crc32_t NSISCALL CRC32(crc32_t crc, const unsigned char *buf, unsigned int len);
^
In file included from Source/build.cpp:31:0:
Source/exehead/api.h:66:47: warning: '__stdcall__' attribute ignored [-Wattributes]
int (NSISCALL *ExecuteCodeSegment)(int, HWND);
^
Source/exehead/api.h:67:44: warning: '__stdcall__' attribute ignored [-Wattributes]
void (NSISCALL *validate_filename)(char *);
^
Source/exehead/api.h:68:69: warning: '__stdcall__' attribute ignored [-Wattributes]
int (NSISCALL *RegisterPluginCallback)(HMODULE, NSISPLUGINCALLBACK); // returns 0 on success, 1 if already registered and < 0 on errors
^
Source/build.cpp: In member function 'int CEXEBuild::ProcessPages()':
Source/build.cpp:1716:14: warning: variable 'dir_used' set but not used [-Wunused-but-set-variable]
int dir=0, dir_used;
^
g++ -o build/release/makensis/clzma.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/clzma.cpp
gcc -o build/release/makensis/crc32.o -c -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/crc32.c
In file included from Source/crc32.c:18:0:
Source/crc32.h:27:1: warning: '__stdcall__' attribute ignored [-Wattributes]
crc32_t NSISCALL CRC32(crc32_t crc, const unsigned char *buf, unsigned int len);
^
Source/crc32.c:24:1: warning: '__stdcall__' attribute ignored [-Wattributes]
{
^
g++ -o build/release/makensis/DialogTemplate.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/DialogTemplate.cpp
g++ -o build/release/makensis/dirreader.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/dirreader.cpp
g++ -o build/release/makensis/fileform.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/fileform.cpp
In file included from Source/writer.h:22:0,
from Source/fileform.h:21,
from Source/fileform.cpp:17:
Source/crc32.h:27:79: warning: '__stdcall__' attribute ignored [-Wattributes]
crc32_t NSISCALL CRC32(crc32_t crc, const unsigned char *buf, unsigned int len);
^
g++ -o build/release/makensis/growbuf.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/growbuf.cpp
g++ -o build/release/makensis/icon.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/icon.cpp
g++ -o build/release/makensis/lang.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/lang.cpp
Source/lang.cpp: In member function 'int CEXEBuild::GenerateLangTable(LanguageTable*, int)':
Source/lang.cpp:592:19: warning: variable 'index' set but not used [-Wunused-but-set-variable]
int index;
^
g++ -o build/release/makensis/lineparse.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/lineparse.cpp
g++ -o build/release/makensis/makenssi.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/makenssi.cpp
g++ -o build/release/makensis/manifest.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/manifest.cpp
g++ -o build/release/makensis/mmap.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/mmap.cpp
g++ -o build/release/makensis/Plugins.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/Plugins.cpp
g++ -o build/release/makensis/ResourceEditor.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/ResourceEditor.cpp
g++ -o build/release/makensis/ResourceVersionInfo.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/ResourceVersionInfo.cpp
g++ -o build/release/makensis/script.o -c -Wno-non-virtual-dtor -Wall -O2 "-DNSISCALL= __attribute__((__stdcall__))" -D_WIN32_IE=0x0500 -Ibuild/release/config Source/script.cpp
In file included from Source/script.cpp:30:0:
Source/exehead/api.h:66:47: warning: '__stdcall__' attribute ignored [-Wattributes]
int (NSISCALL *ExecuteCodeSegment)(int, HWND);
^
Source/exehead/api.h:67:44: warning: '__stdcall__' attribute ignored [-Wattributes]
void (NSISCALL *validate_filename)(char *);
^
Source/exehead/api.h:68:69: warning: '__stdcall__' attribute ignored [-Wattributes]
int (NSISCALL *RegisterPluginCallback)(HMODULE, NSISPLUGINCALLBACK); // returns 0 on success, 1 if already registered and < 0 on errors
^
In file included from Source/script.cpp:22:0:
Source/util.h: In instantiation of 'void __free_with_close::operator()(T&) [with T = int]':
Source/util.h:114:32: required from 'ResourceManager<_RESOURCE, _FREE_RESOURCE>::~ResourceManager() [with _RESOURCE = int; _FREE_RESOURCE = __free_with_close]'
Source/script.cpp:6460:1: required from here
Source/util.h:128:59: error: 'close' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
template <typename T> void operator()(T& x) { freefunc(x); } \
^
Source/util.h:145:1: note: in expansion of macro 'RM_DEFINE_FREEFUNC'
RM_DEFINE_FREEFUNC(close);
^
In file included from Source/script.cpp:46:0:
/usr/include/unistd.h:353:12: note: 'int close(int)' declared here, later in the translation unit
extern int close (int __fd);
^
scons: *** [build/release/makensis/script.o] Error 1
scons: building terminated because of errors.
NRDS Server component installed sucessfully
[root@ip-172-31-18-160 nrdsconfigmanager]# cd /usr/local/nsis/bin/
-bash: cd: /usr/local/nsis/bin/: No such file or directory
[root@ip-172-31-18-160 nrdsconfigmanager]# cd /usr/local/nsis/
[root@ip-172-31-18-160 nsis]# ls
share
It appears a number of errors occurred. Since, as you can see from the prompts, that I ran this as root, permissions should not have been a problem.
I tried it again starting with using
su - instead of using
sudo -i to elevate as root. It went about the same way; errors.