In relation to rubber stuck while compiling ruby-1.9.2

186 views
Skip to first unread message

schone

unread,
Feb 11, 2011, 1:04:54 AM2/11/11
to rubber
I'm sorry to bombard, I've never used google groups before and this is
a continuation to the previous post.

After ruby finishes compiling i try to re-run `cap rubber:bootstrap`
and this time it fails while trying to install mongrel gem citing my
ruby installation not being a good one.

Output:

Fetching: daemons-1.1.0.gem (100%)
Fetching: fastthread-1.0.7.gem (100%)
** Building native extensions. This could take a while...
Fetching: cgi_multipart_eof_fix-2.5.0.gem (100%)
Fetching: mongrel-1.1.5.gem (100%)
** Building native extensions. This could take a while...
** ERROR: Error installing mongrel:
** ERROR: Failed to build gem native extension.
**
** /usr/local/rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb
** checking for main() in -lc... yes
** creating Makefile
**
** make
** gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
i686-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1
-I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-
parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-
missing-field-initializers -Wno-long-long -fPIC -o http11_parser.o -
c http11_parser.c
** http11_parser.rl: In function ‘http_parser_execute’:
** http11_parser.rl:105: warning: comparison between signed and
unsigned integer expressions
** gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
i686-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1
-I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-
parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-
missing-field-initializers -Wno-long-long -fPIC -o http11.o -c
http11.c
** http11.c: In function ‘http_field’:
** http11.c:70: warning: format not a string literal and no format
arguments
** http11.c:71: warning: format not a string literal and no format
arguments
** http11.c:77: error: ‘struct RString’ has no member named ‘ptr’
** http11.c:77: error: ‘struct RString’ has no member named ‘len’
** http11.c: In function ‘request_uri’:
** http11.c:102: warning: format not a string literal and no format
arguments
** http11.c: In function ‘fragment’:
** http11.c:113: warning: format not a string literal and no format
arguments
** http11.c: In function ‘request_path’:
** http11.c:124: warning: format not a string literal and no format
arguments
** http11.c: In function ‘query_string’:
** http11.c:135: warning: format not a string literal and no format
arguments
** http11.c: In function ‘header_done’:
** http11.c:172: error: ‘struct RString’ has no member named ‘ptr’
** http11.c:172: error: ‘struct RString’ has no member named ‘ptr’
** http11.c:172: error: ‘struct RString’ has no member named ‘ptr’
** http11.c:174: error: ‘struct RString’ has no member named ‘ptr’
** http11.c:176: error: ‘struct RString’ has no member named ‘ptr’
** http11.c:177: error: ‘struct RString’ has no member named ‘len’
** http11.c: In function ‘HttpParser_execute’:
** http11.c:298: error: ‘struct RString’ has no member named ‘ptr’
** http11.c:299: error: ‘struct RString’ has no member named ‘len’
** http11.c:307: warning: format not a string literal and no format
arguments
** make: *** [http11.o] Error 1
**
**
** Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.2-
p0/gems/mongrel-1.1.5 for inspection.
** Results logged to /usr/local/rvm/gems/ruby-1.9.2-p0/gems/
mongrel-1.1.5/ext/http11/gem_make.out
** Building native extensions. This could take a while...
** ERROR: Error installing mongrel_cluster:
** ERROR: Failed to build gem native extension.
**
** /usr/local/rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb
** checking for main() in -lc... yes
** creating Makefile
**
** make
** gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
i686-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1
-I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-
parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-
missing-field-initializers -Wno-long-long -fPIC -o http11_parser.o -
c http11_parser.c
** http11_parser.rl: In function ‘http_parser_execute’:
** http11_parser.rl:105: warning: comparison between signed and
unsigned integer expressions
** gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
i686-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1
-I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-
parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-
missing-field-initializers -Wno-long-long -fPIC -o http11.o -c
http11.c
** http11.c: In function ‘http_field’:
** http11.c:70: warning: format not a string literal and no format
arguments
** http11.c:71: warning: format not a string literal and no format
arguments
** http11.c:77: error: ‘struct RString’ has no member named ‘ptr’
** http11.c:77: error: ‘struct RString’ has no member named ‘len’
** http11.c: In function ‘request_uri’:
** http11.c:102: warning: format not a string literal and no format
arguments
** http11.c: In function ‘fragment’:
** http11.c:113: warning: format not a string literal and no format
arguments
** http11.c: In function ‘request_path’:
** http11.c:124: warning: format not a string literal and no format
arguments
** http11.c: In function ‘query_string’:
** http11.c:135: warning: format not a string literal and no format
arguments
** http11.c: In function ‘header_done’:
** http11.c:172: error: ‘struct RString’ has no member named ‘ptr’
** http11.c:172: error: ‘struct RString’ has no member named ‘ptr’
** http11.c:172: error: ‘struct RString’ has no member named ‘ptr’
** http11.c:174: error: ‘struct RString’ has no member named ‘ptr’
** http11.c:176: error: ‘struct RString’ has no member named ‘ptr’
** http11.c:177: error: ‘struct RString’ has no member named ‘len’
** http11.c: In function ‘HttpParser_execute’:
** http11.c:298: error: ‘struct RString’ has no member named ‘ptr’
** http11.c:299: error: ‘struct RString’ has no member named ‘len’
** http11.c:307: warning: format not a string literal and no format
arguments
** make: *** [http11.o] Error 1
**
**
** Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.2-
p0/gems/mongrel-1.1.5 for inspection.
** Results logged to /usr/local/rvm/gems/ruby-1.9.2-p0/gems/
mongrel-1.1.5/ext/http11/gem_make.out
** 4 gems installed
** /tmp/gem_helper:37:in `<main>': Unable to install gems
(RuntimeError)
command finished
failed: "/bin/bash -l -c 'sudo -p '\\''sudo password: '\\'' bash -l -
c '\\''ruby /tmp/gem_helper install open4 aws-s3 bundler rubber:1.9.1
mysql mongrel mongrel_cluster'\\'''" on web01.foo.com


And so I'm stuck..... :(

Thanks for your help !

schone

unread,
Feb 11, 2011, 2:16:32 PM2/11/11
to rubber
So after running rubber on c1.medium and passing the hurtles with the
authorized_keys file. I finally get to the same error.

Mongrel cannot install.... With an output similar to the one above.

I'd appreciate any help you can give.

Kevin Menard

unread,
Feb 11, 2011, 2:23:22 PM2/11/11
to rubbe...@googlegroups.com
So to be clear, it did successfully build RVM and the connection did not
time out?

If that be the case, are you sure mongrel 1.1.5 is compatible with Ruby
1.9.2? I haven't actually tried Mongrel out in years. I use the
Passenger module on a pretty regular basis and can attest that it works
with Ruby 1.9.2.

--
Kevin

>> ** http11_parser.rl: In function �http_parser_execute�:


>> ** http11_parser.rl:105: warning: comparison between signed and
>> unsigned integer expressions
>> ** gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
>> i686-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
>> ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1
>> -I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-
>> parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-
>> missing-field-initializers -Wno-long-long -fPIC -o http11.o -c
>> http11.c

>> ** http11.c: In function �http_field�:


>> ** http11.c:70: warning: format not a string literal and no format
>> arguments
>> ** http11.c:71: warning: format not a string literal and no format
>> arguments

>> ** http11.c:77: error: �struct RString� has no member named �ptr�
>> ** http11.c:77: error: �struct RString� has no member named �len�
>> ** http11.c: In function �request_uri�:


>> ** http11.c:102: warning: format not a string literal and no format
>> arguments

>> ** http11.c: In function �fragment�:


>> ** http11.c:113: warning: format not a string literal and no format
>> arguments

>> ** http11.c: In function �request_path�:


>> ** http11.c:124: warning: format not a string literal and no format
>> arguments

>> ** http11.c: In function �query_string�:


>> ** http11.c:135: warning: format not a string literal and no format
>> arguments

>> ** http11.c: In function �header_done�:
>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>> ** http11.c:174: error: �struct RString� has no member named �ptr�
>> ** http11.c:176: error: �struct RString� has no member named �ptr�
>> ** http11.c:177: error: �struct RString� has no member named �len�
>> ** http11.c: In function �HttpParser_execute�:
>> ** http11.c:298: error: �struct RString� has no member named �ptr�
>> ** http11.c:299: error: �struct RString� has no member named �len�

>> ** http11_parser.rl: In function �http_parser_execute�:


>> ** http11_parser.rl:105: warning: comparison between signed and
>> unsigned integer expressions
>> ** gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
>> i686-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
>> ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1
>> -I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-
>> parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-
>> missing-field-initializers -Wno-long-long -fPIC -o http11.o -c
>> http11.c

>> ** http11.c: In function �http_field�:


>> ** http11.c:70: warning: format not a string literal and no format
>> arguments
>> ** http11.c:71: warning: format not a string literal and no format
>> arguments

>> ** http11.c:77: error: �struct RString� has no member named �ptr�
>> ** http11.c:77: error: �struct RString� has no member named �len�
>> ** http11.c: In function �request_uri�:


>> ** http11.c:102: warning: format not a string literal and no format
>> arguments

>> ** http11.c: In function �fragment�:


>> ** http11.c:113: warning: format not a string literal and no format
>> arguments

>> ** http11.c: In function �request_path�:


>> ** http11.c:124: warning: format not a string literal and no format
>> arguments

>> ** http11.c: In function �query_string�:


>> ** http11.c:135: warning: format not a string literal and no format
>> arguments

>> ** http11.c: In function �header_done�:
>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>> ** http11.c:174: error: �struct RString� has no member named �ptr�
>> ** http11.c:176: error: �struct RString� has no member named �ptr�
>> ** http11.c:177: error: �struct RString� has no member named �len�
>> ** http11.c: In function �HttpParser_execute�:
>> ** http11.c:298: error: �struct RString� has no member named �ptr�
>> ** http11.c:299: error: �struct RString� has no member named �len�

schone

unread,
Feb 11, 2011, 2:30:32 PM2/11/11
to rubber
Honestly, I'm not sure. I haven't tried either. I learned about your
script and was wondering how it does, so I just chose a package/
configuration arbitrarily...

But yes. RVM as well as Ruby did compile and installed properly. And
from the looks of it, it seems like as long as one would rerun "cap
rubber:bootstrap" on a small instance, after verifying its done
compiling, your script handles it just fine. (Now that I know what to
look for). Cause both cases got to the same point eventually.

Kevin Menard

unread,
Feb 11, 2011, 3:01:23 PM2/11/11
to rubbe...@googlegroups.com
I've seen other cases where RVM doesn't fully compile properly when the
SSH connection times out, and in that case the bootstrap likely won't
work properly.

I suspect if you went with Ruby 1.8.7 you wouldn't have any problems
with Mongrel. If you know of a version that does work, any patches
would be appreciated. At this point you can modify the files generated
in your project to test out different things.

--
Kevin

>>>> ** http11_parser.rl: In function �http_parser_execute�:


>>>> ** http11_parser.rl:105: warning: comparison between signed and
>>>> unsigned integer expressions
>>>> ** gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
>>>> i686-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
>>>> ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1
>>>> -I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-
>>>> parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-
>>>> missing-field-initializers -Wno-long-long -fPIC -o http11.o -c
>>>> http11.c

>>>> ** http11.c: In function �http_field�:


>>>> ** http11.c:70: warning: format not a string literal and no format
>>>> arguments
>>>> ** http11.c:71: warning: format not a string literal and no format
>>>> arguments

>>>> ** http11.c:77: error: �struct RString� has no member named �ptr�


>>>> ** http11.c:77: error: �struct RString� has no member named �len�

>>>> ** http11.c: In function �request_uri�:


>>>> ** http11.c:102: warning: format not a string literal and no format
>>>> arguments

>>>> ** http11.c: In function �fragment�:


>>>> ** http11.c:113: warning: format not a string literal and no format
>>>> arguments

>>>> ** http11.c: In function �request_path�:


>>>> ** http11.c:124: warning: format not a string literal and no format
>>>> arguments

>>>> ** http11.c: In function �query_string�:


>>>> ** http11.c:135: warning: format not a string literal and no format
>>>> arguments

>>>> ** http11.c: In function �header_done�:


>>>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>>>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>>>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>>>> ** http11.c:174: error: �struct RString� has no member named �ptr�
>>>> ** http11.c:176: error: �struct RString� has no member named �ptr�
>>>> ** http11.c:177: error: �struct RString� has no member named �len�
>>>> ** http11.c: In function �HttpParser_execute�:
>>>> ** http11.c:298: error: �struct RString� has no member named �ptr�

>>>> ** http11.c:299: error: �struct RString� has no member named �len�

>>>> ** http11_parser.rl: In function �http_parser_execute�:


>>>> ** http11_parser.rl:105: warning: comparison between signed and
>>>> unsigned integer expressions
>>>> ** gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
>>>> i686-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
>>>> ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1
>>>> -I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-
>>>> parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-
>>>> missing-field-initializers -Wno-long-long -fPIC -o http11.o -c
>>>> http11.c

>>>> ** http11.c: In function �http_field�:


>>>> ** http11.c:70: warning: format not a string literal and no format
>>>> arguments
>>>> ** http11.c:71: warning: format not a string literal and no format
>>>> arguments

>>>> ** http11.c:77: error: �struct RString� has no member named �ptr�


>>>> ** http11.c:77: error: �struct RString� has no member named �len�

>>>> ** http11.c: In function �request_uri�:


>>>> ** http11.c:102: warning: format not a string literal and no format
>>>> arguments

>>>> ** http11.c: In function �fragment�:


>>>> ** http11.c:113: warning: format not a string literal and no format
>>>> arguments

>>>> ** http11.c: In function �request_path�:


>>>> ** http11.c:124: warning: format not a string literal and no format
>>>> arguments

>>>> ** http11.c: In function �query_string�:


>>>> ** http11.c:135: warning: format not a string literal and no format
>>>> arguments

>>>> ** http11.c: In function �header_done�:


>>>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>>>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>>>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>>>> ** http11.c:174: error: �struct RString� has no member named �ptr�
>>>> ** http11.c:176: error: �struct RString� has no member named �ptr�
>>>> ** http11.c:177: error: �struct RString� has no member named �len�
>>>> ** http11.c: In function �HttpParser_execute�:
>>>> ** http11.c:298: error: �struct RString� has no member named �ptr�

>>>> ** http11.c:299: error: �struct RString� has no member named �len�

schone

unread,
Feb 11, 2011, 3:02:45 PM2/11/11
to rubber
This might be an amaturish question and I apologize, but how do I tell
rubber to install an RVM of a different version... 1.8.7? And how do
I chose specific versions for the packages? I.e mongrel of a diff
version if i wanted to?

Thanks for your continued support here!
> >>>>    ** http11_parser.rl: In function �http_parser_execute�:
> >>>>    ** http11_parser.rl:105: warning: comparison between signed and
> >>>> unsigned integer expressions
> >>>>    ** gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
> >>>> i686-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
> >>>> ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1
> >>>> -I. -D_FILE_OFFSET_BITS=64  -fPIC -O3 -ggdb -Wextra -Wno-unused-
> >>>> parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-
> >>>> missing-field-initializers -Wno-long-long  -fPIC  -o http11.o -c
> >>>> http11.c
> >>>>    ** http11.c: In function �http_field�:
> >>>>    ** http11.c:70: warning: format not a string literal and no format
> >>>> arguments
> >>>>    ** http11.c:71: warning: format not a string literal and no format
> >>>> arguments
> >>>>    ** http11.c:77: error: �struct RString� has no member named �ptr�
> >>>>    ** http11.c:77: error: �struct RString� has no member named �len�
> >>>>    ** http11.c: In function �request_uri�:
> >>>>    ** http11.c:102: warning: format not a string literal and no format
> >>>> arguments
> >>>>    ** http11.c: In function �fragment�:
> >>>>    ** http11.c:113: warning: format not a string literal and no format
> >>>> arguments
> >>>>    ** http11.c: In function �request_path�:
> >>>>    ** http11.c:124: warning: format not a string literal and no format
> >>>> arguments
> >>>>    ** http11.c: In function �query_string�:
> >>>>    ** http11.c:135: warning: format not a string literal and no format
> >>>> arguments
> >>>>    ** http11.c: In function �header_done�:
> >>>>    ** http11.c:172: error: �struct RString� has no member named �ptr�
> >>>>    ** http11.c:172: error: �struct RString� has no member named �ptr�
> >>>>    ** http11.c:172: error: �struct RString� has no member named �ptr�
> >>>>    ** http11.c:174: error: �struct RString� has no member named �ptr�
> >>>>    ** http11.c:176: error: �struct RString� has no member named �ptr�
> >>>>    ** http11.c:177: error: �struct RString� has no member named �len�
> >>>>    ** http11.c: In function �HttpParser_execute�:
> >>>>    ** http11.c:298: error: �struct RString� has no member named �ptr�
> >>>>    ** http11.c:299: error: �struct RString� has no member named �len�
> >>>>    ** http11_parser.rl: In function �http_parser_execute�:
> >>>>    ** http11_parser.rl:105: warning: comparison between signed and
> >>>> unsigned integer expressions
> >>>>    ** gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
> >>>> i686-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
> >>>> ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1
> >>>> -I. -D_FILE_OFFSET_BITS=64  -fPIC -O3 -ggdb -Wextra -Wno-unused-
> >>>> parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-
> >>>> missing-field-initializers -Wno-long-long  -fPIC  -o http11.o -c
> >>>> http11.c
> >>>>    ** http11.c: In function �http_field�:
> >>>>    ** http11.c:70: warning: format not a string literal and no format
> >>>> arguments
> >>>>    ** http11.c:71: warning: format not a string literal and no format
> >>>> arguments
> >>>>    ** http11.c:77: error: �struct RString� has no member named �ptr�
> >>>>    ** http11.c:77: error: �struct RString� has no member named �len�
> >>>>    ** http11.c: In function �request_uri�:
> >>>>    ** http11.c:102: warning: format not a string literal and no format
> >>>> arguments
> >>>>    ** http11.c: In function �fragment�:
> >>>>    ** http11.c:113: warning: format not a string literal and no format
> >>>> arguments
> >>>>    ** http11.c: In function �request_path�:
> >>>>    ** http11.c:124: warning: format not a string literal and no format
> >>>> arguments
> >>>>    ** http11.c: In function �query_string�:
> >>>>    ** http11.c:135: warning: format not a string literal and no format
> >>>> arguments
> >>>>    ** http11.c: In function �header_done�:
> >>>>    ** http11.c:172: error: �struct RString� has no member named �ptr�
> >>>>    ** http11.c:172: error: �struct RString� has no member named �ptr�
> >>>>    ** http11.c:172: error: �struct RString� has no member named �ptr�
> >>>>    ** http11.c:174: error: �struct RString� has no member named �ptr�
> >>>>    ** http11.c:176: error: �struct RString� has no member named �ptr�
> >>>>    ** http11.c:177: error: �struct RString� has no member named �len�
> >>>>    ** http11.c: In function �HttpParser_execute�:
> >>>>    ** http11.c:298: error: �struct RString� has no member named �ptr�
> >>>>    ** http11.c:299: error: �struct RString� has no member named �len�
> >>>>    ** http11.c:307: warning: format not a string literal and no format
> >>>> arguments
> >>>>    ** make: *** [http11.o] Error 1
> >>>>    **
> >>>>    **
> >>>>    ** Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.2-
> >>>> p0/gems/mongrel-1.1.5 for inspection.
> >>>>    ** Results logged to /usr/local/rvm/gems/ruby-1.9.2-p0/gems/
> >>>> mongrel-1.1.5/ext/http11/gem_make.out
> >>>>    ** 4 gems installed
> >>>>    ** /tmp/gem_helper:37:in `<main>': Unable to install gems
> >>>> (RuntimeError)
> >>>>       command finished
> >>>> failed: "/bin/bash -l -c 'sudo -p '\\''sudo password: '\\''  bash -l -
> >>>> c...
>
> read more »

