Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform support for OpenBSD? #1470

Closed
0x6373 opened this issue Apr 14, 2017 · 7 comments
Closed

Platform support for OpenBSD? #1470

0x6373 opened this issue Apr 14, 2017 · 7 comments

Comments

@0x6373
Copy link

0x6373 commented Apr 14, 2017

  • Version: 1.6.2
  • Target: OpenBSD

I was trying to get https://github.com/cryptocat/cryptocat running on an OpenBSD system.
After cloning the repository i ran "npm run setup", but this fails while installing [email protected] with the following error message:

> [email protected] postinstall /store/cryptocat/cryptocat/node_modules/electron
> node install.js

/store/cryptocat/cryptocat/node_modules/electron/install.js:61
      throw new Error('Electron builds are not available on platform: ' + platform)
      ^

Error: Electron builds are not available on platform: openbsd
    at getPlatformPath (/store/cryptocat/cryptocat/node_modules/electron/install.js:61:13)
    at Object.<anonymous> (/store/cryptocat/cryptocat/node_modules/electron/install.js:19:20)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:393:7)
    at startup (bootstrap_node.js:150:9)
npm ERR! OpenBSD 6.1
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.10.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

What would be needed to add support for OpenBSD as a platform?
Is this something realistically possible?

@develar
Copy link
Member

develar commented Apr 14, 2017

Could you please file issue to https://github.com/electron-userland/electron-prebuilt/issues?

@develar
Copy link
Member

develar commented Apr 14, 2017

Please try to add openbsd to the switch statement in the install.js line 61 (locally in your node modules, see filepath in the stack trace). Does it work?

@0x6373
Copy link
Author

0x6373 commented Apr 14, 2017

Hi, will do.

Since npm seems to cleanup after an error i just cloned electron-prebuilt, added the switch statement and did a npm install . (not sure if this is the right way to do).

This fails while trying to download the release from github (Error: Failed to find Electron v1.6.6 for openbsd-x64 at https://github.com/electron/electron/releases/download/v1.6.6/electron-v1.6.6-openbsd-x64.zip).
Is there a way to force npm to compile it locally instead of trying to fetch a pre-build release?

@MarshallOfSound
Copy link
Member

@develar @0x6373 Electron does not currently support OpenBSD to FreeBSD so there aren't any precompiled releases available do download. I highly doubt Electron will even build on those platforms as no code has been written to support them.

@develar
Copy link
Member

develar commented Apr 17, 2017

@MarshallOfSound electron works on FreeBSD, so for me not clear why openbsd is not supported.

@MarshallOfSound
Copy link
Member

@develar Is that just running the Linux build? There's on open issue on electron re it not working so I'll be surprised if it's working all of a sudden :D

@black-snow
Copy link
Contributor

Related: electron/electron#3797

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants