Community
Participate
Working Groups
When installing orion from npm (npm install -g orion), sometimes nodegit doesn't have pre-compiled binary. As a result, nodegit will be compiled. On linux, libssl-dev or openssl-devel must be installed before the compilation. We need to either document this to remind the user to install these libraries or prevent nodegit from building itself.
(In reply to Martin Wang from comment #0) > When installing orion from npm (npm install -g orion), sometimes nodegit > doesn't have pre-compiled binary. This can happen if the version of Node the user has installed doesn't match NodeGit's expected version. For example, if the user is on Node 7.x, then it will try to compile NodeGit because Orion uses NodeGit 0.16.0 and 0.16.0 does not support Node 7.x (so there are no binaries of NodeGit 0.16.0 for Node 7.x on AWS for npm to download).
I think we should (at a minimum) add a note to the NPM page that states our Node.js requirements and what will happen when they are not met (and what you need to have installed to have it build, etc).
So this is a Linux only build failure that happens when the wrong version of Node is used? Where do we document the node build? Please fix that place and close this bug.
(In reply to Steve Northover from comment #3) > So this is a Linux only build failure that happens when the wrong version of > Node is used? No. The reason I outlined in comment 3 affects all operating systems.
> On linux, libssl-dev or openssl-devel must be installed before the compilation. This is why I was wondering "Linux only". Are there two problems here?
(In reply to Steve Northover from comment #5) > > On linux, libssl-dev or openssl-devel must be installed before the compilation. > > This is why I was wondering "Linux only". Are there two problems here? Depends on how you look at it. There is one problem. The problem is that if npm doesn't find a precompiled binary that matches your system then npm will start compiling NodeGit from source. Now, what libraries and tools you will need to compile NodeGit manually will of course depend on your operating system.
So this is a documentation problem. Here are the links to the Node Server doc: https://wiki.eclipse.org/Orion/Node/Getting_started https://wiki.eclipse.org/Orion/Node/Developing Is there another doc that describes building the server? Is it in the README.MD? Please update the doc and close this bug report.
(In reply to Steve Northover from comment #7) > So this is a documentation problem. Here are the links to the Node Server > doc: > > https://wiki.eclipse.org/Orion/Node/Getting_started > https://wiki.eclipse.org/Orion/Node/Developing > > Is there another doc that describes building the server? Is it in the > README.MD? Please update the doc and close this bug report. I updated the wiki and the client readme: https://github.com/eclipse/orion.client/commit/807d434afa4865f9dfc58f8857dd675395a6f322 The updates will show up on the NPM page the next time we publish orion.