Kevin Menard

unread,
Feb 11, 2011, 3:04:49 PM2/11/11
to rubbe...@googlegroups.com
Rubber would have generated a config/rubber/rubber-rvm.yml file for you.
You can set the ruby version in there with the "rvm_ruby" setting.
Just set it to any one of the rubies that RVM can install.

Incidentally, this is also where you update the RVM version number if
you need a newer one than was available the last time the rubber gem was
created.

--
Kevin

>>>>>> ** http11_parser.rl: In function �http_parser_execute�:


>>>>>> ** http11_parser.rl:105: warning: comparison between signed and
>>>>>> unsigned integer expressions
>>>>>> ** gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
>>>>>> i686-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
>>>>>> ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1
>>>>>> -I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-
>>>>>> parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-
>>>>>> missing-field-initializers -Wno-long-long -fPIC -o http11.o -c
>>>>>> http11.c

>>>>>> ** http11.c: In function �http_field�:


>>>>>> ** http11.c:70: warning: format not a string literal and no format
>>>>>> arguments
>>>>>> ** http11.c:71: warning: format not a string literal and no format
>>>>>> arguments

>>>>>> ** http11.c:77: error: �struct RString� has no member named �ptr�
>>>>>> ** http11.c:77: error: �struct RString� has no member named �len�
>>>>>> ** http11.c: In function �request_uri�:

