Error Failed To Build Gem Native Extension. Osx
Contents |
Sign in Pricing Blog Support Search GitHub This repository Watch error failed to build gem native extension rails 15 Star 160 Fork 98 cowboyd/libv8 Code Issues 6 Pull
Error Failed To Build Gem Native Extension Mac
requests 0 Projects 0 Pulse Graphs Failed to build gem native extension - OS
Error Failed To Build Gem Native Extension Windows
X 10.11 #180 Closed alexrogers opened this Issue Jul 6, 2015 · 7 comments Projects None yet Labels None yet Milestone
Error Failed To Build Gem Native Extension Ubuntu
No milestone Assignees No one assigned 7 participants alexrogers commented Jul 6, 2015 When I am installing libv8 on my OS X 10.11 install with Ruby 2.2.1, I see this (from bundle install) Installing libv8 3.16.14.11 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem error failed to build gem native extension compass native extension. /Users/alex/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150706-93135-suettf.rb extconf.rb creating Makefile /Users/alex/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/open3.rb:193: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 Compiling v8 for x64 Using python 2.7.6 Using compiler: /usr/bin/c++ (clang version 7.0.0) In file included from ../src/conversions.cc:32: In file included from ../src/conversions-inl.h:43: ../src/scanner.h:444:5: error: unused typedef '__StaticAssertTypedef__444' [-Werror,-Wunused-local-typedef] STATIC_ASSERT(kCharacterLookaheadBufferSize == 1); ^ ../src/checks.h:283:30: note: expanded from macro 'STATIC_ASSERT' #define STATIC_ASSERT(test) STATIC_CHECK(test) ^ ../src/checks.h:251:5: note: expanded from macro 'STATIC_CHECK' SEMI_STATIC_JOIN(__StaticAssertTypedef__, __LINE__) ^ ../src/checks.h:240:32: note: expanded from macro 'SEMI_STATIC_JOIN' #define SEMI_STATIC_JOIN(a, b) SEMI_STATIC_JOIN_HELPER(a, b) ^ ../src/checks.h:241:39: note: expanded from macro 'SEMI_STATIC_JOIN_HELPER' #define SEMI_STATIC_JOIN_HELPER(a, b) a##b ^
Sign in Pricing Blog Support Search GitHub This repository Watch 112 Star 2,988 Fork 382 FontCustom/fontcustom Code Issues 80 Pull requests 20 Projects 0 error failed to build gem native extension windows 8 Wiki Pulse Graphs New issue Gem installation error on OSX 10.9 (failed error failed to build gem native extension linux to build gem native extension) #194 Open micros123 opened this Issue Mar 18, 2014 · 12 comments Projects error failed to build gem native extension installing rails None yet Labels documentation Milestone No milestone Assignees No one assigned 14 participants micros123 commented Mar 18, 2014 After successfully running brew install fontforge ttfautohint, installing the https://github.com/cowboyd/libv8/issues/180 fontcustom gem on OSX 10.9 (Mavericks) proved to be a problem. There is a solution however, which I thought would be good to share here, in case others run into the same issues. The error: Building native extensions. This could take a while... ERROR: Error installing fontcustom: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb creating Makefile make "DESTDIR=" https://github.com/FontCustom/fontcustom/issues/194 compiling generator.c linking shared-object json/ext/generator.bundle clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future make: *** [generator.bundle] Error 1 The Apple LLVM compiler in Xcode 5.1 treats unrecognized command-line options as errors. This issue has been seen when building both Python native extensions and Ruby Gems, where some invalid compiler options are currently specified. As a solution, use the following to install the json gem. Note, however, that this is only a temporary fix. ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install json See also: http://stackoverflow.com/questions/22352838/ruby-gem-install-json-fails-on-mavericks-and-xcode-5-1-unknown-argument-mul valerie-taesch commented Mar 24, 2014 Thanks !! justin-schroeder commented Apr 3, 2014 Much appreciated fix @micros123. I had to use the same ARCHFLAGS for installing fontcustom as well, even after json was built. chinmaybijwe commented Apr 7, 2014 That's awesome! Thank you. bcherny commented Apr 12, 2014 +1 thanks @micros123 ! hustcer commented Apr 16, 2014 Thanks !! philbirnie commented Apr 17, 2014 +1 Thanks @micros123 emiviada commented Apr 22, 2014 +1 thanks @micros123 ! guylinksman commented Apr 29, 2014 thanks !!! +1 @mic
Start here for a quick overview of the site Help Center Detailed answers to any questions you might http://apple.stackexchange.com/questions/239364/rails-reporting-error-failed-to-build-gem-native-extension have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting http://esausilva.com/2014/11/01/cannot-install-pg-gem-in-mac-osx-error-installing-pg-error-failed-to-build-gem-native-extension-ruby-on-rails/ ads with us Ask Different Questions Tags Users Badges Unanswered Ask Question _ Ask Different is a question and answer site for power users of Apple hardware and error failed software. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Rails reporting error: Failed to build gem native extension up vote 0 down vote favorite I have installed up-to-date command line tools, and error failed to followed steps on other threads with this subject. I know this seems like a duplicate, but I don't see any answers to my issue here: Jacobs-MacBook-Pro:~ jacob$ sudo gem install rails Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb checking if the C compiler accepts ... *** 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 --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby --help --clean /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:434:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:549:in `block in try_compile' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:500:in `with_werror' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:549:in `try_compile' from extconf.rb:80:in `nokogiri_try_compile' from extconf.rb:87:in `block in add_cflags' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:597:in `with_cflags' from extconf.rb:86:in `add_cflags' from extconf.rb:336:in `
Rails, Web Development EmailPrintIf you are planning on using PostgreSQL with Ruby on Rails, you will need to install pg, which is the Ruby interface to the PostgreSQL RDBMS. The command to install it is as follows: $ gem install pg However, before you run that command you need to install PostgreSQL. After installing PostgreSQL and run the above command to install pg, if you get the below error, keep reading 🙂 esilva@Esau-MBP:Website$ sudo gem install pg Password: Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20141101-13676-mwatig.rb extconf.rb checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config checking for libpq-fe.h... no Can't find the 'libpq-fe.h header *** 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 --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby --with-pg --without-pg --with-pg-config --without-pg-config --with-pg_config --without-pg_config --with-pg-dir --without-pg-dir --with-pg-include --without-pg-include=${pg-dir}/include --with-pg-lib --without-pg-lib=${pg-dir}/ extconf failed, exit code 1 Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/pg-0.17.1 for inspection. Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13/2.0.0/pg-0.17.1/gem_make.out Well, this is because pg needs pg_config to install (you get pg_config when you install PostgreSQL). To find pg_config run the below command, then copy the path $ sudo find / -name "pg_config" After you find pg_config location, run the below command to finally install pg gem. Remember to add -- -with-pg-config=/path/to/pg_config gem option esilva@Esau-MBP:~/AAA_Website$ sudo gem install pg -