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

Fails when passing JS to the bot (>>) #48

Closed
jasonwilliams opened this issue Apr 8, 2015 · 11 comments
Closed

Fails when passing JS to the bot (>>) #48

jasonwilliams opened this issue Apr 8, 2015 · 11 comments

Comments

@jasonwilliams
Copy link
Contributor

Error: spawn /home/ella/ella/lib/sandbox/sm/shovel.bin ENOENT
    at exports._errnoException (util.js:746:11)
    at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
    at child_process.js:1144:20
    at process._tickCallback (node.js:355:11)

Is the error I get when trying to use the Ecma features.
Node JS vs 0.12.2
Ubuntu 12.10

Tried building shovel with V8 installed ( libv8-dev (3.7.12.22-3))
But the build fails:

g++ shovel.cpp `pkg-config v8 --libs --cflags` -o shovel.bin -O3 -g -Wall -Wextra -pedantic -mtune=native
Package v8 was not found in the pkg-config search path.
Perhaps you should add the directory containing `v8.pc'
to the PKG_CONFIG_PATH environment variable
No package 'v8' found
@gkatsev
Copy link
Member

gkatsev commented Apr 8, 2015

Our documentation is terrible. Some should write up exactly what's needed but essentially, you want to go into each folder in sandox and run make in each.

@ljharb
Copy link
Member

ljharb commented Apr 8, 2015

Even better, we should just make a root make task that does that for you.

@jasonwilliams
Copy link
Contributor Author

@gkatsev @ljharb
I've added some more info
it moans about Package v8 not being installed, not sure if that helps

I've tried going into each folder and running Make, thats the error i get when i go into v8

@yorickvP
Copy link
Member

You need to compile either the sm or v8 shovel, but you don't need both. If one of them works, that's enough.

It seems some distros don't include a v8 file for pkg-config (v8 thinks this is the distros job), so we'll have to find a fix for that.

@jasonwilliams
Copy link
Contributor Author

@yorickvP is there anything i can do as a quick fix for now just to get it working? (regarding the pkg-config issue)

@yorickvP
Copy link
Member

Using spidermonkey instead of v8 is probably the easiest solution. You could try and replace the 'pkg-config v8 --libs --cflags' with its output, probably -lv8 -pthread

@jasonwilliams
Copy link
Contributor Author

@yorickvP how safe is that to use?

@yorickvP
Copy link
Member

Should be perfectly safe.

@jasonwilliams
Copy link
Contributor Author

Is it on Ubuntu's package manager or does it need to be built from source?

@jasonwilliams
Copy link
Contributor Author

@yorickvP could this be solve by using https://github.com/gf3/sandbox/ instead?

@jasonwilliams
Copy link
Contributor Author

This now works with the latest version of this bot (using docker)

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

4 participants