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

Run hubot on windows #166

Closed
lukesmith opened this Issue Nov 9, 2011 · 17 comments

Comments

Projects
None yet
7 participants
@lukesmith

lukesmith commented Nov 9, 2011

Is this something that would be useful to people?

I'd like to give it a go next week if noone is already working on it.

@tombell

This comment has been minimized.

Show comment
Hide comment
@tombell

tombell Nov 9, 2011

Contributor

This is totally possible once the "binary" dependencies which require gcc are removed from the core, i.e only deps being optparse, scoped-http-client and coffee-script, it would totally be possible.

Contributor

tombell commented Nov 9, 2011

This is totally possible once the "binary" dependencies which require gcc are removed from the core, i.e only deps being optparse, scoped-http-client and coffee-script, it would totally be possible.

@atmos

This comment has been minimized.

Show comment
Hide comment
@atmos

atmos Nov 9, 2011

Contributor

Yeah, the 2.0 version could probably run on windows. It's a week or two away though.

Contributor

atmos commented Nov 9, 2011

Yeah, the 2.0 version could probably run on windows. It's a week or two away though.

@atmos atmos closed this Nov 9, 2011

@laurentkempe

This comment has been minimized.

Show comment
Hide comment
@laurentkempe

laurentkempe Apr 24, 2012

Anyone successfull with running hubot on windows?

laurentkempe commented Apr 24, 2012

Anyone successfull with running hubot on windows?

@tombell

This comment has been minimized.

Show comment
Hide comment
@tombell

tombell Apr 24, 2012

Contributor

It can run, but it's not supported.

Contributor

tombell commented Apr 24, 2012

It can run, but it's not supported.

@laurentkempe

This comment has been minimized.

Show comment
Hide comment
@laurentkempe

laurentkempe Apr 24, 2012

I tried without success.

laurentkempe commented Apr 24, 2012

I tried without success.

@tombell

This comment has been minimized.

Show comment
Hide comment
@tombell

tombell Apr 24, 2012

Contributor

Then it doesn't work

Contributor

tombell commented Apr 24, 2012

Then it doesn't work

@copenhas

This comment has been minimized.

Show comment
Hide comment
@copenhas

copenhas Apr 27, 2012

We just got it running at work as an IRC bot on Windows 7. Ended up having to compile all the coffeescript to javascript (interpreter just gave error messages we weren't familiar with) and make sure everything was in a node_module directory with a little bat script to start it up at the root level. We settled on an internal repo' for our setup.

ourbot/
    ourbot.cmd - runs `node node_modules/hubot/bin/hubot.js`
    scripts/
    node_modules/
        hubot/

Something like that. Hope that helps for those interested.

copenhas commented Apr 27, 2012

We just got it running at work as an IRC bot on Windows 7. Ended up having to compile all the coffeescript to javascript (interpreter just gave error messages we weren't familiar with) and make sure everything was in a node_module directory with a little bat script to start it up at the root level. We settled on an internal repo' for our setup.

ourbot/
    ourbot.cmd - runs `node node_modules/hubot/bin/hubot.js`
    scripts/
    node_modules/
        hubot/

Something like that. Hope that helps for those interested.

@laurentkempe

This comment has been minimized.

Show comment
Hide comment
@laurentkempe

laurentkempe Apr 27, 2012

My issue at the moment is when I start the npm install I get the following error

node-waf configure build

'node-waf' is not recognized as an internal or external command,
operable program or batch file.

laurentkempe commented Apr 27, 2012

My issue at the moment is when I start the npm install I get the following error

node-waf configure build

'node-waf' is not recognized as an internal or external command,
operable program or batch file.

@copenhas

This comment has been minimized.

Show comment
Hide comment
@copenhas

copenhas Apr 27, 2012

We didn't run into any problems once we compiled it to javascript. @kahlow do you remember any of this?

copenhas commented Apr 27, 2012

We didn't run into any problems once we compiled it to javascript. @kahlow do you remember any of this?

@kahlow

This comment has been minimized.

Show comment
Hide comment
@kahlow

kahlow Apr 27, 2012

I didn't run into any problems like that. After getting node and npm setup on my pc I did an npm install Hubot. I then went through and converted all of the coffee script into javascript using coffee's '-c' command. After that, I ran the command 'node bin/hubot.js' from the hubot root directory expecting it to blow up but everything started up fine. I used the latest node and npm for windows.

kahlow commented Apr 27, 2012

I didn't run into any problems like that. After getting node and npm setup on my pc I did an npm install Hubot. I then went through and converted all of the coffee script into javascript using coffee's '-c' command. After that, I ran the command 'node bin/hubot.js' from the hubot root directory expecting it to blow up but everything started up fine. I used the latest node and npm for windows.

@laurentkempe

This comment has been minimized.

Show comment
Hide comment
@laurentkempe

laurentkempe Apr 27, 2012

which version of node and npm are you running?

laurentkempe commented Apr 27, 2012

which version of node and npm are you running?

@kahlow

This comment has been minimized.

Show comment
Hide comment
@kahlow

kahlow Apr 27, 2012

npm v 1.1.16

I'm going to recreate what we did in the office and write up a how-to.

kahlow commented Apr 27, 2012

npm v 1.1.16

I'm going to recreate what we did in the office and write up a how-to.

@laurentkempe

This comment has been minimized.

Show comment
Hide comment
@laurentkempe

laurentkempe Apr 27, 2012

Ok I have the same version and went much further with your instructions, may be just a question of minutes now

laurentkempe commented Apr 27, 2012

Ok I have the same version and went much further with your instructions, may be just a question of minutes now

@laurentkempe

This comment has been minimized.

Show comment
Hide comment
@laurentkempe

laurentkempe Apr 27, 2012

Bingo I have it running ! I've got the Hubot propmt and it replies to the hubot help command.

laurentkempe commented Apr 27, 2012

Bingo I have it running ! I've got the Hubot propmt and it replies to the hubot help command.

@laurentkempe

This comment has been minimized.

Show comment
Hide comment
@laurentkempe

laurentkempe Apr 27, 2012

I wrote a blog post Running Github Hubot on a Windows machine describing how I did it.

I also adapted the wiki.

Thanks for the help
btw I haven't compiled the coffeescript to js.

laurentkempe commented Apr 27, 2012

I wrote a blog post Running Github Hubot on a Windows machine describing how I did it.

I also adapted the wiki.

Thanks for the help
btw I haven't compiled the coffeescript to js.

@kahlow

This comment has been minimized.

Show comment
Hide comment
@kahlow

kahlow Apr 27, 2012

Sweet, I'm going to try your method now.

kahlow commented Apr 27, 2012

Sweet, I'm going to try your method now.

@fotijr

This comment has been minimized.

Show comment
Hide comment
@fotijr

fotijr Apr 27, 2016

This is an old thread, but if you're seeing the 'coffee' is not recognized error, try installing coffee globally.

npm install -g coffee-script

You don't need to manually compile to JavaScript, and you shouldn't be going to the hubot folder in node_modules to run hubot.

fotijr commented Apr 27, 2016

This is an old thread, but if you're seeing the 'coffee' is not recognized error, try installing coffee globally.

npm install -g coffee-script

You don't need to manually compile to JavaScript, and you shouldn't be going to the hubot folder in node_modules to run hubot.

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