Cacti 1.2.5 and weathermap standalone
Moderators: Developers, Moderators
Cacti 1.2.5 and weathermap standalone
Hi all,
Is possible to run weathermap as standalone version (Command-Line Tool Only) on Windows with Cacti 1.2.5?
1.
Is possible to run weathermap as standalone version (Command-Line Tool Only) on Windows with Cacti 1.2.5?
1.
Re: Cacti 1.2.5 and weathermap standalone
Any ideas how to avoid this problem?
C:\inetpub\wwwroot\cacti\plugins\weathermap>composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-posix * is missing from your system. Install or enable PHP's posix extension.
Problem 2
- Installation request for lstrojny/phpunit-clever-and-smart ^0.5.0 -> satisfiable by lstrojny/phpunit-clever-and-smart[0.5.0].
- lstrojny/phpunit-clever-and-smart 0.5.0 requires ext-sqlite3 * -> the requested PHP extension sqlite3 is missing from your system.
Problem 3
- theseer/phpdox dev-master requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.9.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.8.1.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.8.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.8.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.7.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.6.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.6 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.5 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.4.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.4 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.3 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.12.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.11.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.11.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.11.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.10.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.10.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- Installation request for theseer/phpdox * -> satisfiable by theseer/phpdox[0.10.0, 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.12.0, 0.6, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.4.1, 0.6.5, 0.6.6, 0.6.6.1, 0.7.0, 0.8.0, 0.8.1, 0.8.1.1, 0.9.0, dev-master].
To enable extensions, verify that they are enabled in your .ini files:
- C:\php\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
C:\inetpub\wwwroot\cacti\plugins\weathermap>
C:\inetpub\wwwroot\cacti\plugins\weathermap>composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-posix * is missing from your system. Install or enable PHP's posix extension.
Problem 2
- Installation request for lstrojny/phpunit-clever-and-smart ^0.5.0 -> satisfiable by lstrojny/phpunit-clever-and-smart[0.5.0].
- lstrojny/phpunit-clever-and-smart 0.5.0 requires ext-sqlite3 * -> the requested PHP extension sqlite3 is missing from your system.
Problem 3
- theseer/phpdox dev-master requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.9.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.8.1.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.8.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.8.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.7.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.6.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.6 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.5 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.4.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.4 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.3 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.6 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.12.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.11.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.11.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.11.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.10.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- theseer/phpdox 0.10.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- Installation request for theseer/phpdox * -> satisfiable by theseer/phpdox[0.10.0, 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.12.0, 0.6, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.4.1, 0.6.5, 0.6.6, 0.6.6.1, 0.7.0, 0.8.0, 0.8.1, 0.8.1.1, 0.9.0, dev-master].
To enable extensions, verify that they are enabled in your .ini files:
- C:\php\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
C:\inetpub\wwwroot\cacti\plugins\weathermap>
Re: Cacti 1.2.5 and weathermap standalone
Yes, install those php extensions and you should be good to go (assuming that aren't other missing dependancies - you did check the installation requirements right?!
Note, the gui for 1.2.5 isn't in a full working state.. In fact, Howie is currently transitioning it to a point where I can make it work properly with Cacti's core.
Note, the gui for 1.2.5 isn't in a full working state.. In fact, Howie is currently transitioning it to a point where I can make it work properly with Cacti's core.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Cacti 1.2.5 and weathermap standalone
To run weathermap, you don't need to touch composer. Just download the zip as usual, from the releases section. Composer (and npm) is there to install all the junk I use to test Weathermap and build the final zips.
The only php extensions that weathermap itself needs are php-gd, php-snmp (if you use the snmp plugin) and php-mysql (if you want to pull data from the Cacti database (not RRD files) - but you will already have that for Cacti to work).
The only php extensions that weathermap itself needs are php-gd, php-snmp (if you use the snmp plugin) and php-mysql (if you want to pull data from the Cacti database (not RRD files) - but you will already have that for Cacti to work).
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Re: Cacti 1.2.5 and weathermap standalone
I have problem with installing posix-ext on Windows
C:\inetpub\wwwroot\cacti\plugins\weathermap>npm install --global --production windows-build-tools
no errors
C:\inetpub\wwwroot\cacti\plugins\weathermap>npm install posix-ext
> posix@4.1.2 install C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix
> node-gyp rebuild
C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
posix.cc
win_delay_load_hook.cc
c:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix\src\posix.cc(2): fatal error C1083: Cannot open include
file: 'unistd.h': No such file or directory [C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix\build\posix
.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix
gyp ERR! node -v v10.16.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! posix@4.1.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the posix@4.1.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\usertst\AppData\Roaming\npm-cache\_logs\2019-08-06T13_30_28_875Z-debug.log
C:\inetpub\wwwroot\cacti\plugins\weathermap>
C:\Users\usertst\AppData\Roaming\npm-cache\_logs\2019-08-06T13_30_28_875Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'posix-ext' ]
2 info using npm@6.9.0
3 info using node@v10.16.1
4 verbose npm-session ffa4aed83a78f2d6
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npmjs.org/posix-ext 859ms (from cache)
8 silly pacote tag manifest for posix-ext@latest fetched in 875ms
9 timing stage:loadCurrentTree Completed in 937ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 16ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule posix-ext@0.4.5 checking installable status
17 http fetch GET 304 https://registry.npmjs.org/bindings 93ms (from cache)
18 silly pacote range manifest for bindings@~1.3.0 fetched in 93ms
19 silly resolveWithNewModule bindings@1.3.1 checking installable status
20 http fetch GET 304 https://registry.npmjs.org/posix 109ms (from cache)
21 silly pacote range manifest for posix@^4.1.1 fetched in 109ms
22 silly resolveWithNewModule posix@4.1.2 checking installable status
23 http fetch GET 304 https://registry.npmjs.org/nan 109ms (from cache)
24 silly pacote range manifest for nan@~2.10.0 fetched in 109ms
25 silly resolveWithNewModule nan@2.10.0 checking installable status
26 http fetch GET 304 https://registry.npmjs.org/npm-platform-dependencies 828ms (from cache)
27 silly pacote range manifest for npm-platform-dependencies@~0.1.0 fetched in 828ms
28 silly resolveWithNewModule npm-platform-dependencies@0.1.0 checking installable status
29 http fetch GET 304 https://registry.npmjs.org/cross-spawn 62ms (from cache)
30 silly pacote range manifest for cross-spawn@^4.0.0 fetched in 62ms
31 silly resolveWithNewModule cross-spawn@4.0.2 checking installable status
32 http fetch GET 200 https://registry.npmjs.org/lru-cache 32ms (from cache)
33 silly pacote range manifest for lru-cache@^4.0.1 fetched in 32ms
34 silly resolveWithNewModule lru-cache@4.1.5 checking installable status
35 http fetch GET 304 https://registry.npmjs.org/which 47ms (from cache)
36 silly pacote range manifest for which@^1.2.9 fetched in 63ms
37 silly resolveWithNewModule which@1.3.1 checking installable status
38 http fetch GET 200 https://registry.npmjs.org/yallist 15ms (from cache)
39 silly pacote range manifest for yallist@^2.1.2 fetched in 15ms
40 silly resolveWithNewModule yallist@2.1.2 checking installable status
41 http fetch GET 304 https://registry.npmjs.org/pseudomap 78ms (from cache)
42 silly pacote range manifest for pseudomap@^1.0.2 fetched in 78ms
43 silly resolveWithNewModule pseudomap@1.0.2 checking installable status
44 http fetch GET 304 https://registry.npmjs.org/isexe 63ms (from cache)
45 silly pacote range manifest for isexe@^2.0.0 fetched in 63ms
46 silly resolveWithNewModule isexe@2.0.0 checking installable status
47 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 1094ms
48 timing stage:loadIdealTree Completed in 1110ms
49 silly currentTree network-weathermap@1.0.0
49 silly currentTree +-- bindings@1.3.1
49 silly currentTree +-- cross-spawn@4.0.2
49 silly currentTree +-- isexe@2.0.0
49 silly currentTree +-- jquery@3.4.0
49 silly currentTree +-- lru-cache@4.1.5
49 silly currentTree +-- nan@2.10.0
49 silly currentTree +-- npm-platform-dependencies@0.1.0
49 silly currentTree +-- pseudomap@1.0.2
49 silly currentTree +-- which@1.3.1
49 silly currentTree `-- yallist@2.1.2
50 silly idealTree network-weathermap@1.0.0
50 silly idealTree +-- bindings@1.3.1
50 silly idealTree +-- cross-spawn@4.0.2
50 silly idealTree +-- isexe@2.0.0
50 silly idealTree +-- jquery@3.4.0
50 silly idealTree +-- lru-cache@4.1.5
50 silly idealTree +-- nan@2.10.0
50 silly idealTree +-- npm-platform-dependencies@0.1.0
50 silly idealTree +-- posix-ext@0.4.5
50 silly idealTree +-- posix@4.1.2
50 silly idealTree +-- pseudomap@1.0.2
50 silly idealTree +-- which@1.3.1
50 silly idealTree `-- yallist@2.1.2
51 silly install generateActionsToTake
52 timing stage:generateActionsToTake Completed in 15ms
53 silly diffTrees action count 2
54 silly diffTrees add posix@4.1.2
55 silly diffTrees add posix-ext@0.4.5
56 silly decomposeActions action count 16
57 silly decomposeActions fetch posix@4.1.2
58 silly decomposeActions extract posix@4.1.2
59 silly decomposeActions preinstall posix@4.1.2
60 silly decomposeActions build posix@4.1.2
61 silly decomposeActions install posix@4.1.2
62 silly decomposeActions postinstall posix@4.1.2
63 silly decomposeActions finalize posix@4.1.2
64 silly decomposeActions refresh-package-json posix@4.1.2
65 silly decomposeActions fetch posix-ext@0.4.5
66 silly decomposeActions extract posix-ext@0.4.5
67 silly decomposeActions preinstall posix-ext@0.4.5
68 silly decomposeActions build posix-ext@0.4.5
69 silly decomposeActions install posix-ext@0.4.5
70 silly decomposeActions postinstall posix-ext@0.4.5
71 silly decomposeActions finalize posix-ext@0.4.5
72 silly decomposeActions refresh-package-json posix-ext@0.4.5
73 silly install executeActions
74 silly doSerial global-install 16
75 verbose correctMkdir C:\Users\usertst\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing
76 verbose lock using C:\Users\usertst\AppData\Roaming\npm-cache\_locks\staging-2c8ea0663135b876.lock for C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\.staging
77 silly doParallel extract 2
78 silly extract posix@4.1.2
79 silly extract posix-ext@0.4.5
80 silly tarball trying posix@^4.1.1 by hash: sha512-R1YLMO0tDKuWVRQfcL3dbfv9LvLmB4W6oh+yE2qwlGG0Otkgz1KDIZjnqcs/v+RZfuvDLpCDZs9MQgbcyjppCg==
81 silly tarball trying posix-ext@latest by hash: sha512-sdNDmR07GyduWi+h9BBYHzPMwtsGkmhGJXR3x2IzDWVHrJvUijEz2oVuBCwE1Ntg84QdkFM3J1rnpKuSzPRtzg==
82 silly extract posix@^4.1.1 extracted to C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\.staging\posix-593fca2a (109ms)
83 silly extract posix-ext@latest extracted to C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\.staging\posix-ext-f866b3d7 (109ms)
84 timing action:extract Completed in 109ms
85 silly doReverseSerial unbuild 16
86 silly doSerial remove 16
87 silly doSerial move 16
88 silly doSerial finalize 16
89 silly finalize C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix
90 silly finalize C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix-ext
91 timing action:finalize Completed in 16ms
92 silly doParallel refresh-package-json 2
93 silly refresh-package-json C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix
94 silly refresh-package-json C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix-ext
95 timing action:refresh-package-json Completed in 0ms
96 silly doParallel preinstall 2
97 silly preinstall posix@4.1.2
98 info lifecycle posix@4.1.2~preinstall: posix@4.1.2
99 silly preinstall posix-ext@0.4.5
100 info lifecycle posix-ext@0.4.5~preinstall: posix-ext@0.4.5
101 timing action:preinstall Completed in 15ms
102 silly doSerial build 16
103 silly build posix@4.1.2
104 info linkStuff posix@4.1.2
105 silly linkStuff posix@4.1.2 has C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules as its parent node_modules
106 silly build posix-ext@0.4.5
107 info linkStuff posix-ext@0.4.5
108 silly linkStuff posix-ext@0.4.5 has C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules as its parent node_modules
109 timing action:build Completed in 0ms
110 silly doSerial global-link 16
111 silly doParallel update-linked 0
112 silly doSerial install 16
113 silly install posix@4.1.2
114 info lifecycle posix@4.1.2~install: posix@4.1.2
115 verbose lifecycle posix@4.1.2~install: unsafe-perm in lifecycle true
116 verbose lifecycle posix@4.1.2~install: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix\node_modules\.bin;C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\.bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\net-snmp\bin;C:\php;C:\Program Files\nodejs\;C:\ProgramData\ComposerSetup\bin;C:\Users\usertst\AppData\Local\Microsoft\WindowsApps;C:\Users\usertst\AppData\Roaming\npm;C:\Users\usertst\AppData\Roaming\Composer\vendor\bin
117 verbose lifecycle posix@4.1.2~install: CWD: C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix
118 silly lifecycle posix@4.1.2~install: Args: [ '/d /s /c', 'node-gyp rebuild' ]
119 timing audit submit Completed in 360ms
120 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/sec ... dits/quick 360ms
121 timing audit body Completed in 0ms
122 silly lifecycle posix@4.1.2~install: Returned: code: 1 signal: null
123 info lifecycle posix@4.1.2~install: Failed to exec install script
124 timing action:install Completed in 4953ms
125 verbose unlock done using C:\Users\usertst\AppData\Roaming\npm-cache\_locks\staging-2c8ea0663135b876.lock for C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\.staging
126 timing stage:rollbackFailedOptional Completed in 32ms
127 timing stage:runTopLevelLifecycles Completed in 7203ms
128 silly saveTree network-weathermap@1.0.0
128 silly saveTree +-- jquery@3.4.0
128 silly saveTree `-- posix-ext@0.4.5
128 silly saveTree +-- bindings@1.3.1
128 silly saveTree +-- nan@2.10.0
128 silly saveTree +-- npm-platform-dependencies@0.1.0
128 silly saveTree | `-- cross-spawn@4.0.2
128 silly saveTree | +-- lru-cache@4.1.5
128 silly saveTree | | +-- pseudomap@1.0.2
128 silly saveTree | | `-- yallist@2.1.2
128 silly saveTree | `-- which@1.3.1
128 silly saveTree | `-- isexe@2.0.0
128 silly saveTree `-- posix@4.1.2
129 verbose stack Error: posix@4.1.2 install: `node-gyp rebuild`
129 verbose stack Exit status 1
129 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
129 verbose stack at EventEmitter.emit (events.js:198:13)
129 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
129 verbose stack at ChildProcess.emit (events.js:198:13)
129 verbose stack at maybeClose (internal/child_process.js:982:16)
129 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
130 verbose pkgid posix@4.1.2
131 verbose cwd C:\inetpub\wwwroot\cacti\plugins\weathermap
132 verbose Windows_NT 10.0.14393
133 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "posix-ext"
134 verbose node v10.16.1
135 verbose npm v6.9.0
136 error code ELIFECYCLE
137 error errno 1
138 error posix@4.1.2 install: `node-gyp rebuild`
138 error Exit status 1
139 error Failed at the posix@4.1.2 install script.
139 error This is probably not a problem with npm. There is likely additional logging output above.
140 verbose exit [ 1, true ]
C:\inetpub\wwwroot\cacti\plugins\weathermap>npm install --global --production windows-build-tools
no errors
C:\inetpub\wwwroot\cacti\plugins\weathermap>npm install posix-ext
> posix@4.1.2 install C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix
> node-gyp rebuild
C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
posix.cc
win_delay_load_hook.cc
c:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix\src\posix.cc(2): fatal error C1083: Cannot open include
file: 'unistd.h': No such file or directory [C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix\build\posix
.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix
gyp ERR! node -v v10.16.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! posix@4.1.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the posix@4.1.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\usertst\AppData\Roaming\npm-cache\_logs\2019-08-06T13_30_28_875Z-debug.log
C:\inetpub\wwwroot\cacti\plugins\weathermap>
C:\Users\usertst\AppData\Roaming\npm-cache\_logs\2019-08-06T13_30_28_875Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'posix-ext' ]
2 info using npm@6.9.0
3 info using node@v10.16.1
4 verbose npm-session ffa4aed83a78f2d6
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npmjs.org/posix-ext 859ms (from cache)
8 silly pacote tag manifest for posix-ext@latest fetched in 875ms
9 timing stage:loadCurrentTree Completed in 937ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 16ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule posix-ext@0.4.5 checking installable status
17 http fetch GET 304 https://registry.npmjs.org/bindings 93ms (from cache)
18 silly pacote range manifest for bindings@~1.3.0 fetched in 93ms
19 silly resolveWithNewModule bindings@1.3.1 checking installable status
20 http fetch GET 304 https://registry.npmjs.org/posix 109ms (from cache)
21 silly pacote range manifest for posix@^4.1.1 fetched in 109ms
22 silly resolveWithNewModule posix@4.1.2 checking installable status
23 http fetch GET 304 https://registry.npmjs.org/nan 109ms (from cache)
24 silly pacote range manifest for nan@~2.10.0 fetched in 109ms
25 silly resolveWithNewModule nan@2.10.0 checking installable status
26 http fetch GET 304 https://registry.npmjs.org/npm-platform-dependencies 828ms (from cache)
27 silly pacote range manifest for npm-platform-dependencies@~0.1.0 fetched in 828ms
28 silly resolveWithNewModule npm-platform-dependencies@0.1.0 checking installable status
29 http fetch GET 304 https://registry.npmjs.org/cross-spawn 62ms (from cache)
30 silly pacote range manifest for cross-spawn@^4.0.0 fetched in 62ms
31 silly resolveWithNewModule cross-spawn@4.0.2 checking installable status
32 http fetch GET 200 https://registry.npmjs.org/lru-cache 32ms (from cache)
33 silly pacote range manifest for lru-cache@^4.0.1 fetched in 32ms
34 silly resolveWithNewModule lru-cache@4.1.5 checking installable status
35 http fetch GET 304 https://registry.npmjs.org/which 47ms (from cache)
36 silly pacote range manifest for which@^1.2.9 fetched in 63ms
37 silly resolveWithNewModule which@1.3.1 checking installable status
38 http fetch GET 200 https://registry.npmjs.org/yallist 15ms (from cache)
39 silly pacote range manifest for yallist@^2.1.2 fetched in 15ms
40 silly resolveWithNewModule yallist@2.1.2 checking installable status
41 http fetch GET 304 https://registry.npmjs.org/pseudomap 78ms (from cache)
42 silly pacote range manifest for pseudomap@^1.0.2 fetched in 78ms
43 silly resolveWithNewModule pseudomap@1.0.2 checking installable status
44 http fetch GET 304 https://registry.npmjs.org/isexe 63ms (from cache)
45 silly pacote range manifest for isexe@^2.0.0 fetched in 63ms
46 silly resolveWithNewModule isexe@2.0.0 checking installable status
47 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 1094ms
48 timing stage:loadIdealTree Completed in 1110ms
49 silly currentTree network-weathermap@1.0.0
49 silly currentTree +-- bindings@1.3.1
49 silly currentTree +-- cross-spawn@4.0.2
49 silly currentTree +-- isexe@2.0.0
49 silly currentTree +-- jquery@3.4.0
49 silly currentTree +-- lru-cache@4.1.5
49 silly currentTree +-- nan@2.10.0
49 silly currentTree +-- npm-platform-dependencies@0.1.0
49 silly currentTree +-- pseudomap@1.0.2
49 silly currentTree +-- which@1.3.1
49 silly currentTree `-- yallist@2.1.2
50 silly idealTree network-weathermap@1.0.0
50 silly idealTree +-- bindings@1.3.1
50 silly idealTree +-- cross-spawn@4.0.2
50 silly idealTree +-- isexe@2.0.0
50 silly idealTree +-- jquery@3.4.0
50 silly idealTree +-- lru-cache@4.1.5
50 silly idealTree +-- nan@2.10.0
50 silly idealTree +-- npm-platform-dependencies@0.1.0
50 silly idealTree +-- posix-ext@0.4.5
50 silly idealTree +-- posix@4.1.2
50 silly idealTree +-- pseudomap@1.0.2
50 silly idealTree +-- which@1.3.1
50 silly idealTree `-- yallist@2.1.2
51 silly install generateActionsToTake
52 timing stage:generateActionsToTake Completed in 15ms
53 silly diffTrees action count 2
54 silly diffTrees add posix@4.1.2
55 silly diffTrees add posix-ext@0.4.5
56 silly decomposeActions action count 16
57 silly decomposeActions fetch posix@4.1.2
58 silly decomposeActions extract posix@4.1.2
59 silly decomposeActions preinstall posix@4.1.2
60 silly decomposeActions build posix@4.1.2
61 silly decomposeActions install posix@4.1.2
62 silly decomposeActions postinstall posix@4.1.2
63 silly decomposeActions finalize posix@4.1.2
64 silly decomposeActions refresh-package-json posix@4.1.2
65 silly decomposeActions fetch posix-ext@0.4.5
66 silly decomposeActions extract posix-ext@0.4.5
67 silly decomposeActions preinstall posix-ext@0.4.5
68 silly decomposeActions build posix-ext@0.4.5
69 silly decomposeActions install posix-ext@0.4.5
70 silly decomposeActions postinstall posix-ext@0.4.5
71 silly decomposeActions finalize posix-ext@0.4.5
72 silly decomposeActions refresh-package-json posix-ext@0.4.5
73 silly install executeActions
74 silly doSerial global-install 16
75 verbose correctMkdir C:\Users\usertst\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing
76 verbose lock using C:\Users\usertst\AppData\Roaming\npm-cache\_locks\staging-2c8ea0663135b876.lock for C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\.staging
77 silly doParallel extract 2
78 silly extract posix@4.1.2
79 silly extract posix-ext@0.4.5
80 silly tarball trying posix@^4.1.1 by hash: sha512-R1YLMO0tDKuWVRQfcL3dbfv9LvLmB4W6oh+yE2qwlGG0Otkgz1KDIZjnqcs/v+RZfuvDLpCDZs9MQgbcyjppCg==
81 silly tarball trying posix-ext@latest by hash: sha512-sdNDmR07GyduWi+h9BBYHzPMwtsGkmhGJXR3x2IzDWVHrJvUijEz2oVuBCwE1Ntg84QdkFM3J1rnpKuSzPRtzg==
82 silly extract posix@^4.1.1 extracted to C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\.staging\posix-593fca2a (109ms)
83 silly extract posix-ext@latest extracted to C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\.staging\posix-ext-f866b3d7 (109ms)
84 timing action:extract Completed in 109ms
85 silly doReverseSerial unbuild 16
86 silly doSerial remove 16
87 silly doSerial move 16
88 silly doSerial finalize 16
89 silly finalize C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix
90 silly finalize C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix-ext
91 timing action:finalize Completed in 16ms
92 silly doParallel refresh-package-json 2
93 silly refresh-package-json C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix
94 silly refresh-package-json C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix-ext
95 timing action:refresh-package-json Completed in 0ms
96 silly doParallel preinstall 2
97 silly preinstall posix@4.1.2
98 info lifecycle posix@4.1.2~preinstall: posix@4.1.2
99 silly preinstall posix-ext@0.4.5
100 info lifecycle posix-ext@0.4.5~preinstall: posix-ext@0.4.5
101 timing action:preinstall Completed in 15ms
102 silly doSerial build 16
103 silly build posix@4.1.2
104 info linkStuff posix@4.1.2
105 silly linkStuff posix@4.1.2 has C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules as its parent node_modules
106 silly build posix-ext@0.4.5
107 info linkStuff posix-ext@0.4.5
108 silly linkStuff posix-ext@0.4.5 has C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules as its parent node_modules
109 timing action:build Completed in 0ms
110 silly doSerial global-link 16
111 silly doParallel update-linked 0
112 silly doSerial install 16
113 silly install posix@4.1.2
114 info lifecycle posix@4.1.2~install: posix@4.1.2
115 verbose lifecycle posix@4.1.2~install: unsafe-perm in lifecycle true
116 verbose lifecycle posix@4.1.2~install: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix\node_modules\.bin;C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\.bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\net-snmp\bin;C:\php;C:\Program Files\nodejs\;C:\ProgramData\ComposerSetup\bin;C:\Users\usertst\AppData\Local\Microsoft\WindowsApps;C:\Users\usertst\AppData\Roaming\npm;C:\Users\usertst\AppData\Roaming\Composer\vendor\bin
117 verbose lifecycle posix@4.1.2~install: CWD: C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\posix
118 silly lifecycle posix@4.1.2~install: Args: [ '/d /s /c', 'node-gyp rebuild' ]
119 timing audit submit Completed in 360ms
120 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/sec ... dits/quick 360ms
121 timing audit body Completed in 0ms
122 silly lifecycle posix@4.1.2~install: Returned: code: 1 signal: null
123 info lifecycle posix@4.1.2~install: Failed to exec install script
124 timing action:install Completed in 4953ms
125 verbose unlock done using C:\Users\usertst\AppData\Roaming\npm-cache\_locks\staging-2c8ea0663135b876.lock for C:\inetpub\wwwroot\cacti\plugins\weathermap\node_modules\.staging
126 timing stage:rollbackFailedOptional Completed in 32ms
127 timing stage:runTopLevelLifecycles Completed in 7203ms
128 silly saveTree network-weathermap@1.0.0
128 silly saveTree +-- jquery@3.4.0
128 silly saveTree `-- posix-ext@0.4.5
128 silly saveTree +-- bindings@1.3.1
128 silly saveTree +-- nan@2.10.0
128 silly saveTree +-- npm-platform-dependencies@0.1.0
128 silly saveTree | `-- cross-spawn@4.0.2
128 silly saveTree | +-- lru-cache@4.1.5
128 silly saveTree | | +-- pseudomap@1.0.2
128 silly saveTree | | `-- yallist@2.1.2
128 silly saveTree | `-- which@1.3.1
128 silly saveTree | `-- isexe@2.0.0
128 silly saveTree `-- posix@4.1.2
129 verbose stack Error: posix@4.1.2 install: `node-gyp rebuild`
129 verbose stack Exit status 1
129 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
129 verbose stack at EventEmitter.emit (events.js:198:13)
129 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
129 verbose stack at ChildProcess.emit (events.js:198:13)
129 verbose stack at maybeClose (internal/child_process.js:982:16)
129 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
130 verbose pkgid posix@4.1.2
131 verbose cwd C:\inetpub\wwwroot\cacti\plugins\weathermap
132 verbose Windows_NT 10.0.14393
133 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "posix-ext"
134 verbose node v10.16.1
135 verbose npm v6.9.0
136 error code ELIFECYCLE
137 error errno 1
138 error posix@4.1.2 install: `node-gyp rebuild`
138 error Exit status 1
139 error Failed at the posix@4.1.2 install script.
139 error This is probably not a problem with npm. There is likely additional logging output above.
140 verbose exit [ 1, true ]
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Cacti 1.2.5 and weathermap standalone
Or npm!Howie wrote:To run weathermap, you don't need to touch composer.
If you just download the release version zip, you don't need to do anything with node, npm, composer, bower, phpunit, make etc.
(you might need to enable the php-gd module, but run
Code: Select all
php check.php
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Cacti 1.2.5 and weathermap standalone
(also, to explain your actual error - ext-posix is a PHP extension. npm installs Javascript modules for nodejs. It will never work. To enable PHP extensions, usually you edit php.ini, if they are standard extensions like posix or gd)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Who is online
Users browsing this forum: No registered users and 3 guests