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

Various issues resolved - re buffertools and node-gyp rebuild #84

Open
RickCogley opened this issue Oct 26, 2015 · 2 comments
Open

Various issues resolved - re buffertools and node-gyp rebuild #84

RickCogley opened this issue Oct 26, 2015 · 2 comments

Comments

@RickCogley
Copy link

I wanted to make an issue here just to document some of the things I had to do to get this working, although everything appears to be working now.

I'm installing hubot on a Webfaction shared server, running Centos6 and had to do a few things.

After cd-ing to my webapps/hubot application folder, I had to do an export PATH=$PWD/bin/:$PATH to make sure bin/hubot can be found.

Upgrade npm to 3.3.9 by doing:

npm install -g npm

Make sure npm uses python 2.7 by doing:

npm config set python /usr/local/bin/python2.7

Update node-gyp:

npm install -g node-gyp

Tell node-gyp to use python 2.7, too:

node-gyp --python /usr/local/bin/python2.7

After those steps, a number of problems went away, but, it still wouldn't work fully, claiming "Failed at the [email protected] install script 'node-gyp rebuild'.". Confirming on both buffertools and node-gyp repos, it appears you need a more advanced gcc, than what is provided by default for Centos6, which is what Webfaction maintains by default.

So, you then setup GCC 4.8+, which is C++11-capable, per: https://community.webfaction.com/questions/14581/compiling-gcc-48

The gcc upgrade takes quite a while, so it's best to do a screen session and run it in that. When it is done, you can exit and re enter your terminal, try npm upgrade again, and voilà!, it works.

@RickCogley RickCogley changed the title Various issues resolved Various issues resolved - re buffertools and node-gyp rebuild Oct 26, 2015
@MaxBittker
Copy link

@RickCogley Thanks for writing this down, helped me out today with my raspberry pi project!

@RickCogley
Copy link
Author

hi Max, glad to hear it.

On 2016 Oct 18, at 12:05, Max Bittker [email protected] wrote:

@RickCogley https://github.com/RickCogley Thanks for writing this down, helped me out today with my raspberry pi project!


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #84 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AAfRSCtyr5uKui_EO_NwhXxoq6TJr3NMks5q1DeXgaJpZM4GVZWl.

This email message and any attachments are confidential, and are meant to
be read by the intended recipient only. If you are not the intended
recipient, we would request you delete this message or any attachments
without reading or distributing, and kindly advise eSolia Inc. (contacts:
esolia.com/about http://esolia.com/about). Thank you in advance.

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

No branches or pull requests

2 participants