I have too many errors when i want installing ruby-debug, and ruby-debug-ide.
Error like this (bundle install):
Using ruby_core_source (0.1.5)
Using linecache19 (0.5.13)
Using rails (3.2.5)
Using ref (1.0.0)
Installing ruby-debug-base19 (0.11.24) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... no
/usr/local/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:39: Use RbConfig instead of obsolete and deprecated Config.
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... yes
checking for iseq.h... yes
checking for insns.inc... yes
checking for insns_info.inc... yes
checking for eval_intern.h... yes
creating Makefile
make
compiling breakpoint.c
compiling ruby_debug.c
ruby_debug.c:24:19: error: conflicting types for ‘rb_iseq_compile_with_option’
/usr/local/include/ruby-1.9.1/ruby-1.9.3-p125/vm_core.h:505:7: note: previous declaration of ‘rb_iseq_compile_with_option’ was here
ruby_debug.c: In function ‘context_jump’:
ruby_debug.c:2403:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
ruby_debug.c:2417:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make: *** [ruby_debug.o] Error 1
Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.24 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.24/ext/ruby_debug/gem_make.out
An error occurred while installing ruby-debug-base19 (0.11.24), and Bundler cannot continue.
Make sure that `gem install ruby-debug-base19 -v '0.11.24'` succeeds before bundling.
On same solution:
gem install ruby-debug-base or ruby-debug-base19
same error,
ERROR: Failed to build gem native extension.
Does anybody know what to do?
Related
Trying to deploy Rails app onUbuntu 20 is impossible to install pg, and any attempt to bundle will incur in errors
$ gem install pg
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
current directory: /home/user/.rvm/gems/ruby-2.6.1/gems/pg-1.2.3/ext
/home/user/.rvm/rubies/ruby-2.6.1/bin/ruby -I /home/user/.rvm/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0 -r ./siteconf20210417-119158-37ke72.rb 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 PQsetSingleRowMode()... yes
checking for PQconninfo()... yes
checking for PQsslAttribute()... yes
checking for PQresultVerboseErrorMessage()... yes
checking for PQencryptPasswordConn()... yes
checking for PQresultMemorySize()... yes
checking for timegm()... yes
checking for rb_gc_adjust_memory_usage()... yes
checking for unistd.h... yes
checking for inttypes.h... yes
checking for C99 variable length arrays... yes
creating extconf.h
creating Makefile
current directory: /home/user/.rvm/gems/ruby-2.6.1/gems/pg-1.2.3/ext
make "DESTDIR=" clean
current directory: /home/user/.rvm/gems/ruby-2.6.1/gems/pg-1.2.3/ext
make "DESTDIR="
compiling gvl_wrappers.c
compiling pg.c
compiling pg_binary_decoder.c
compiling pg_binary_encoder.c
compiling pg_coder.c
compiling pg_connection.c
compiling pg_copy_coder.c
compiling pg_errors.c
compiling pg_record_coder.c
compiling pg_result.c
compiling pg_text_decoder.c
compiling pg_text_encoder.c
compiling pg_tuple.c
compiling pg_type_map.c
compiling pg_type_map_all_strings.c
compiling pg_type_map_by_class.c
compiling pg_type_map_by_column.c
compiling pg_type_map_by_mri_type.c
compiling pg_type_map_by_oid.c
compiling pg_type_map_in_ruby.c
compiling pg_util.c
linking shared-object pg_ext.so
current directory: /home/user/.rvm/gems/ruby-2.6.1/gems/pg-1.2.3/ext
make "DESTDIR=" install
make: /usr/bin/mkdir: Command not found
make: *** [Makefile:201: .sitearchdir.time] Error 127
make install failed, exit code 2
Gem files will remain installed in /home/user/.rvm/gems/ruby-2.6.1/gems/pg-1.2.3 for inspection.
Results logged to /home/user/.rvm/gems/ruby-2.6.1/extensions/x86_64-linux/2.6.0/pg-1.2.3/gem_make.out
on bundle install nothing seem to work:
An error occurred while installing bcrypt (3.1.16), and Bundler cannot continue.
Make sure that gem install bcrypt -v '3.1.16' --source 'https://rubygems.org/' succeeds before bundling.
In Gemfile:
bcrypt
An error occurred while installing nio4r (2.5.7), and Bundler cannot continue.
Make sure that gem install nio4r -v '2.5.7' --source 'https://rubygems.org/' succeeds before bundling.
In Gemfile:
rails was resolved to 6.1.3.1, which depends on
actioncable was resolved to 6.1.3.1, which depends on
nio4r
An error occurred while installing racc (1.5.2), and Bundler cannot continue.
Make sure that gem install racc -v '1.5.2' --source 'https://rubygems.org/' succeeds before bundling.
Nothing seems to work and there is not useful information on how to solve problem
make: /usr/bin/mkdir: Command not found it's the reason.
Please write this command with sudo perm.
sudo ln -s $(which mkdir) /usr/bin/mkdir
And try again bundle.
This happens because you need install the following packages that the pg gem requires:
sudo apt install postgresql postgresql-contrib libpq-dev
Then configure postgres and verify is running.
Fresh Ubuntu 20.04 install, when I try to bundle my project, I get this error which I'm not sure what's producing it.
Installing semian 0.10.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/fran/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/semian-0.10.0/ext/semian
/home/fran/.rbenv/versions/2.4.3/bin/ruby -r ./siteconf20200922-5726-1n8pgk.rb extconf.rb --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include
checking for openssl/sha.h... yes
checking for SHA1() in -lcrypto... yes
checking for sys/ipc.h... yes
checking for sys/sem.h... yes
checking for sys/types.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_without_gvl()... yes
creating Makefile
current directory: /home/fran/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/semian-0.10.0/ext/semian
make "DESTDIR=" clean
current directory: /home/fran/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/semian-0.10.0/ext/semian
make "DESTDIR="
compiling resource.c
In file included from /home/fran/.rbenv/versions/2.4.3/include/ruby-2.4.0/ruby.h:33,
from sysv_semaphores.h:15,
from resource.h:10,
from resource.c:1:
/home/fran/.rbenv/versions/2.4.3/include/ruby-2.4.0/ruby/ruby.h:631:1: error: ‘const’ attribute on function returning ‘void’ [-Werror=attributes]
631 | CONSTFUNC(void rb_secure_update(VALUE));
| ^~~~~~~~~
In file included from /home/fran/.rbenv/versions/2.4.3/include/ruby-2.4.0/ruby/ruby.h:2008,
from /home/fran/.rbenv/versions/2.4.3/include/ruby-2.4.0/ruby.h:33,
from sysv_semaphores.h:15,
from resource.h:10,
from resource.c:1:
/home/fran/.rbenv/versions/2.4.3/include/ruby-2.4.0/ruby/intern.h:257:1: error: ‘const’ attribute on function returning ‘void’ [-Werror=attributes]
257 | CONSTFUNC(void rb_error_untrusted(VALUE));
| ^~~~~~~~~
/home/fran/.rbenv/versions/2.4.3/include/ruby-2.4.0/ruby/intern.h:259:1: error: ‘const’ attribute on function returning ‘void’ [-Werror=attributes]
259 | CONSTFUNC(void rb_check_trusted(VALUE));
| ^~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:242: resource.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/fran/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/semian-0.10.0 for inspection.
Results logged to /home/fran/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0/semian-0.10.0/gem_make.out
An error occurred while installing semian (0.10.0), and Bundler cannot continue.
Make sure that `gem install semian -v '0.10.0' --source 'https://rubygems.org/'` succeeds before bundling.
Did not have this problem bundling other projects that require native extensions, just this one where we make use of the semian gem.
El Capitan 10.11.6
Ruby version 2.2.5
Trying to get a companies repo working on my development environment. I cloned the repo and cded into it and installed Ruby 2.2.5 using RVM (as per the .ruby_version file the company has in the repo). I first did gem install bundler then did a simple bundle command and this is my output.
JONDOE-MacBook-Pro:project_repo Doe$ bundle
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Using rake 11.2.2
Using aasm 4.11.0
Using i18n 0.7.0
Installing json 1.8.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/Doe/.rvm/rubies/ruby-2.2.5/bin/ruby -r ./siteconf20160804-32763-19yidxi.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling generator.c
linking shared-object json/ext/generator.bundle
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
make "DESTDIR=" install
make: /usr/local/bin/gmkdir: No such file or directory
make: *** [.RUBYARCHDIR.-.json.-.ext.time] Error 1
make install failed, exit code 2
Gem files will remain installed in /Users/Doe/.rvm/gems/ruby-2.2.5/gems/json-1.8.3 for inspection.
Results logged to /Users/Doe/.rvm/gems/ruby-2.2.5/extensions/x86_64-darwin-15/2.2.0-static/json-1.8.3/gem_make.out
Using minitest 5.9.0
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using pkg-config 1.1.7
Using rack 1.6.4
Using mime-types 2.99.2
Using arel 6.0.3
Using bundler 1.12.5
Using thor 0.19.1
Using concurrent-ruby 1.0.2
Using request_store 1.3.1
Using addressable 2.3.8
Using execjs 2.7.0
Using sass 3.4.22
Using normalize-rails 3.0.3
Using tilt 2.0.5
Using selectize-rails 0.12.2
Using american_date 1.1.1
Using ansi 1.5.0
Using ast 2.3.0
Using attribute_normalizer 1.2.0
Using awesome_print 1.7.0
Using json_pure 2.0.1
Using ice_nine 0.11.2
Installing bcrypt 3.1.11 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/Doe/.rvm/rubies/ruby-2.2.5/bin/ruby -r ./siteconf20160804-32763-1fppkmh.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling bcrypt_ext.c
compiling crypt.c
compiling crypt_blowfish.c
compiling crypt_gensalt.c
compiling wrapper.c
linking shared-object bcrypt_ext.bundle
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
make "DESTDIR=" install
make: /usr/local/bin/gmkdir: No such file or directory
make: *** [.RUBYARCHDIR.time] Error 1
make install failed, exit code 2
Gem files will remain installed in /Users/Doe/.rvm/gems/ruby-2.2.5/gems/bcrypt-3.1.11 for inspection.
Results logged to /Users/Doe/.rvm/gems/ruby-2.2.5/extensions/x86_64-darwin-15/2.2.0-static/bcrypt-3.1.11/gem_make.out
Using coderay 1.1.1
Installing debug_inspector 0.0.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/Doe/.rvm/rubies/ruby-2.2.5/bin/ruby -r ./siteconf20160804-32763-7xzs3j.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling debug_inspector.c
linking shared-object debug_inspector.bundle
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
make "DESTDIR=" install
make: /usr/local/bin/gmkdir: No such file or directory
make: *** [.RUBYARCHDIR.time] Error 1
make install failed, exit code 2
Gem files will remain installed in /Users/Doe/.rvm/gems/ruby-2.2.5/gems/debug_inspector-0.0.2 for inspection.
Results logged to /Users/Doe/.rvm/gems/ruby-2.2.5/extensions/x86_64-darwin-15/2.2.0-static/debug_inspector-0.0.2/gem_make.out
Using brakeman 3.3.2
Using uniform_notifier 1.10.0
Installing byebug 9.0.5 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/Doe/.rvm/rubies/ruby-2.2.5/bin/ruby -r ./siteconf20160804-32763-1f0rueg.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling breakpoint.c
compiling byebug.c
compiling context.c
compiling locker.c
compiling threads.c
linking shared-object byebug/byebug.bundle
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
make "DESTDIR=" install
make: /usr/local/bin/gmkdir: No such file or directory
make: *** [.RUBYARCHDIR.-.byebug.time] Error 1
make install failed, exit code 2
Gem files will remain installed in /Users/Doe/.rvm/gems/ruby-2.2.5/gems/byebug-9.0.5 for inspection.
Results logged to /Users/Doe/.rvm/gems/ruby-2.2.5/extensions/x86_64-darwin-15/2.2.0-static/byebug-9.0.5/gem_make.out
Using cancancan 1.15.0
Using multi_json 1.12.1
Using multipart-post 2.0.0
Using choice 0.2.0
Using coffee-script-source 1.10.0
Using chunky_png 1.3.6
Using cliver 0.3.2
Using cocoon 1.2.9
Using docile 1.1.5
Using simplecov-html 0.10.0
Using ruby-rc4 0.1.5
Using connection_pool 2.2.0
Using safe_yaml 1.0.4
Using database_cleaner 1.5.3
Using decent_exposure 2.3.3
Using deep_merge 1.0.1
Using mimemagic 0.3.1
Using orm_adapter 0.5.0
Using diff-lcs 1.2.5
Installing unf_ext 0.0.7.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/Doe/.rvm/rubies/ruby-2.2.5/bin/ruby -r ./siteconf20160804-32763-1lhzmsy.rb extconf.rb
checking for main() in -lstdc++... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling unf.cc
linking shared-object unf_ext.bundle
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
make "DESTDIR=" install
make: /usr/local/bin/gmkdir: No such file or directory
make: *** [.RUBYARCHDIR.time] Error 1
make install failed, exit code 2
Gem files will remain installed in /Users/Doe/.rvm/gems/ruby-2.2.5/gems/unf_ext-0.0.7.2 for inspection.
Results logged to /Users/Doe/.rvm/gems/ruby-2.2.5/extensions/x86_64-darwin-15/2.2.0-static/unf_ext-0.0.7.2/gem_make.out
Using dotenv 2.1.1
Using thread 0.2.2
Using rubyzip 1.2.0
Using table_print 1.5.6
Installing ruby-prof 0.15.9 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/Doe/.rvm/rubies/ruby-2.2.5/bin/ruby -r ./siteconf20160804-32763-167f4f5.rb extconf.rb
checking for rb_gc_stat()... yes
checking for rb_gc_count()... yes
checking for rb_os_allocated_objects()... no
checking for rb_gc_allocated_size()... no
checking for rb_gc_collections()... no
checking for rb_gc_time()... no
checking for rb_gc_total_time()... no
checking for rb_gc_total_mallocs()... no
checking for rb_gc_total_malloced_bytes()... no
checking for rb_heap_total_mem()... no
checking for rb_gc_heap_info()... no
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling rp_call_info.c
compiling rp_measure.c
compiling rp_measure_allocations.c
compiling rp_measure_cpu_time.c
compiling rp_measure_gc_runs.c
compiling rp_measure_gc_time.c
compiling rp_measure_memory.c
compiling rp_measure_process_time.c
compiling rp_measure_wall_time.c
compiling rp_method.c
compiling rp_stack.c
compiling rp_thread.c
compiling ruby_prof.c
linking shared-object ruby_prof.bundle
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
make "DESTDIR=" install
make: /usr/local/bin/gmkdir: No such file or directory
make: *** [.RUBYARCHDIR.time] Error 1
make install failed, exit code 2
Gem files will remain installed in /Users/Doe/.rvm/gems/ruby-2.2.5/gems/ruby-prof-0.15.9 for inspection.
Results logged to /Users/Doe/.rvm/gems/ruby-2.2.5/extensions/x86_64-darwin-15/2.2.0-static/ruby-prof-0.15.9/gem_make.out
Using enum_help 0.0.15
Using equalizer 0.0.11
Using error_page_assets 0.4
Installing ffi 1.9.10 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/Doe/.rvm/rubies/ruby-2.2.5/bin/ruby -r ./siteconf20160804-32763-1asj1a5.rb extconf.rb
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi... yes
checking for ffi_call() in -lffi... yes
checking for ffi_prep_closure()... yes
checking for ffi_raw_call()... no
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()... no
creating extconf.h
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling AbstractMemory.c
compiling ArrayType.c
compiling Buffer.c
compiling Call.c
Call.c:368:5: warning: implicit declaration of function 'rb_thread_call_without_gvl' is invalid in C99 [-Wimplicit-function-declaration]
rbffi_thread_blocking_region(call_blocking_function, data, (void *) -1, NULL);
^
./Thread.h:78:39: note: expanded from macro 'rbffi_thread_blocking_region'
# define rbffi_thread_blocking_region rb_thread_call_without_gvl
^
1 warning generated.
compiling ClosurePool.c
compiling DataConverter.c
compiling DynamicLibrary.c
compiling ffi.c
compiling Function.c
Function.c:563:9: warning: implicit declaration of function 'rb_thread_call_without_gvl' is invalid in C99 [-Wimplicit-function-declaration]
rb_thread_call_without_gvl(async_cb_wait, &w, async_cb_stop, &w);
^
1 warning generated.
compiling FunctionInfo.c
compiling LastError.c
compiling LongDouble.c
compiling MappedType.c
compiling MemoryPointer.c
compiling MethodHandle.c
compiling Platform.c
compiling Pointer.c
compiling Struct.c
compiling StructByReference.c
compiling StructByValue.c
compiling StructLayout.c
compiling Thread.c
compiling Type.c
compiling Types.c
compiling Variadic.c
linking shared-object ffi_c.bundle
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
make "DESTDIR=" install
make: /usr/local/bin/gmkdir: No such file or directory
make: *** [.RUBYARCHDIR.time] Error 1
make install failed, exit code 2
Gem files will remain installed in /Users/Doe/.rvm/gems/ruby-2.2.5/gems/ffi-1.9.10 for inspection.
Results logged to /Users/Doe/.rvm/gems/ruby-2.2.5/extensions/x86_64-darwin-15/2.2.0-static/ffi-1.9.10/gem_make.out
Using flamegraph 0.9.5
Using formatador 0.2.5
Using rspec-support 3.5.0
Using ruby-progressbar 1.8.1
Using geocoder 1.3.7
Using gli 2.14.0
Using rb-fsevent 0.9.7
Using ruby_dep 1.3.1
Using lumberjack 1.0.10
Using nenv 0.3.0
Using shellany 0.0.1
Using method_source 0.8.2
Using slop 3.6.0
Using guard-compat 1.2.1
Using powerpack 0.1.1
Using rainbow 2.1.0
Using unicode-display_width 1.1.0
Using redis 3.3.0
Using hashdiff 0.3.0
Using highline 1.7.8
Using multi_xml 0.5.5
Using tins 1.6.0
Using terminal-table 1.6.0
Using turbolinks-source 5.0.0
Using netrc 0.11.0
Using ya2yaml 0.31
Using net-http-persistent 2.9.4
Using newrelic_rpm 3.16.0.318
Using pdf-core 0.4.0
Installing pg 0.18.4 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/Doe/.rvm/rubies/ruby-2.2.5/bin/ruby -r ./siteconf20160804-32763-1itcpq8.rb extconf.rb
checking for pg_config... yes
Using config values from /usr/local/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()... yes
checking for PQescapeIdentifier()... yes
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()... yes
checking for PQping()... yes
checking for PQsetSingleRowMode()... yes
checking for PQconninfo()... yes
checking for rb_encdb_alias()... yes
checking for rb_enc_alias()... yes
checking for rb_thread_call_without_gvl()... yes
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_fd_select()... yes
checking for rb_w32_wrap_io_handle()... no
checking for rb_str_modify_expand()... yes
checking for rb_hash_dup()... yes
checking for PGRES_COPY_BOTH in libpq-fe.h... yes
checking for PGRES_SINGLE_TUPLE in libpq-fe.h... yes
checking for PG_DIAG_TABLE_NAME in libpq-fe.h... yes
checking for struct pgNotify.extra in libpq-fe.h... yes
checking for unistd.h... yes
checking for inttypes.h... yes
checking for ruby/st.h... yes
checking for C99 variable length arrays... yes
creating extconf.h
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling gvl_wrappers.c
compiling pg.c
compiling pg_binary_decoder.c
compiling pg_binary_encoder.c
compiling pg_coder.c
compiling pg_connection.c
pg_connection.c:2394:3: warning: implicit declaration of function 'gettimeofday' is invalid in C99 [-Wimplicit-function-declaration]
gettimeofday(&currtime, NULL);
^
1 warning generated.
compiling pg_copy_coder.c
compiling pg_errors.c
compiling pg_result.c
compiling pg_text_decoder.c
compiling pg_text_encoder.c
compiling pg_type_map.c
compiling pg_type_map_all_strings.c
compiling pg_type_map_by_class.c
compiling pg_type_map_by_column.c
compiling pg_type_map_by_mri_type.c
compiling pg_type_map_by_oid.c
compiling pg_type_map_in_ruby.c
compiling util.c
linking shared-object pg_ext.bundle
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
make "DESTDIR=" install
make: /usr/local/bin/gmkdir: No such file or directory
make: *** [.RUBYARCHDIR.time] Error 1
make install failed, exit code 2
Gem files will remain installed in /Users/Doe/.rvm/gems/ruby-2.2.5/gems/pg-0.18.4 for inspection.
Results logged to /Users/Doe/.rvm/gems/ruby-2.2.5/extensions/x86_64-darwin-15/2.2.0-static/pg-0.18.4/gem_make.out
Using websocket-extensions 0.1.2
Using ttfunk 1.4.0
Installing unicode 0.4.4.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/Doe/.rvm/rubies/ruby-2.2.5/bin/ruby -r ./siteconf20160804-32763-x50qoa.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling unicode.c
compiling ustring.c
compiling wstring.c
linking shared-object unicode/unicode_native.bundle
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
make "DESTDIR=" install
make: /usr/local/bin/gmkdir: No such file or directory
make: *** [.RUBYARCHDIR.-.unicode.time] Error 1
make install failed, exit code 2
Gem files will remain installed in /Users/Doe/.rvm/gems/ruby-2.2.5/gems/unicode-0.4.4.2 for inspection.
Results logged to /Users/Doe/.rvm/gems/ruby-2.2.5/extensions/x86_64-darwin-15/2.2.0-static/unicode-0.4.4.2/gem_make.out
Installing puma 3.4.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/Doe/.rvm/rubies/ruby-2.2.5/bin/ruby -r ./siteconf20160804-32763-qkpn4m.rb extconf.rb
checking for BIO_read() in -lcrypto... yes
checking for SSL_CTX_new() in -lssl... yes
checking for openssl/bio.h... no
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling http11_parser.c
compiling io_buffer.c
compiling mini_ssl.c
compiling puma_http11.c
linking shared-object puma/puma_http11.bundle
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
make "DESTDIR=" install
make: /usr/local/bin/gmkdir: No such file or directory
make: *** [.RUBYARCHDIR.-.puma.time] Error 1
make install failed, exit code 2
Gem files will remain installed in /Users/Doe/.rvm/gems/ruby-2.2.5/gems/puma-3.4.0 for inspection.
Results logged to /Users/Doe/.rvm/gems/ruby-2.2.5/extensions/x86_64-darwin-15/2.2.0-static/puma-3.4.0/gem_make.out
Using rack-rewrite 1.5.1
Using ruby-graphviz 1.2.2
Installing redcarpet 3.3.4 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/Doe/.rvm/rubies/ruby-2.2.5/bin/ruby -r ./siteconf20160804-32763-13tpibh.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling autolink.c
compiling buffer.c
buffer.c:111:45: warning: passing 'const struct buf *' to parameter of type 'struct buf *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if (buf->size + 1 <= buf->asize || bufgrow(buf, buf->size + 1) == BUF_OK) {
^~~
buffer.c:60:21: note: passing argument to parameter 'buf' here
bufgrow(struct buf *buf, size_t neosz)
^
1 warning generated.
compiling houdini_href_e.c
compiling houdini_html_e.c
compiling html.c
compiling html_smartypants.c
compiling markdown.c
markdown.c:2838:43: warning: passing 'const uint8_t *' (aka 'const unsigned char *') to parameter of type 'uint8_t *' (aka 'unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if (codefences_enabled && (is_codefence(document + beg, doc_size - beg, NULL) != 0))
^~~~~~~~~~~~~~
markdown.c:1391:23: note: passing argument to parameter 'data' here
is_codefence(uint8_t *data, size_t size, struct buf *syntax)
^
1 warning generated.
compiling rc_markdown.c
compiling rc_render.c
compiling stack.c
linking shared-object redcarpet.bundle
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
make "DESTDIR=" install
make: /usr/local/bin/gmkdir: No such file or directory
make: *** [.RUBYARCHDIR.time] Error 1
make install failed, exit code 2
Gem files will remain installed in /Users/Doe/.rvm/gems/ruby-2.2.5/gems/redcarpet-3.3.4 for inspection.
Results logged to /Users/Doe/.rvm/gems/ruby-2.2.5/extensions/x86_64-darwin-15/2.2.0-static/redcarpet-3.3.4/gem_make.out
Using shoulda-context 1.2.1
Using slack-notifier 1.5.1
Using temple 0.7.7
Using spring 1.7.2
Installing stackprof 0.2.9 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/Doe/.rvm/rubies/ruby-2.2.5/bin/ruby -r ./siteconf20160804-32763-26t53s.rb extconf.rb
checking for rb_postponed_job_register_one()... yes
checking for rb_profile_frames()... yes
checking for rb_tracepoint_new()... yes
checking for RUBY_INTERNAL_EVENT_NEWOBJ... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling stackprof.c
linking shared-object stackprof.bundle
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
make "DESTDIR=" install
make: /usr/local/bin/gmkdir: No such file or directory
make: *** [.RUBYARCHDIR.time] Error 1
make install failed, exit code 2
Gem files will remain installed in /Users/Doe/.rvm/gems/ruby-2.2.5/gems/stackprof-0.2.9 for inspection.
Results logged to /Users/Doe/.rvm/gems/ruby-2.2.5/extensions/x86_64-darwin-15/2.2.0-static/stackprof-0.2.9/gem_make.out
Using switch_user 1.3.0
Using vcr 3.0.3
Using faker 1.6.3
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
I figured out what I needed to do.
Referencing an answer on the json gem github, It seems running brew install coreutils solved all my issues revolving around this problem of mine.
Can you try installing the gem(s) manually first?
gem install json
OR specific version
gem install json -v 1.8.3
According to your errors message, looks like you need all those gems:
gem install json bcrypt debug_inspector byebug unf_ext ruby-prof ffi pg unicode redcarpet stackprof
$ bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Using addressable 2.3.6
Using chunky_png 1.3.1
Using fssm 0.2.10
Using sass 3.2.19
Using compass 0.12.7
Using breakpoint 2.0.7
Using timers 1.1.0
Using celluloid 0.15.2
Using coderay 1.1.0
Using compass-blend-modes 0.0.2
Using color-schemer 0.2.8
Using compass-normalize 1.5
Using compass-rgbapng 0.2.1
Using compass-validator 3.0.1
Using css_parser 1.3.5
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/Zach/.rvm/rubies/ruby-1.9.3-p547/bin/ruby.exe extconf.rb
checking for main() in -lssl... yes
checking for main() in -lcrypto... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... yes
checking for rb_time_new()... yes
checking for sys/event.h... no
creating Makefile
make clean
make
compiling binder.cpp
make: g++: Command not found
Makefile:198: recipe for target 'binder.o' failed
make: *** [binder.o] Error 127
make failed, exit code 2
Gem files will remain installed in /home/Zach/.rvm/gems/ruby-1.9.3-p547/gems/eventmachine-1.0.3 for inspection.
Results logged to /home/Zach/.rvm/gems/ruby-1.9.3-p547/extensions/x86_64-cygwin/1.9.1/eventmachine-1.0.3/gem_make.out
An error occurred while installing eventmachine (1.0.3), and Bundler cannot
continue.
Make sure that `gem install eventmachine -v '1.0.3'` succeeds before bundling.
I'm trying to install the missing gems necesary so I can use drush omega-guard
There was a problem with your setup: [error]
Resolving dependencies...
Bundler can't satisfy your Gemfile's dependencies.
Install missing gems with `bundle install`.
But I get the error with eventmachine, how can I fix this? I tried changing the version of ruby to see if it works, but i just ran into some other errors.
Apparently you don't have a C++ compiler. If you're using Ubuntu try sudo apt-get install g++.
Using
Mac OS X 10.5.8 (Leopard)
ruby 1.9.3p0
gem version 1.8.14
sqlite3 Version 3.7.9
I also have installed Xcode 3.1.4 (not sure if this is used for installation of gems).
I fetched the sqlite3 gem
gem fetch sqlite3
Then unpacked it
gem unpack sqlite3-1.3.5.gem
And cd'ed into the new directory
cd sqlite3-1.3.5
Executed
ruby setup.rb config
Then cd'ed to ext/sqlite3
and then executed make
This is returning the following error messages:
usernamemac:sqlite3 username$ make
compiling backup.c
compiling database.c
database.c: In function 'initialize':
database.c:47: error: 'SQLITE_OPEN_READWRITE' undeclared (first use in this function)
database.c:47: error: (Each undeclared identifier is reported only once
database.c:47: error: for each function it appears in.)
database.c:47: error: 'SQLITE_OPEN_CREATE' undeclared (first use in this function)
database.c:79: error: 'SQLITE_OPEN_READONLY' undeclared (first use in this function)
database.c:81: warning: implicit declaration of function 'sqlite3_open_v2'
database.c: In function 'set_sqlite3_func_result':
database.c:285: error: 'sqlite3_int64' undeclared (first use in this function)
database.c:285: error: syntax error before 'long'
make: *** [database.o] Error 1
In the README.rdoc file of the gem I read about "enabling the option SQLITE_ENABLE_COLUMN_METADATA (see www.sqlite.org/compile.html for details)" but did not understand what should be done.
Can anyone please help me solve this issue?
I have tried other approaches such as
Error with MySql while doing Bundle Install
and I can't install sqlite3 gem but these did not work for me.
Update: I have similar issues when trying
rails new app1 -d mysql
create vendor/plugins/.gitkeep
run bundle install
/Users/username/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/generators/app_base.rb:232: warning: Insecure world writable dir /usr/local in PATH, mode 040777
/Users/username/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler.rb:209: warning: Insecure world writable dir /usr/local in PATH, mode 040777
Fetching source index for http://rubygems.org/
Installing rake (0.9.2.2)
...
Installing jquery-rails (1.0.19)
Installing mysql2 (0.3.11) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/username/.rbenv/versions/1.9.3-p0/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
... (list of switches)
Gem files will remain installed in /Users/username/a/app1/vendor/bundle/gems/mysql2-0.3.11 for inspection.
Results logged to /Users/username/a/app1/vendor/bundle/gems/mysql2-0.3.11/ext/mysql2/gem_make.out
An error occured while installing mysql2 (0.3.11), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.11'` succeeds before bundling.
I already have the gem mysql2 (0.3.11) installed.
Update 2: When executing
gem update
I am getting the following when the sqlite3-ruby gem is being updated:
Updating sqlite3-ruby
Building native extensions. This could take a while...
/Users/username/.rbenv/versions/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:48: warning: Insecure world writable dir /usr/local in PATH, mode 040777
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/Users/username/.rbenv/versions/1.9.3-p0/bin/ruby extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number() in -lsqlite3... yes
checking for rb_proc_arity()... yes
checking for sqlite3_initialize()... no
checking for sqlite3_backup_init()... no
checking for sqlite3_column_database_name()... no
checking for sqlite3_enable_load_extension()... no
checking for sqlite3_load_extension()... no
creating Makefile
make
compiling backup.c
compiling database.c
database.c: In function 'initialize':
database.c:47: error: 'SQLITE_OPEN_READWRITE' undeclared (first use in this function)
database.c:47: error: (Each undeclared identifier is reported only once
database.c:47: error: for each function it appears in.)
database.c:47: error: 'SQLITE_OPEN_CREATE' undeclared (first use in this function)
database.c:79: error: 'SQLITE_OPEN_READONLY' undeclared (first use in this function)
database.c:81: warning: implicit declaration of function 'sqlite3_open_v2'
database.c: In function 'set_sqlite3_func_result':
database.c:285: error: 'sqlite3_int64' undeclared (first use in this function)
database.c:285: error: syntax error before 'long'
make: *** [database.o] Error 1
Gem files will remain installed in /Users/username/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.5 for inspection.
Results logged to /Users/username/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.5/ext/sqlite3/gem_make.out
Gems updated: activesupport, activemodel, rack, journey, sprockets, actionpack, railties, coffee-rails, jquery-rails, minitest, rubygems-update, sass-rails
Installing ri documentation for activesupport-3.2.0.rc2...
Thanks
If you are running Mac OS 10.5.X or below, you can't run sqlite3. You need at least Snow Leopard to be able to compile it.
Instead try changing your Gemfile to use sqlite3-ruby 1.2.5
gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3'