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=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 AB7BD1F442 for ; Thu, 6 Dec 2012 21:35:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id AA3342E07E; Thu, 6 Dec 2012 21:35:09 +0000 (UTC) X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org X-Greylist: delayed 1022 seconds by postgrey-1.31 at rubyforge; Thu, 06 Dec 2012 21:35:02 UTC Received: from mail-ie0-f172.google.com (mail-ie0-f172.google.com [209.85.223.172]) by rubyforge.org (Postfix) with ESMTP id 45FE52E079 for ; Thu, 6 Dec 2012 21:35:02 +0000 (UTC) Received: by mail-ie0-f172.google.com with SMTP id c13so13251880ieb.17 for ; Thu, 06 Dec 2012 13:35:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=S0fgQoCKuaiE0qC66nL6rTJ/MkTHNEyxQ0anVAwtSNU=; b=PgVgVaUrnHBJVgMDQEaSXVuyPrdZvKHoSN05pvY/32dJPmUxVLySg6AkOH6hygKHdn RrVKpCA2vD7/dhARosKv+4NHXRv0ScnvvJtx3KW440cwus++A7U/eMAClstrw5Ugl0wH evetV7D13QbyUxukXI1ShTKh8S3T1XYujG/aE5i6xUQlJsfygnARFb7RvujkrU3sn66L x2tYeZfI7HyES5zxiNRhmH5JiONixu0B/g8BIg50Ta/5yFlAtrdxZLZ1lib42GD8gRfV U+ldT1rmrxje4GRO+zWjW2O2680O9hUSOnOnZ4qgbCU/i82UQXTEiC39qwI6QBqMdynn 15jA== Received: by 10.50.0.203 with SMTP id 11mr7210848igg.69.1354828316097; Thu, 06 Dec 2012 13:11:56 -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 ex10sm8162111igc.15.2012.12.06.13.11.54 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Dec 2012 13:11:54 -0800 (PST) Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Subject: Re: Unicorn fails to install even though it's already installed and running From: Mac Martine <99miles@gmail.com> In-Reply-To: <20121206202328.GA26032@dcvr.yhbt.net> Date: Thu, 6 Dec 2012 13:11:53 -0800 Message-Id: <9A4BDE03-B10B-4754-8CAF-F1E97B3C86CA@gmail.com> References: <0BD39056-4965-488A-B482-EA161849BC6B@gmail.com> <20121206202328.GA26032@dcvr.yhbt.net> To: unicorn list 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="windows-1252" Content-Transfer-Encoding: quoted-printable Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org Thanks, I can install other gems just fine in the same way, so it doesn't seem like= permissions then, right? And disk space looks ok: df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 38G 17G 21G 45% / udev 490M 4.0K 490M 1% /dev tmpfs 199M 240K 199M 1% /run none 5.0M 0 5.0M 0% /run/lock none 497M 0 497M 0% /run/shm Here's the end of mkmf.log have_macro: checking for SIZEOF_SIZE_T in ruby.h... -------------------- no "gcc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -fno-strict-aliasing -g -g= -O2 -fPIC -c conftest.c" conftest.c:4:3: error: #error conftest.c:5:1: error: expected identifier or =91(=92 before =91>>=92 token checked program was: /* begin */ 1: #include 2: /*top*/ 3: #ifndef SIZEOF_SIZE_T 4: # error 5: >>>>>> SIZEOF_SIZE_T undefined <<<<<< 6: #endif /* end */ -------------------- check_sizeof: checking size of size_t in sys/types.h... -------------------= - 8 "gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -fno-strict-al= iasing -g -g -O2 -fPIC conftest.c -L. -L/usr/lib -L. -Wl,-Bsymbolic-fun= ctions -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -lrt -= ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include 2: 3: #include 4: /*top*/ 5: int conftest_const =3D (int)(sizeof(size_t)); 6: int main() {printf("%d\n", conftest_const); return 0;} /* end */ ./conftest | -------------------- have_macro: checking for SIZEOF_LONG in ruby.h... -------------------- yes "gcc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -fno-strict-aliasing -g -g= -O2 -fPIC -c conftest.c" checked program was: /* begin */ 1: #include 2: /*top*/ 3: #ifndef SIZEOF_LONG 4: # error 5: >>>>>> SIZEOF_LONG undefined <<<<<< 6: #endif /* end */ -------------------- have_func: checking for rb_str_set_len() in ruby.h... -------------------- = yes "gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -fno-strict-al= iasing -g -g -O2 -fPIC conftest.c -L. -L/usr/lib -L. -Wl,-Bsymbolic-fun= ctions -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -lrt -= ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include 2: 3: /*top*/ 4: int main() { return 0; } 5: int t() { void ((*volatile p)()); p =3D (void ((*)()))rb_str_set_len; re= turn 0; } /* end */ -------------------- have_func: checking for gmtime_r() in time.h... -------------------- yes "gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -fno-strict-al= iasing -g -g -O2 -fPIC conftest.c -L. -L/usr/lib -L. -Wl,-Bsymbolic-fun= ctions -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -lrt -= ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include 2: 3: /*top*/ 4: int main() { return 0; } 5: int t() { void ((*volatile p)()); p =3D (void ((*)()))gmtime_r; return 0= ; } /* end */ -------------------- On Dec 6, 2012, at 12:23 PM, Eric Wong wrote: > Mac Martine <99miles@gmail.com> wrote: >> I'm deploying a Rails 3.2.8 app to Ubuntu. The server already runs the a= pp 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 f= ollowing. Any ideas why? > = > Not sure, yet, (see below) > = > Then there's also errors which may not be logged correctly: permissions > and out-of-disk-space errors > = >> 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/ru= by 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 reaso= n, 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 option= s. > = >> ** [out :: mydomain.net] Gem files will remain installed in /rails_a= pps/eg/production/shared/bundle/ruby/1.9.1/gems/unicorn-4.4.0 for inspectio= n. >> ** [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 > = > Maybe gem_make.out will have more info than mkmf.log > = >> 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/rub= y/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-declarati= on -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 > = > That looks fine, actually. I think any error will be near the end of > mkmf.log. > _______________________________________________ > 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 _______________________________________________ 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