From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS33070 50.56.128.0/17 X-Spam-Status: No, score=0.0 required=5.0 tests=AWL,FREEMAIL_FROM, T_DKIM_INVALID shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: archivist@yhbt.net Delivered-To: archivist@dcvr.yhbt.net Received: from rubyforge.org (50-56-192-79.static.cloud-ips.com [50.56.192.79]) by dcvr.yhbt.net (Postfix) with ESMTP id 6F6B21F442 for ; Thu, 6 Dec 2012 19:48:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 671F02E07C; Thu, 6 Dec 2012 19:48:26 +0000 (UTC) X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by rubyforge.org (Postfix) with ESMTP id 16A152E076 for ; Thu, 6 Dec 2012 19:48:16 +0000 (UTC) Received: by mail-pb0-f50.google.com with SMTP id wz7so4882859pbc.23 for ; Thu, 06 Dec 2012 11:48:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version:x-mailer; bh=ozY4hoIiLsqkXfZyh1fSI8/Muq5DuobteDJSywnVbGI=; b=oIPCsXiZXqhoTC2Xh0VN8+QNMe48g1iCdWM3lGh5xWogCgoHPai5uSaXNuBkJUG7mC vO9NbTpF+ODgjXaMHlh38i6fgmirBeBmAV7lHQp97lg3aGfpsB52xPOT45QPncV//HE2 zBVT5fU9OwfzusyYpr4cCWRBCS4+5CX6UfFMUYDqrlmgJi8rxHiCa0N8zOx+HPKKAiid dBxPrMZEEjBpadfqeZfbOqIzi1GOm8o83PCiXPgt3PjvwQrfOfYo6T9rqoF+m/vyXqXs Bi9Iza9Sj55vwOH7KZvY/1ObC4GB9kAQ/BCi6pPZg5LUMGyaw9rRVurI73VkIf9vWOZU 8Q3Q== Received: by 10.66.88.197 with SMTP id bi5mr6599425pab.36.1354823295379; Thu, 06 Dec 2012 11:48:15 -0800 (PST) Received: from [10.0.1.128] (75-148-94-141-Oregon.hfc.comcastbusiness.net. [75.148.94.141]) by mx.google.com with ESMTPS id ok8sm5261208pbb.42.2012.12.06.11.48.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Dec 2012 11:48:14 -0800 (PST) From: Mac Martine <99miles@gmail.com> Subject: Unicorn fails to install even though it's already installed and running Message-Id: <0BD39056-4965-488A-B482-EA161849BC6B@gmail.com> Date: Thu, 6 Dec 2012 11:48:13 -0800 To: mongrel-unicorn@rubyforge.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) X-Mailer: Apple Mail (2.1486) X-BeenThere: mongrel-unicorn@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org I'm deploying a Rails 3.2.8 app to Ubuntu. The server already runs the app with Unicorn and Nginx. unicorn -v returns unicorn v4.4.0 Adn rvm gem list shows: unicorn (4.4.0) Yet when I manually run 'gem install unicorn '4.4.0' it fails with the following. Any ideas why? Installing unicorn (4.4.0) ** [out :: mydomain.net] with native extensions ** [out :: mydomain.net] ** [out :: mydomain.net] Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. ** [out :: mydomain.net] ** [out :: mydomain.net] /home/eg/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb ** [out :: mydomain.net] checking for SIZEOF_OFF_T in ruby.h... *** extconf.rb failed *** ** [out :: mydomain.net] Could not create Makefile due to some reason, probably lack of ** [out :: mydomain.net] necessary libraries and/or headers. Check the mkmf.log file for more ** [out :: mydomain.net] details. You may need configuration options. ** [out :: mydomain.net] ** [out :: mydomain.net] Provided configuration options: ** [out :: mydomain.net] --with-opt-dir ** [out :: mydomain.net] --with-opt-include ** [out :: mydomain.net] --without-opt-include=${opt-dir}/include ** [out :: mydomain.net] --with-opt-lib ** [out :: mydomain.net] --without-opt-lib=${opt-dir}/lib ** [out :: mydomain.net] --with-make-prog ** [out :: mydomain.net] --without-make-prog ** [out :: mydomain.net] --srcdir=. ** [out :: mydomain.net] --curdir ** [out :: mydomain.net] --ruby=/home/eg/.rvm/rubies/ruby-1.9.3-p194/bin/ruby ** [out :: mydomain.net] /home/eg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError) ** [out :: mydomain.net] You have to install development tools first. ** [out :: mydomain.net] from /home/eg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `block in try_compile' ** [out :: mydomain.net] from /home/eg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:443:in `with_werror' ** [out :: mydomain.net] from /home/eg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `try_compile' ** [out :: mydomain.net] from /home/eg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:686:in `macro_defined?' ** [out :: mydomain.net] from /home/eg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:822:in `block in have_macro' ** [out :: mydomain.net] from /home/eg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for' ** [out :: mydomain.net] from /home/eg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone' ** [out :: mydomain.net] from /home/eg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open' ** [out :: mydomain.net] from /home/eg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone' ** [out :: mydomain.net] from /home/eg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open' ** [out :: mydomain.net] from /home/eg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:280:in `postpone' ** [out :: mydomain.net] from /home/eg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for' ** [out :: mydomain.net] ** [out :: mydomain.net] from /home/eg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:821:in `have_macro' ** [out :: mydomain.net] from extconf.rb:4:in `
' ** [out :: mydomain.net] ** [out :: mydomain.net] ** [out :: mydomain.net] Gem files will remain installed in /rails_apps/eg/production/shared/bundle/ruby/1.9.1/gems/unicorn-4.4.0 for inspection. ** [out :: mydomain.net] Results logged to /rails_apps/eg/production/shared/bundle/ruby/1.9.1/gems/unicorn-4.4.0/ext/unicorn_http/gem_make.out ** [out :: mydomain.net] ** [out :: mydomain.net] An error occurred while installing unicorn (4.4.0), and Bundler cannot continue. ** [out :: mydomain.net] Make sure that `gem install unicorn -v '4.4.0'` succeeds before bundling. Here's the content from what I _think_ is the relevant mkmf.log have_macro: checking for SIZEOF_SIZE_T in ruby.h... -------------------- yes "gcc -I/home/evergreen/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/x86_64-linux -I/home/eg/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/ruby/backward -I/home/eg/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1 -I. -I/home/eg/.rvm/usr/include -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include 4: /*top*/ 5: #ifndef SIZEOF_SIZE_T 6: # error 7: >>>>>> SIZEOF_SIZE_T undefined <<<<<< 8: #endif /* end */ -------------------- have_macro: checking for SIZEOF_LONG in ruby.h... -------------------- yes _______________________________________________ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying