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

Build error #40

Closed
arnorhs opened this issue Mar 18, 2012 · 10 comments
Closed

Build error #40

arnorhs opened this issue Mar 18, 2012 · 10 comments

Comments

@arnorhs
Copy link

arnorhs commented Mar 18, 2012

I'm getting a build error when trying to install from npm

node v0.6.13
npm 1.1.9
ubuntu 11.10

I've installed the libffi-dev package.

http://cl.ly/3M0O0A3S29232z3p2x1A <-- the error..

What am I doing wrong and how can I fix it? Do you need more info?

Thanks

@TooTallNate
Copy link
Member

Hmmm, seems installing through npm is a little busted at the moment. For now, just follow the SOURCE INSTALL / MANUAL COMPILATION instructions in the README. Sorry about that!

@TooTallNate
Copy link
Member

Additionally, node-ffi comes with quite a few pre-compiled binaries for many platforms, so if you try to npm install -f node-ffi, and it fails, then it may still work when you require the module because it will fall back to the precompiled binary. Let me know if that works as well!

@arnorhs
Copy link
Author

arnorhs commented Mar 19, 2012

thanks for the reply

hm, I tried to build from source using those instructions, but it fails on node-gyp build

http://cl.ly/1C2F1k3T1h410R2Y423X

@TooTallNate
Copy link
Member

Can you give me the output of node-gyp -v rebuild?

On Sun, Mar 18, 2012 at 7:37 PM, arnorhs <
reply@reply.github.com

wrote:

hm, I tried to build from source using those instructions, but it fails on
node-gyp build

http://cl.ly/1C2F1k3T1h410R2Y423X


Reply to this email directly or view it on GitHub:
#40 (comment)

@arnorhs
Copy link
Author

arnorhs commented Mar 19, 2012

and btw, i think that regarding it probably still working despite the build error doesn't apply to me, since I'm trying to install "ultra-repl" (which has node-ffi as a dependency) .. so it's build process fails (maybe if I try to build that project from source?)

@arnorhs
Copy link
Author

arnorhs commented Mar 19, 2012

@TooTallNate
Copy link
Member

/home/arnorhs/tmp/node-ffi/deps/libffi/.libs/libffi.a: could not read symbols: Bad value

Ahh, well that's a different error than you had the first time. So that leads me to believe something went wrong when compiling the bundled libffi. cd into deps/libffi and run:

$ make clean distclean
$ ./configure --enable-static --disable-shared
$ make

Then cd back to the node-ffi root directory and try compiling with node-gyp once again...

Also, re: precompiled binaries. Are you on Ubuntu 64-bit? The precompiled binary should work fine there. From the root directory of node-ffi, what happens when you enter: require('./') into the REPL?

@TooTallNate
Copy link
Member

Gonna close since this is something on your end. Don't hesitate to ask for more help though if you're still trying to compile.

@arnorhs
Copy link
Author

arnorhs commented Mar 19, 2012

oh sorry, I didn't get a chance to try that.. I'm currently at work, will try tonight.

Thanks for your help.

@arnorhs
Copy link
Author

arnorhs commented Mar 20, 2012

fwiw, i tried rebuilding libffi, and that went fine. but recompiling with node-gyp failed again, so I'm a bit at loss..

oh well, i'm probably not that desperat to get that console working anyways, just would have been fun

good luck with this project and thanks for all the help.

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