linux - Ruby on rails: cannot install FFI 1.1.5 and bundler cannot continue -


I am following the tutorial and am on the third chapter (static page). When I try to immediately install bundle by listing 3.1, the command returns an error message which indicates a failed linking. A snippet of error is shown below:

  Using bundler (1.2.1) Using nogogiri (1.5.5) Installing FFI (1.1.5) with local extension gem: : Installer :: ExtensionBuild Errors: Error: Failed to create gem native extension Check for / usr / bin / ruby18 extconf.rb ffi_call () in -lffi ... check for ffi_prep_closure () ... yes check for ffi_raw_call () ... yes check for ffi_prep_raw_closure () .. There is no check for rb_thread_blocking_region () ... ruby_native_thread_p () checking for yes ... no checks for rb_thread_call_with_gvl () ... make any extconf.h makefile create .... .. ... x86_64-pc-linux-gnu-gcc - i - I -i / usr / lib64 / ruby ​​/ 1.8 / x86_64-linux -I -DRUBY_EXTCONF_H = \ "extconf.h \" -fPIC -O2 -Pipe -fno-strict aliasing -fPIC I / usr / lib64 / libffi-3.0 .10 / -c LastError.c x86_64- include PC-linux-gnu -gcc room sharing -o ffi_c.so FunctionInfo.o MemoryPointer.o MethodHandle.o Platform.o Function.o LongDouble.o StructLayout.o StructByValue.o Struct .o Variadic.o ClosurePool.o Type.o Types.o ArrayType O DynamicLibrary.o Thread.o Call.o Buffer.o StructByReference.o AbstractMemory.o MappedType.o Pointer.o DataConverter.o LastError.o l ffi.o. -L / USR / Lib 64-WL, -R / USR / Lib 64-LWL -O1-WL- - Required - Direction -Well -Export-Dynamic-Wl- No- Undefined -Wl, R-Wl, / usr / lib64 L / usr / lib64 -lruby18 -lffi -lffi -lrt -ldl -lcrypt -lm -lc Thread.o: In function `rbffi_thread_blocking_region ':. Thread.c :( Text + 0xd0): `Undefined reference to pthread_create ' Thread.c :( Text + 0x106): `pthread_join undefined reference 'Thread.o: in function` cleanup_blocking_thread':. Thread.c: (Lesson + 0x239): Undefined reference to `Pthread_kill 'thread. O: function in `rbffi_blocking_thread ': thread.c c :(. Text + 0x271): Undefined reference to` pthread_testcancel' collect2: ld 1 is returned to exit status: *** [ffi_c.so] error 1 gem files will be installed for inspection in /home/user/.gem/gems/ffi-1.1.5. An error occurred while installing FFI (1.1.5) in log in results in /home/user/.gem/gems/ffi-1.1.5/ext/ffi_c/gem_make.out, and the bundler could not continue. Ensure that `gem install ffi -v '1.1.5' is successful before bundling.   

Whatever I can gather, it can be easily solved by adding the correct library for pthread (-lphthread). But my question is, where should I add it? To solve this problem on Mac OS X, I see a lot of questions, but none for Linux. Any help appreciated.

Adding "dev-lang / ruby ​​threads" to my package. Use and Dev reconstruction -Long / Ruby

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -