I run cygwin-64 bits on Windows 7. I have installed Ruby2.3 64 bit and Ruby DevKit.
I try to install Compass using ruby gems. I get this:
$gem install compass
Building native extensions. This could take a while...
Successfully installed ffi-1.9.10
ERROR: Error installing compass:
rb-inotify requires ffi (>= 0.5.0)
This is the verbose version:
$ gem install compass --verbose
HEAD https://api.rubygems.org/api/v1/dependencies
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=compass
200 OK
Getting SRV record failed: DNS result has no information for _rubygems._tcp.api.rubygems.org
GET https://api.rubygems.org/api/v1/dependencies?gems=chunky_png,compass-core,compass-import-once,rb-fsevent,rb-inotify,sass
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=ffi,multi_json
200 OK
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/COPYING
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/LICENSE
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/README.md
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/Rakefile
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/AbstractMemory.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/AbstractMemory.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/ArrayType.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/ArrayType.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/Buffer.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/Call.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/Call.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/ClosurePool.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/ClosurePool.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/DataConverter.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/DynamicLibrary.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/DynamicLibrary.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/Function.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/Function.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/FunctionInfo.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/LastError.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/LastError.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/LongDouble.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/LongDouble.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/MappedType.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/MappedType.h
...
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/struct.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/struct_layout_builder.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/tools/const_generator.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/tools/generator.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/tools/generator_task.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/tools/struct_generator.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/tools/types_generator.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/types.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/union.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/variadic.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/version.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/Benchmark.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/BoolTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/BufferTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/ClosureTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/EnumTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/FunctionTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/GNUmakefile
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/GlobalVariable.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/LastErrorTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/NumberTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/PointerTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/ReferenceTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/StringTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/StructTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/UnionTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/VariadicTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/LICENSE.SPECS
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/async_callback_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/bool_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/buffer_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/callback_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/custom_param_type.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/custom_type_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/dup_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/enum_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/errno_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/ffi_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/Benchmark.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/BoolTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/BufferTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/ClosureTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/EnumTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/FunctionTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/GNUmakefile
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/GlobalVariable.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/LastErrorTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/NumberTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/PointerTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/ReferenceTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/StringTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/StructTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/UnionTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/VariadicTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/classes.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/function_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/io_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/library_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/long_double.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/managed_struct_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/memorypointer_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/number_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/platform_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/pointer_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/rbx/attach_function_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/rbx/memory_pointer_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/rbx/spec_helper.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/rbx/struct_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/spec_helper.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/string_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/strptr_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/struct_by_ref_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/struct_callback_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/struct_initialize_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/struct_packed_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/struct_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/typedef_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/union_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/variadic_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/spec.opts
Building native extensions. This could take a while...
current directory: /home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c
/usr/bin/ruby.exe -r ./siteconf20160419-7812-1d7ip8w.rb extconf.rb
checking for ffi_call() in -lffi... yes
checking for ffi_prep_closure()... yes
checking for ffi_raw_call()... yes
checking for ffi_prep_raw_closure()... yes
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
checking for ffi_prep_cif_var()... yes
creating extconf.h
creating Makefile
current directory: /home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c
make "DESTDIR=" clean
rm -f
rm -f ffi_c.so *.o *.bak mkmf.log .*.time
current directory: /home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c
make "DESTDIR="
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o AbstractMemory.o -c AbstractMemory.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o ArrayType.o -c ArrayType.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Buffer.o -c Buffer.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Call.o -c Call.c
In file included from Call.c:62:0:
Call.c: In function ‘do_blocking_call’:
Thread.h:78:39: warning: implicit declaration of function ‘rb_thread_call_without_gvl’ [-Wimplicit-function-declaration]
# define rbffi_thread_blocking_region rb_thread_call_without_gvl
^
Call.c:368:5: note: in expansion of macro ‘rbffi_thread_blocking_region’
rbffi_thread_blocking_region(call_blocking_function, data, (void *) -1, NULL);
^
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o ClosurePool.o -c ClosurePool.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o DataConverter.o -c DataConverter.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o DynamicLibrary.o -c DynamicLibrary.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o ffi.o -c ffi.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Function.o -c Function.c
Function.c: In function ‘async_cb_event’:
Function.c:563:9: warning: implicit declaration of function ‘rb_thread_call_without_gvl’ [-Wimplicit-function-declaration]
rb_thread_call_without_gvl(async_cb_wait, &w, async_cb_stop, &w);
^
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o FunctionInfo.o -c FunctionInfo.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o LastError.o -c LastError.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o LongDouble.o -c LongDouble.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o MappedType.o -c MappedType.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o MemoryPointer.o -c MemoryPointer.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o MethodHandle.o -c MethodHandle.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Platform.o -c Platform.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Pointer.o -c Pointer.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Struct.o -c Struct.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o StructByReference.o -c StructByReference.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o StructByValue.o -c StructByValue.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o StructLayout.o -c StructLayout.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Thread.o -c Thread.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Type.o -c Type.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Types.o -c Types.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Variadic.o -c Variadic.c
rm -f ffi_c.so
gcc -shared -o ffi_c.so AbstractMemory.o ArrayType.o Buffer.o Call.o ClosurePool.o DataConverter.o DynamicLibrary.o ffi.o Function.o FunctionInfo.o LastError.o LongDouble.o MappedType.o MemoryPointer.o MethodHandle.o Platform.o Pointer.o Struct.o StructByReference.o StructByValue.o StructLayout.o Thread.o Type.o Types.o Variadic.o -L. -L/usr/lib -L. -fstack-protector -Wl,--export-all-symbols -Wl,--enable-auto-image-base,--enable-auto-import -lruby220 -lffi -lffi -lpthread -lgmp -ldl -lcrypt
current directory: /home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c
make "DESTDIR=" install
/usr/bin/mkdir -p . ./.gem.20160419-7812-9fvqix
exit > .RUBYARCHDIR.time
/usr/bin/install -c -m 0755 ffi_c.so ./.gem.20160419-7812-9fvqix
To see why this extension failed to compile, please check the mkmf.log which can be found here:
C:/cygwin64/home/vsxxame/.gem/ruby/gems/extensions/x86_64-cygwin/ffi-1.9.10/mkmf.log
Successfully installed ffi-1.9.10
ERROR: Error installing compass:
rb-inotify requires ffi (>= 0.5.0)
I get the same if I try to install rb-inotify. Other gems are installed ok, . Any hints?
Related
When trying to install the ruby gem pg with the command gem install pg
I get the following error message:
Building native extensions. This could take a while.:
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/pg-0.18.0 for inspection. Results logged to /usr/lib/ruby/gems/0.18.0/ext/gem_make.out
I have ruby 1.8.7 running.
I have installed yum install postgresql-devel.
Thanks for the help.
The gem.make.out contains the following:
/usr/bin/ruby extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for pg_config_manual.h... yes
checking for PQconnectdb() in -lpq... yes
checking for PQconnectionUsedPassword()... yes
checking for PQisthreadsafe()... yes
checking for PQprepare()... yes
checking for PQexecParams()... yes
checking for PQescapeString()... yes
checking for PQescapeStringConn()... yes
checking for PQescapeLiteral()... no
checking for PQescapeIdentifier()... no
checking for PQgetCancel()... yes
checking for lo_create()... yes
checking for pg_encoding_to_char()... yes
checking for pg_char_to_encoding()... yes
checking for PQsetClientEncoding()... yes
checking for PQlibVersion()... no
checking for PQping()... no
checking for PQsetSingleRowMode()... no
checking for PQconninfo()... no
checking for PQhostaddr()... no
checking for rb_encdb_alias()... no
checking for rb_enc_alias()... no
checking for rb_thread_call_without_gvl()... no
checking for rb_thread_call_with_gvl()... no
checking for rb_thread_fd_select()... no
checking for rb_w32_wrap_io_handle()... no
checking for rb_str_modify_expand()... no
checking for rb_hash_dup()... no
checking for PGRES_COPY_BOTH in libpq-fe.h... no
checking for PGRES_SINGLE_TUPLE in libpq-fe.h... no
checking for PG_DIAG_TABLE_NAME in libpq-fe.h... no
checking for struct pgNotify.extra in libpq-fe.h... yes
checking for unistd.h... yes
checking for ruby/st.h... no
checking for st.h... yes
creating extconf.h
creating Makefile
make
gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/include -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC -c pg_type_map_by_class.c
pg_type_map_by_class.c: In function ‘pg_tmbk_lookup_klass’:
pg_type_map_by_class.c:68: warning: implicit declaration of function ‘RB_TYPE_P’
gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/include -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC -c pg_result.c
pg_result.c:428: warning: ‘pgresult_ntuples_for_enum’ defined but not used
gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/include -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC -c pg_type_map.c
gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/include -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC -c pg_type_map_by_column.c
pg_type_map_by_column.c: In function ‘pg_tmbc_result_value’:
pg_type_map_by_column.c:102: warning: implicit declaration of function ‘ENCODING_GET’
gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/include -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC -c pg_copy_coder.c
pg_copy_coder.c: In function ‘pg_copycoder_encoder_allocate’:
pg_copy_coder.c:38: warning: implicit declaration of function ‘rb_str_new_cstr’
gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/include -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC -c util.c
gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/include -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC -c pg_binary_encoder.c
pg_binary_encoder.c: In function ‘pg_bin_enc_from_base64’:
pg_binary_encoder.c:122: warning: implicit declaration of function ‘RSTRING_LENINT’
gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/include -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC -c pg_type_map_by_mri_type.c
pg_type_map_by_mri_type.c: In function ‘pg_tmbmt_typecast_query_param’:
pg_type_map_by_mri_type.c:61: error: ‘T_COMPLEX’ undeclared (first use in this function)
pg_type_map_by_mri_type.c:61: error: (Each undeclared identifier is reported only once
pg_type_map_by_mri_type.c:61: error: for each function it appears in.)
pg_type_map_by_mri_type.c:61: error: ‘T_RATIONAL’ undeclared (first use in this function)
pg_type_map_by_mri_type.c: In function ‘pg_tmbmt_aset’:
pg_type_map_by_mri_type.c:197: warning: implicit declaration of function ‘RB_TYPE_P’
make: *** [pg_type_map_by_mri_type.o] Error 1
I have Ubuntu Precise and can't find in the software repo any lapack or blas. When I run
sudo gem install gsl
I get an error output. I have gsl 1.15. The output is as follows
Building native extensions. This could take a while...
ERROR: Error installing gsl:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking gsl version... 1.15
checking gsl cflags... -I/usr/include
checking for main() in -lcblas... no
checking gsl libs... -L/usr/lib -lgsl -lgslcblas -lm
checking for round()... no
checking for rngextra/rngextra.h... no
checking for qrngextra/qrngextra.h... no
checking for ool/ool_version.h... no
checking for tensor/tensor.h... no
checking for jacobi.h... no
checking for gsl/gsl_cqp.h... no
checking for gsl/gsl_multimin_fsdf.h... no
checking for gsl_poly_solve_quartic() in -lgsl... no
checking for gsl_eigen_francis() in -lgsl... yes
checking for ndlinear/gsl_multifit_ndlinear.h... no
checking for alf/alf.h... no
checking rb-gsl version...1.14.7
checking ruby version... 1.8.7
checking for graph... yes
NOTE: Gem.searcher is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.searcher called from extconf.rb:245.
NOTE: Gem::GemPathSearcher#initialize is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::GemPathSearcher#initialize called from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:951.
NOTE: Gem::GemPathSearcher#find is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::GemPathSearcher#find called from extconf.rb:245.
checking for narray.h... yes
checking for tamu_anova/tamu_anova.h... no
checking for main() in -ltamuanova... no
creating Makefile
make
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_zeta.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c histogram3d.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c matrix.c
In file included from matrix.c:31:0:
matrix_source.c: In function ‘rb_gsl_matrix_to_s’:
matrix_source.c:878:11: warning: variable ‘min’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c siman.c
siman.c: In function ‘rb_gsl_siman_solver_solve’:
siman.c:572:38: warning: variable ‘ppp’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c deriv.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sort.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_dilog.c
sf_dilog.c: In function ‘rb_gsl_sf_complex_dilog_e’:
sf_dilog.c:29:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c const_additional.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c nmf_wrap.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_airy.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c bspline.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c matrix_double.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_mathieu.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c const.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c dht.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c root.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c signal.c
signal.c: In function ‘rb_gsl_fft_conv_corr’:
signal.c:108:28: warning: variable ‘stride3’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c ool.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c gsl.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c fft.c
fft.c: In function ‘rb_fft_complex_trans’:
fft.c:466:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
fft.c: In function ‘rb_gsl_fft_complex_transform’:
fft.c:500:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
fft.c: In function ‘rb_gsl_fft_complex_transform2’:
fft.c:520:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
fft.c: In function ‘rb_fft_real_trans’:
fft.c:669:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
fft.c: In function ‘rb_fft_halfcomplex_trans’:
fft.c:733:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c stats.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c rng.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c randist.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c oper_complex_source.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c multiset.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_lambert.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c histogram_oper.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c alf.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c array.c
array.c: In function ‘cvector_set_from_narray’:
array.c:260:7: warning: variable ‘size’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_coulomb.c
sf_coulomb.c: In function ‘rb_gsl_sf_hydrogenicR_e’:
sf_coulomb.c:38:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
sf_coulomb.c: In function ‘rb_gsl_sf_coulomb_wave_FG_array’:
sf_coulomb.c:90:16: warning: variable ‘stride’ set but not used [-Wunused-but-set-variable]
sf_coulomb.c: In function ‘rb_gsl_sf_coulomb_wave_FGp_array’:
sf_coulomb.c:115:16: warning: variable ‘stride’ set but not used [-Wunused-but-set-variable]
sf_coulomb.c: In function ‘rb_gsl_sf_coulomb_CL_array’:
sf_coulomb.c:168:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_debye.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c multimin_fsdf.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_elementary.c
sf_elementary.c: In function ‘rb_gsl_sf_multiply_e’:
sf_elementary.c:19:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
sf_elementary.c: In function ‘rb_gsl_sf_multiply_err_e’:
sf_elementary.c:31:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c poly2.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c blas1.c
Does anyone have a suggestion what I am missing or how I can install ruby-gsl and make it work?
This guy had a similar issue: Problems installing gsl gem
It would seem, from the top answer, that gsl 1.15 is not compatible with ruby-gsl, and that reverting to version 1.14 is necessary? You mention that you use gsl 1.15 in your post, so perhaps that is your issue?
My GNU scientific library (http://www.gnu.org/software/gsl/) installed in the path: /home/myname/gsl-1.6
My mlRho 1.7-stat prog (http://guanine.evolbio.mpg.de/mlRho/mlRho_1.7.tgz) which uses GNU scientific library-installed in:/home/myname/MlRho_1.7
my operating system: Fedora 16
original make file in mlRho
cd /home/myname/MlRho_1.7/
vim make
CC=gcc
CFLAGS= -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 \
-I/opt/local/include/ -L/opt/local/lib/
I have changed path in mlRho
CC=gcc
CFLAGS= -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 \
-I/home/myname/gsl-1.6 -L/home/myname/gsl-1.6
after making changes, I tried running make, it gives error
make
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/home/myname/gsl-1.6/include/ -L/home/myname/gsl-1.6/lib/ -c -o mlRho.o mlRho.c
In file included from mlRho.c:16:0:
mlComp.h:7:30: fatal error: gsl/gsl_sf_gamma.h: No such file or directory
compilation terminated.
make: *** [mlRho.o] Error 1
when i do make test- it gives me error below
make test
make[1]: Entering directory `/home/myname/MlRho_1.7/TestMlPi'
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/ -c -o testMlPi.o testMlPi.c
testMlPi.c: In function ‘main’:
testMlPi.c:62:67: warning: variable ‘sderr’ set but not used [-Wunused-but-set-variable]
testMlPi.c:62:60: warning: variable ‘sdhet’ set but not used [-Wunused-but-set-variable]
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/ -c -o interface.o interface.c
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/ -c -o eprintf.o eprintf.c
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/ -c -o ranNum.o ranNum.c
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/ -o testMlPi testMlPi.o interface.o eprintf.o ranNum.o -lm
make[1]: Leaving directory `/home/myname/MlRho_1.7/TestMlPi'
Output from testMlPi:
pi: 5.00e-05 epsilon: 4.90e-04 -log(L): 1.40e+05
Output from mlRho:
make: ./mlRho: Command not found
make: *** [testPi] Error 127
Output from mlRho:
make: ./mlRho: Command not found
make: *** [testPi] Error 127
It somehow GNU library not linking to mlRho programme. How to fix it?
I try to install gsl gem for Ruby but it doesn't work. i have a matrix_complex.o error.
So is there a solution to install gsl for netbeans ?
or is there a fonction quantile in an other library?
Any help would be appreciated.
stagiaire#stagiaire-desktop:~$ sudo gem install -v=1.14.7 gsl
Building native extensions. This could take a while...
ERROR: Error installing gsl:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking gsl version... 1.15
checking gsl cflags... -I/usr/include
checking for main() in -lcblas... no
checking gsl libs... -L/usr/lib -lgsl -lgslcblas -lm
checking for round()... no
checking for rngextra/rngextra.h... no
checking for qrngextra/qrngextra.h... no
checking for ool/ool_version.h... no
checking for tensor/tensor.h... no
checking for jacobi.h... no
checking for gsl/gsl_cqp.h... no
checking for gsl/gsl_multimin_fsdf.h... no
checking for gsl_poly_solve_quartic() in -lgsl... no
checking for gsl_eigen_francis() in -lgsl... yes
checking for ndlinear/gsl_multifit_ndlinear.h... no
checking for alf/alf.h... no
checking rb-gsl version...1.14.7
checking ruby version... 1.8.7
checking for graph... no
checking for narray.h... yes
checking for tamu_anova/tamu_anova.h... no
checking for main() in -ltamuanova... no
creating Makefile
make
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems /narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c sf_debye.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems /narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c histogram.c
histogram.c: In function ‘rb_gsl_histogram_fit_exponential’:
histogram.c:1029:24: attention : variable ‘hh’ set but not used [-Wunused-but-set-variable]
histogram.c: In function ‘rb_gsl_histogram_fit_power’:
histogram.c:1079:24: attention : variable ‘hh’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c eigen.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c histogram_oper.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c signal.c
signal.c: In function ‘rb_gsl_fft_conv_corr’:
signal.c:108:28: attention : variable ‘stride3’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c graph.c
graph.c:974:13: attention : ‘gsl_graph_set_command’ defined but not used [-Wunused-function]
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c sf_zeta.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c sf_elljac.c
sf_elljac.c: In function ‘rb_gsl_sf_elljac_e’:
sf_elljac.c:18:7: attention : variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c ieee.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c array_complex.c
array_complex.c: In function ‘rb_gsl_complex_arithmetics5’:
array_complex.c:34:9: attention : variable ‘func3’ set but not used [-Wunused-but-set-variable]
array_complex.c:33:9: attention : variable ‘func2’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c histogram3d_source.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c vector_double.c
vector_double.c: In function ‘rb_gsl_vector_normalize_bang’:
vector_double.c:872:10: attention : variable ‘mean’ set but not used [-Wunused-but-set-variable]
vector_double.c: Hors de toute fonction :
vector_double.c:692:13: attention : ‘draw_hist’ defined but not used [-Wunused-function]
vector_double.c:624:13: attention : ‘draw_vector’ defined but not used [-Wunused-function]
vector_double.c:634:13: attention : ‘draw_vector2’ defined but not used [-Wunused-function]
vector_double.c:704:13: attention : ‘draw_vector_array’ defined but not used [-Wunused-function]
vector_double.c:679:13: attention : ‘draw_narray’ defined but not used [-Wunused-function]
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c const.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c block.c
In file included from block.c:29:0:
block_source.c: In function ‘rb_gsl_block_compare’:
block_source.c:550:7: attention : variable ‘status’ set but not used [-Wunused-but-set-variable]
In file included from block.c:35:0:
block_source.c: In function ‘rb_gsl_block_int_compare’:
block_source.c:550:7: attention : variable ‘status’ set but not used [-Wunused-but-set-variable]
In file included from block.c:41:0:
block_source.c: In function ‘rb_gsl_block_uchar_compare’:
block_source.c:550:7: attention : variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c sf_dawson.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c fcmp.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.1/. -I/usr/local/lib/site_ruby/1.8/i686-linux -D_FILE_OFFSET_BITS=64 -fPIC -Wall -I../include -I/usr/include -c matrix_complex.c
matrix_complex.c: In function ‘rb_gsl_matrix_complex_eye’:
matrix_complex.c:202:19: attention : variable ‘p’ set but not used [-Wunused-but-set-variable]
matrix_complex.c: In function ‘rb_gsl_matrix_complex_set_row’:
matrix_complex.c:410:19: attention : variable ‘pz’ set but not used [-Wunused-but-set-variable]
matrix_complex.c: In function ‘rb_gsl_matrix_complex_set_col’:
matrix_complex.c:436:19: attention : variable ‘pz’ set but not used [-Wunused-but-set-variable]
matrix_complex.c: In function ‘rb_gsl_matrix_complex_inspect’:
matrix_complex.c:654:3: attention : format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ [-Wformat]
matrix_complex.c:654:3: attention : format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ [-Wformat]
matrix_complex.c: Hors de toute fonction :
matrix_complex.c:1523:12: erreur: conflicting types for ‘gsl_matrix_complex_equal’
/usr/include/gsl/gsl_matrix_complex_double.h:227:5: note: previous declaration of ‘gsl_matrix_complex_equal’ was here
make: *** [matrix_complex.o] Erreur 1
Gem files will remain installed in /var/lib/gems/1.8/gems/gsl-1.14.7 for inspection.
Results logged to /var/lib/gems/1.8/gems/gsl-1.14.7/ext/gem_make.out
stagiaire#stagiaire-desktop:~$
Getting some clues from https://github.com/romanbsd/rb-gsl/issues/2 I did the following on Ubuntu:
Uninstalled my existing gsl:
sudo apt-get remove gsl-bin libgsl0-dev libgsl0ldbl
Built a new gsl
wget ftp.gnu.org/gnu/gsl/gsl-1.14.tar.gz
tar xf gsl-1.14.tar.gz
cd gsl-1.14
./configure
make
sudo make install
Installed the gem
gem install gsl
This worked for me.
The above answer works as you can simply use version ~1.14 of both the GSL and ruby bindings (rb-gsl).
However, if you have installed GSL via homebrew (brew install gsl) or prefer version 1.15 you can alternatively specify the following repo in your Gemfile for the ruby bindings:
https://github.com/whistlerbrk/rb-gsl/
which is based off of:
https://github.com/30robots/rb-gsl/
This has the patch for gsl_matrix and the first repo also has a patch for newer versions of rubygems.
When I try to install mysql2 on Ubuntu with ree-1.8.7-2011.03 I get:
# gem install mysql2
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ree-1.8.7-2011.03/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... no
checking for mysql.h... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
creating Makefile
make
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-
2011.03/lib/ruby/1.8/i686-linux -I. -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -D_FILE_OFFSET_BITS=64 -I/usr/include -fPIC -g -static-libgcc -fno-omit-frame-pointer -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -fPIC -g -O2 -Wall -funroll-loops -c client.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-linux -I. -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -D_FILE_OFFSET_BITS=64 -I/usr/include -fPIC -g -static-libgcc -fno-omit-frame-pointer -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -fPIC -g -O2 -Wall -funroll-loops -c mysql2_ext.c
./client.h:16: warning: ‘rb_thread_blocking_region’ defined but not used
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-linux -I. -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -D_FILE_OFFSET_BITS=64 -I/usr/include -fPIC -g -static-libgcc -fno-omit-frame-pointer -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -fPIC -g -O2 -Wall -funroll-loops -c result.c
gcc -shared -o mysql2.so client.o mysql2_ext.o result.o -L. -L/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib -Wl,-R/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib -L. -rdynamic -Wl,- export-dynamic -Wl,-rpath,/usr/lib -L/usr/lib -lmysqlclient_r -lpthread -lm -lrt -ldl -L/opt/local/lib -lrt -ldl -lcrypt -lm -lc
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
make: *** [mysql2.so] Error 1
I am not sure what the error is. Any idea of the cause?