monarch-legacy icon indicating copy to clipboard operation
monarch-legacy copied to clipboard

Add g++/c++ compiler requirement to documentation

Open yuanzhou opened this issue 8 years ago • 9 comments

I'm using nvm to manage different versions of nodejs. So today I installed nodejs 4.6.0 via nvm, and then updated the npm to 3.10.8 since nodejs 4.6.0 comes with npm 2.15.9.

And I verified the versions:

[zhy19@fedora23 monarch-app]$ npm version
{ 'monarch-app': '0.0.1',
  npm: '3.10.8',
  ares: '1.10.1-DEV',
  http_parser: '2.7.0',
  icu: '56.1',
  modules: '46',
  node: '4.6.0',
  openssl: '1.0.2j',
  uv: '1.9.1',
  v8: '4.5.103.37',
  zlib: '1.2.8' }

Upon running ./install.sh, I got the following error:

screenshot from 2016-10-10 14-41-20

After searching the issues, I found that Chris encountered the similar issue last year: https://github.com/monarch-initiative/monarch-app/issues/977

Then after the package tree view, I saw another error: screenshot from 2016-10-10 14-45-16

I've also attached my npm-debug.log file as a txt file.

npm-debug.log.txt

I could still run npm run start to bring up the server but I'm not sure if any functionalities will be affected due to these errors.

yuanzhou avatar Oct 10 '16 18:10 yuanzhou

Looks like a C compiler issue, could you try installing g++ (GNU C++ compiler)?

kshefchek avatar Oct 11 '16 00:10 kshefchek

Thanks a lot @kshefchek, I installed gcc-c++ on my fedora23 and the errors are gone.

I thought nodejs and npm are all I need, how come I'll need to install g++ separately?

yuanzhou avatar Oct 11 '16 20:10 yuanzhou

It must be a requirement for one of our dependencies (looks like the sleep module). We should add it to our documentation.

kshefchek avatar Oct 14 '16 13:10 kshefchek

@kshefchek This may be of interest to you: https://github.com/geneontology/noctua/issues/364 Essentially, once the gcc/++ dependencies get in there to a certain version, it starts to get harder (sometimes impossible) to maintain that across platforms. Be wary of library upgrades--security against balancing against whoever has the most recent libs.

kltm avatar Oct 14 '16 20:10 kltm

Also, upstream of that: https://github.com/geneontology/noctua/pull/319#issuecomment-249338272

kltm avatar Oct 14 '16 20:10 kltm

I'm seeing similar problems on my OS X machine, even with gcc/g++ installed

harryhoch avatar Oct 19 '16 14:10 harryhoch

I just had this issue again on my Mac OS X. I have gcc 4.2.1 installed already. I did a quick search and someone said node v4 updated v8 engine which requires newer version of gcc.

screen shot 2016-10-25 at 10 09 44 am

yuanzhou avatar Oct 25 '16 14:10 yuanzhou

@harryhoch how did you update the gcc on your mac? I don't seem to find a good solution on my mac. On fedora 23 I simply installed the latest gcc and the problem was solved.

yuanzhou avatar Oct 25 '16 14:10 yuanzhou

@yuanzhou, try homebrew - http://brew.sh/ - and then "brew install gcc"

harryhoch avatar Oct 25 '16 16:10 harryhoch