Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4616

installing ffi failing when bundle install has run

$
0
0

I am trying to run bundle install on my new react native project, however I keep running into this issue. I tried reinstalling xcode command line tools and updated ruby with brew too. No answer in stackoverflow seems to work. What should i do more

The error is listed below

Fetching activesupport 7.0.8Installing activesupport 7.0.8Gem::Ext::BuildError: ERROR: Failed to build gem native extension.    current directory: /Users/Umar/Desktop/Open Projects/Matan Project/mobile-matan/vendor/bundle/ruby/3.3.0/gems/ffi-1.16.3/ext/ffi_c/usr/local/opt/ruby/bin/ruby extconf.rbchecking for pkg-config for libffi... ["-I/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/ffi ", "", "-lffi"]checking for ffi_prep_closure_loc() in -lffi... nochecking for ffi_prep_closure_loc() in -llibffi... nochecking for ffi_prep_closure_loc() in -llibffi-8... nochecking for whether -Wl,--exclude-libs,ALL is accepted as LDFLAGS... nochecking for rb_gc_mark_movable()... yeschecking for whether -pthread is accepted as LDFLAGS... yescreating extconf.hcreating Makefilecurrent directory: /... Project/mobile-matan/vendor/bundle/ruby/3.3.0/gems/ffi-1.16.3/ext/ffi_cmake DESTDIR\= sitearchdir\=./.gem.20240208-29332-hu6i1m sitelibdir\=./.gem.20240208-29332-hu6i1m cleancurrent directory: /Users/.../mobile-matan/vendor/bundle/ruby/3.3.0/gems/ffi-1.16.3/ext/ffi_cmake DESTDIR\= sitearchdir\=./.gem.20240208-29332-hu6i1m sitelibdir\=./.gem.20240208-29332-hu6i1m/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'/bin/sh: -c: line 1: syntax error: unexpected end of filemake: *** ["/Users/Umar/Desktop/Open] Error 2make failed, exit code 2Gem files will remain installed in /.../mobile-matan/vendor/bundle/ruby/3.3.0/gems/ffi-1.16.3 for inspection.Results logged to /.../mobile-matan/vendor/bundle/ruby/3.3.0/extensions/x86_64-darwin-23/3.3.0/ffi-1.16.3/gem_make.out  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:125:in `run'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:51:in `block in make'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:43:in `each'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:43:in `make'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/ext_conf_builder.rb:42:in `build'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:193:in `build_extension'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:227:in `block in build_extensions'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in `each'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in `build_extensions'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/installer.rb:852:in `build_extensions'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/rubygems_gem_installer.rb:76:in `build_extensions'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/rubygems_gem_installer.rb:28:in `install'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/source/rubygems.rb:205:in `install'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/installer/gem_installer.rb:54:in `install'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/installer/gem_installer.rb:16:in `install_from_spec'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/installer/parallel_installer.rb:132:in `do_install'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/installer/parallel_installer.rb:123:in `block in worker_pool'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/worker.rb:62:in `apply_func'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/worker.rb:57:in `block in process_queue'<internal:kernel>:187:in `loop'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/worker.rb:54:in `process_queue'  /usr/local/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/worker.rb:90:in `block (2 levels) in create_threads'An error occurred while installing ffi (1.16.3), and Bundler cannot continue.In Gemfile:  cocoapods was resolved to 1.14.3, which depends on    cocoapods-core was resolved to 1.14.3, which depends on      typhoeus was resolved to 1.4.1, which depends on        ethon was resolved to 0.16.0, which depends on          ffi

Viewing all articles
Browse latest Browse all 4616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>