ruby gem install pg with ruby 1.8.7 on CentOS 6.5 - ruby

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

Related

Installing Compass on Windows - fail - can't find dependency ffi

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?

GNU scientific library linking

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?

Error installing mysql2 gem on Ubuntu Server 11.10: /usr/bin/ld: cannot find -lmysqlclient_r

I got the same error on Ubuntu Server 11.10 x64 mentioned in some other posts:
Post #1
Post #2
The mysql2 gem cannot be compiled due "cannot find -lmysqlclient_r "
I'm using:
Ruby v1.8.7
MySQL v5.5.25-1
Rails 3.2.3
Gem 1.8.24
I installed the package libmysqlclient-dev and it still doesn't work.
The files
- libmysqlclient_r.a
- libmysqlclient_r.so
- libmysqlclient_r.so.18
- libmysqlclient_r.so.18.0.0
are located at /usr/lib/x86_64-linux-gnu/
So I created symlinks in /usr/lib/
Ii still doesn't work :(
Any idea??
$ sudo gem install mysql2
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 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. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -g -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -Wall -funroll-loops -c mysql2_ext.c
./client.h:16:1: warning: ârb_thread_blocking_regionâ defined but not used [-Wunused-function]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -g -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -Wall -funroll-loops -c result.c
result.c: In function ârb_mysql_result_fetch_rowâ:
result.c:258:31: warning: variable âtokensâ set but not used [-Wunused-but-set-variable]
result.c:272:58: warning: variable âtokensâ set but not used [-Wunused-but-set-variable]
result.c:315:33: warning: variable âtokensâ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -g -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -Wall -funroll-loops -c client.c
client.c: In function ârb_mysql_client_infoâ:
client.c:539:3: warning: variable âwrapperâ set but not used [-Wunused-but-set-variable]
gcc -shared -o mysql2.so mysql2_ext.o result.o client.o -L. -L/usr/lib -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic -Wl,-rpath,/usr/lib/x86_64-linux-gnu -lruby1.8 -L/usr/lib/x86_64-linux-gnu -lmysqlclient_r -lpthread -lz -lm -lrt -ldl -lpthread -lrt -ldl -lcrypt -lm -lc
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
make: *** [mysql2.so] Error 1

i have an error when i install gsl (with netbeans)

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.

How to install mysql2 on Ubuntu server 10.04 with ree-1.8.7

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?

Resources