strongloop / strong-pm

deployer for node applications
http://strong-pm.io
Other
1k stars 71 forks source link

Why strong-pm is not available on BSD systems ? #403

Closed wisekaa03 closed 6 years ago

wisekaa03 commented 7 years ago

Why strong-pm is not available on BSD systems ?

sam-github commented 7 years ago

What didn't work on BSD?

wisekaa03 commented 7 years ago

npm install -g strong-pm npm WARN deprecated node-uuid@1.4.8: Use uuid module instead /usr/local/bin/slpm -> /usr/local/lib/node_modules/strong-pm/bin/sl-pm.js /usr/local/bin/sl-pm -> /usr/local/lib/node_modules/strong-pm/bin/sl-pm.js /usr/local/bin/sl-pm-install -> /usr/local/lib/node_modules/strong-pm/bin/sl-pm-install.js /usr/local/bin/slpmctl -> /usr/local/lib/node_modules/strong-pm/bin/sl-pmctl.js /usr/local/bin/sl-pmctl -> /usr/local/lib/node_modules/strong-pm/bin/sl-pmctl.js

heapdump@0.3.9 install /usr/local/lib/node_modules/strong-pm/node_modules/heapdump node-gyp rebuild

gmake: вход в каталог «/usr/local/lib/node_modules/strong-pm/node_modules/heapdump/build» CXX(target) Release/obj.target/addon/src/heapdump.o SOLINK_MODULE(target) Release/obj.target/addon.node COPY Release/addon.node gmake: выход из каталога «/usr/local/lib/node_modules/strong-pm/node_modules/heapdump/build»

modern-syslog@1.1.4 install /usr/local/lib/node_modules/strong-pm/node_modules/modern-syslog node-gyp rebuild

gmake: вход в каталог «/usr/local/lib/node_modules/strong-pm/node_modules/modern-syslog/build» CXX(target) Release/obj.target/core/core.o SOLINK_MODULE(target) Release/obj.target/core.node COPY Release/core.node gmake: выход из каталога «/usr/local/lib/node_modules/strong-pm/node_modules/modern-syslog/build»

node-report@2.1.2 install /usr/local/lib/node_modules/strong-pm/node_modules/node-report node-gyp rebuild

gmake: вход в каталог «/usr/local/lib/node_modules/strong-pm/node_modules/node-report/build» CXX(target) Release/obj.target/api/src/node_report.o CXX(target) Release/obj.target/api/src/module.o SOLINK_MODULE(target) Release/obj.target/api.node COPY Release/api.node COPY /usr/local/lib/node_modules/strong-pm/node_modules/node-report/api.node TOUCH Release/obj.target/install.stamp gmake: выход из каталога «/usr/local/lib/node_modules/strong-pm/node_modules/node-report/build»

appmetrics@3.0.1 install /usr/local/lib/node_modules/strong-pm/node_modules/appmetrics node extract_all_binaries.js || node-gyp rebuild

Mon, 22 May 2017 08:26:57 GMT


You are installing the Node Application Metrics monitoring and profiling module. Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


freebsd-x64 is not a currently supported platform. Exiting Falling back to node-gyp rebuild gyp: Undefined variable portdir in omr-agentcore/binding.gyp while loading dependencies of binding.gyp while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:194:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System FreeBSD 10.2-STABLE gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/strong-pm/node_modules/appmetrics gyp ERR! node -v v7.8.0 gyp ERR! node-gyp -v v3.6.0 gyp ERR! not ok /usr/local/lib └── (empty)

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! appmetrics@3.0.1 install: node extract_all_binaries.js || node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the appmetrics@3.0.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Install with npm and run as a service

Install StrongLoop Process Manager from npm: $ npm install -g strong-pm On Linux distributions that support Upstart or systemd, install Process Manager as a service to ensure it starts when the system boots, aggregates logs properly, and so on; then start it.

Ubuntu 12.04+: $ sudo sl-pm-install $ sudo /sbin/initctl start strong-pm Red Hat Enterprise Linux 7+: $ sudo sl-pm-install --systemd $ sudo /usr/bin/systemctl start strong-pm Red Hat Enterprise Linux 5 and 6: $ sudo sl-pm-install --upstart=0.6 $ sudo /sbin/initctl start strong-pm NOTE: On RHEL, by default /usr/local/bin is not on the path, so if you encounter problems, use this install command: sudo env "PATH=$PATH" sl-pm-install For more information, see Setting up a production host in StrongLoop documentation.

And more...

radzik07 commented 6 years ago

bump, same here with appmetrics 3.1.3 Fallback to gyp throws error. @wisekaa03 did you solve it? @sam-github anything you know about it?

appmetrics@3.1.3 install /home/USERNAME/.npm-global/lib/node_modules/strong-pm/node_modules/appmetrics node extract_all_binaries.js || node-gyp rebuild

Sat, 11 Nov 2017 09:10:22 GMT


You are installing the Node Application Metrics monitoring and profiling module. Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


freebsd-x64 is not a currently supported platform. Exiting Falling back to node-gyp rebuild gyp: Undefined variable portdir in omr-agentcore/binding.gyp while loading dependencies of binding.gyp while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/home/USERNAME/.npm-global/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16) gyp ERR! stack at emitTwo (events.js:125:13) gyp ERR! stack at ChildProcess.emit (events.js:213:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System FreeBSD 10.3-STABLE gyp ERR! command "/usr/local/devil/node8/bin/node" "/usr/home/USERNAME/.npm-global/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/home/USERNAME/.npm-global/lib/node_modules/strong-pm/node_modules/appmetrics gyp ERR! node -v v8.4.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! appmetrics@3.1.3 install: node extract_all_binaries.js || node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the appmetrics@3.1.3 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

sam-github commented 6 years ago

Bring it up on https://github.com/RuntimeTools/appmetrics, perhaps with a PR to add support for BSD, there isn't anything strong-pm can do about this.