>>>>>> ** http11.c:102: warning: format not a string literal and no format
>>>>>> arguments

>>>>>> ** http11.c: In function �fragment�:


>>>>>> ** http11.c:113: warning: format not a string literal and no format
>>>>>> arguments

>>>>>> ** http11.c: In function �request_path�:


>>>>>> ** http11.c:124: warning: format not a string literal and no format
>>>>>> arguments

>>>>>> ** http11.c: In function �query_string�:


>>>>>> ** http11.c:135: warning: format not a string literal and no format
>>>>>> arguments

>>>>>> ** http11.c: In function �header_done�:
>>>>>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>>>>>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>>>>>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>>>>>> ** http11.c:174: error: �struct RString� has no member named �ptr�
>>>>>> ** http11.c:176: error: �struct RString� has no member named �ptr�
>>>>>> ** http11.c:177: error: �struct RString� has no member named �len�
>>>>>> ** http11.c: In function �HttpParser_execute�:
>>>>>> ** http11.c:298: error: �struct RString� has no member named �ptr�
>>>>>> ** http11.c:299: error: �struct RString� has no member named �len�

>>>>>> ** http11_parser.rl: In function �http_parser_execute�:


>>>>>> ** http11_parser.rl:105: warning: comparison between signed and
>>>>>> unsigned integer expressions
>>>>>> ** gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
>>>>>> i686-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/
>>>>>> ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1
>>>>>> -I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-
>>>>>> parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-
>>>>>> missing-field-initializers -Wno-long-long -fPIC -o http11.o -c
>>>>>> http11.c

