Help installing ffi gem #1611

Open
kaushalmodi opened this Issue Jul 21, 2014 · 0 comments

Projects

None yet

1 participant

@kaushalmodi

Hi,

I have the ffi library installed in a folder in my home directory as I don't have root access to the machine on which I am trying to install octopress. I was able to sucessfully install older version of octopress. But the latest version needs few more gems to be installed and ffi is the only gem I am having trouble installing.

I get the following mkmf.log when doing gem install ffi:

"gcc -o conftest -I/home/kmodi/usr_local/include/ruby-2.1.0/x86_64-linux -I/home/kmodi/usr_local/include/ruby-2.1.0/ruby/backward -I/home/kmodi/usr_local/include/ruby-2.1.0 -I.     -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c  -L. -L/home/kmodi/usr_local/lib -Wl,-R/home/kmodi/usr_local/lib -L/home/kmodi/usr_local/lib -lffi     -Wl,-R -Wl,/home/kmodi/usr_local/lib -L/home/kmodi/usr_local/lib -lruby-static  -lpthread -lrt -lgmp -ldl -lcrypt -lm   -lc"
/usr/bin/ld: cannot find -lffi
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

The error says that lffi is not found. But ffi.h actually exists in ~/usr_local/lib/libffi-3.0.13/include/ffi.h and I also have ~/usr_local/lib/pkgconfig/libffi.pc.

How do I make gem install look for ffi in that location?

I understand that this issue is not octopress related but I'd appreciate if someone could help me out.

Thanks!

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