>>>>>> ** http11.c: In function �http_field�:


>>>>>> ** http11.c:70: warning: format not a string literal and no format
>>>>>> arguments
>>>>>> ** http11.c:71: warning: format not a string literal and no format
>>>>>> arguments

>>>>>> ** http11.c:77: error: �struct RString� has no member named �ptr�
>>>>>> ** http11.c:77: error: �struct RString� has no member named �len�
>>>>>> ** http11.c: In function �request_uri�:

>>>>>> ** http11.c:102: warning: format not a string literal and no format
>>>>>> arguments

>>>>>> ** http11.c: In function �fragment�:


>>>>>> ** http11.c:113: warning: format not a string literal and no format
>>>>>> arguments

>>>>>> ** http11.c: In function �request_path�:


>>>>>> ** http11.c:124: warning: format not a string literal and no format
>>>>>> arguments

>>>>>> ** http11.c: In function �query_string�:


>>>>>> ** http11.c:135: warning: format not a string literal and no format
>>>>>> arguments

>>>>>> ** http11.c: In function �header_done�:
>>>>>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>>>>>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>>>>>> ** http11.c:172: error: �struct RString� has no member named �ptr�
>>>>>> ** http11.c:174: error: �struct RString� has no member named �ptr�
>>>>>> ** http11.c:176: error: �struct RString� has no member named �ptr�
>>>>>> ** http11.c:177: error: �struct RString� has no member named �len�
>>>>>> ** http11.c: In function �HttpParser_execute�:
>>>>>> ** http11.c:298: error: �struct RString� has no member named �ptr�
>>>>>> ** http11.c:299: error: �struct RString� has no member named �len�

>>>>>> ** http11.c:307: warning: format not a string literal and no format
>>>>>> arguments
>>>>>> ** make: *** [http11.o] Error 1
>>>>>> **
>>>>>> **
>>>>>> ** Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.2-
>>>>>> p0/gems/mongrel-1.1.5 for inspection.
>>>>>> ** Results logged to /usr/local/rvm/gems/ruby-1.9.2-p0/gems/
>>>>>> mongrel-1.1.5/ext/http11/gem_make.out
>>>>>> ** 4 gems installed
>>>>>> ** /tmp/gem_helper:37:in `<main>': Unable to install gems
>>>>>> (RuntimeError)
>>>>>> command finished
>>>>>> failed: "/bin/bash -l -c 'sudo -p '\\''sudo password: '\\'' bash -l -
>>>>>> c...

>> read more �
>

Andrew Libby

unread,
Feb 11, 2011, 3:15:42 PM2/11/11
to rubbe...@googlegroups.com

Could a fix be as simple as:

TCPKeepAlive, or ServerAliveInterval in ssh_config?

Information on these can be found in man ssh_config.

Andy

Kevin Menard

unread,
Feb 11, 2011, 3:20:27 PM2/11/11
to rubbe...@googlegroups.com
I'd love it if it were that easy. But I think it's actually an issue
with capistrano, net-ssh, and Ruby threads.

--
Kevin

Matthew Conway

unread,
Feb 11, 2011, 3:43:55 PM2/11/11
to rubbe...@googlegroups.com
It is - actually if you have an idle connection for a while, AWS routers will drop it (more sensitive during peak usage), but capistrano/net-ssh never detects the connection dropping. This can be prevented with the command line ssh client with ServerAliveInterval, but I haven't been able to figure out a way for one to do this in net-ssh. Our workaround for stuff we know will be long is to just keep sending data over the connection so that AWS doesn't terminate it, e.g. when you choose to zero out the partition when creating a volume on the instance's ephemeral store.

Matt

> --
> You received this message because you are subscribed to the Google Groups "rubber" group.
> To post to this group, send email to rubbe...@googlegroups.com.
> To unsubscribe from this group, send email to rubber-ec2+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubber-ec2?hl=en.
>

Matthew Conway

unread,
Feb 11, 2011, 3:48:17 PM2/11/11
to rubbe...@googlegroups.com
Likewise, I'd recommend you stick with passenger with the newer rubbers since the mongrel recipes haven't been updated in a while (from before we switched rubber over to using rvm).

Matt

schone

unread,
Feb 11, 2011, 4:42:23 PM2/11/11
to rubber
How hard would it be to create a configuration for Thin instead of
mongrel? Or would it not help because Thin relies on mongrel?....

Matthew Conway

unread,
Feb 11, 2011, 4:44:26 PM2/11/11
to rubbe...@googlegroups.com
Never used it, so can't say, but I'd start with a configuration that was similar to it (haproxy? mongrel?), copy it, then edit/deploy/etc till it worked.

Matt

schone

unread,
Feb 11, 2011, 4:51:47 PM2/11/11
to rubber
If you guys can help me out telling me how to try to setup a
deployment with thin, I'd love to give it a go myself and then
contribute the configuration package...

How do I go about doing that? Is there somewhere on the wiki that
gives detailed instructions on how to add your own package and
configure it with rubber?

Matthew Conway

unread,
Feb 11, 2011, 5:18:08 PM2/11/11
to rubbe...@googlegroups.com
Just whats on the wiki and the existing code base.
Look at the Configuration/Extending sections

Matt

Reply all
Reply to author
Forward
0 new messages