Problem Installing Panda in EC2 from the beginning

27 views
Skip to first unread message

Alejandro

unread,
Feb 25, 2010, 6:38:45 PM2/25/10
to panda...@googlegroups.com
Hi guys,

I'm try to install Panda in my own AMI, I'm readying this guide:

But when execute this line:
 gem install amazon_sdb

Receive this error:
ERROR:  Error installing amazon_sdb:
        ERROR: Failed to build gem native extension.

Thanks in advance for any help
Alejandro
wmconsulting.info

Damien Tanner

unread,
Feb 26, 2010, 10:01:49 AM2/26/10
to panda...@googlegroups.com
What do you get if you install with --verbose?
Damien Tanner Damien Tanner - Co-Founder and Director, Panda
+44 (0)20 7099 7486 - pandastream.com - @pandastream



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

linuxiso.com.ar

unread,
Feb 27, 2010, 9:44:07 AM2/27/10
to Panda
Damien,

Thank for your help this is the output with verbose:

gem install amazon_sdb --verbose

HEAD 200 OK: http://gems.rubyforge.org/latest_specs.4.8
GET 302 Found: http://gems.rubyforge.org/latest_specs.4.8.gz
GET 200 OK: http://production.s3.rubygems.org/latest_specs.4.8.gz
connection reset after 3 requests, retrying
GET 302 Found: http://gems.rubyforge.org/quick/Marshal.4.8/json_pure-1.2.1.gemspec.rz
GET 200 OK: http://production.s3.rubygems.org/quick/Marshal.4.8/json_pure-1.2.1.gemspec.rz
Installing gem hpricot-0.8.2
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/CHANGELOG
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/COPYING
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/README
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/Rakefile
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/files/basic.xhtml
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/files/boingboing.html
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/files/cy0.html
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/files/immob.html
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/files/
pace_application.html
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/files/tenderlove.html
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/files/uswebgen.html
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/files/utf8.html
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/files/week9.html
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/files/why.xml
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/load_files.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/nokogiri-bench.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/test_alter.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/test_builder.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/test_parser.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/test_paths.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/test_preserved.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/test/test_xml.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/blankslate.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/builder.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/elements.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/htmlinfo.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/inspect.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/modules.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/parse.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/tag.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/tags.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/traverse.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/xchar.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/extras/mingw-rbconfig.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/hpricot_scan/
hpricot_scan.h
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/fast_xs/
FastXsService.java
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/hpricot_scan/
HpricotCss.java
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/hpricot_scan/
HpricotScanService.java
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/fast_xs/fast_xs.c
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/hpricot_scan/
hpricot_css.c
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/hpricot_scan/
hpricot_scan.c
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/fast_xs/extconf.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/hpricot_scan/extconf.rb
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/hpricot_scan/
hpricot_common.rl
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/hpricot_scan/
hpricot_css.java.rl
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/hpricot_scan/
hpricot_css.rl
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/hpricot_scan/
hpricot_scan.java.rl
/usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/hpricot_scan/
hpricot_scan.rl
Building native extensions. This could take a while...


ERROR: Error installing amazon_sdb:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb install amazon_sdb --verbose
can't find header files for ruby.


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/
hpricot-0.8.2 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/
fast_xs/gem_make.out

cat /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/fast_xs/gem_make.out

/usr/bin/ruby extconf.rb install amazon_sdb --verbose
can't find header files for ruby.

I think this is the problem:
can't find header files for ruby.

some advice for fix that?

Thanks
Alejandro


On 26 feb, 12:01, Damien Tanner <dam...@pandastream.com> wrote:
> What do you get if you install with --verbose?
>  [image: Damien Tanner] Damien Tanner - Co-Founder and Director, Panda
> +44 (0)20 7099 7486 - pandastream.com -

> @pandastream<http://twitter.com/pandastream>


>
> On Thu, Feb 25, 2010 at 11:38 PM, Alejandro <cdgr...@gmail.com> wrote:
> > Hi guys,
>
> > I'm try to install Panda in my own AMI, I'm readying this guide:
>
> > But when execute this line:
> >  gem install amazon_sdb
>
> > Receive this error:
> > ERROR:  Error installing amazon_sdb:
> >         ERROR: Failed to build gem native extension.
>
> > Thanks in advance for any help
> > Alejandro
> > wmconsulting.info
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Panda" group.
> > To post to this group, send email to panda...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > pandastream...@googlegroups.com<pandastream%2Bunsu...@googlegroups.com>

linuxiso.com.ar

unread,
Feb 27, 2010, 10:18:34 AM2/27/10
to Panda
Fixed, was needed install ruby-devel package.

yum install -y ruby-devel

Thanks
Alejandro
wmconsulting.info

On 27 feb, 11:44, "linuxiso.com.ar" <cdgr...@gmail.com> wrote:
> Damien,
>
> Thank for your help this is the output with verbose:
>
>  gem install amazon_sdb --verbose
>
> HEAD 200 OK:http://gems.rubyforge.org/latest_specs.4.8
> GET 302 Found:http://gems.rubyforge.org/latest_specs.4.8.gz
> GET 200 OK:http://production.s3.rubygems.org/latest_specs.4.8.gz
> connection reset after 3 requests, retrying
> GET 302 Found:http://gems.rubyforge.org/quick/Marshal.4.8/json_pure-1.2.1.gemspec.rz

> GET 200 OK:http://production.s3.rubygems.org/quick/Marshal.4.8/json_pure-1.2.1.g...

linuxiso.com.ar

unread,
Feb 27, 2010, 2:33:09 PM2/27/10
to Panda
Guys,

After complet the Panda installation on EC2 I try to start panda, with
"god load panda.god"
A few minutes later, I see my instance with 100% of Swap used.

[root@ log]# free -m
total used free shared buffers
cached
Mem: 1706 1696 9 0 2
42
-/+ buffers/cache: 1652 54
Swap: 895 202 693

[root@ log]# killall -9 merb

[root@ log]# free -m
total used free shared buffers
cached
Mem: 1706 232 1473 0 2
49
-/+ buffers/cache: 181 1525
Swap: 895 105 790

After KILL the MERB command the memory is free, I'm really losing with
this problem some advice?

BTW, the HTTP server newer woks all the time say loading, and the
process is running correctly

Thanks in advance,
Alejandro

Damien Tanner

unread,
Mar 1, 2010, 12:47:48 PM3/1/10
to panda...@googlegroups.com
Hi,

I would suggest cd'ing into the panda dir and starting it with the merb command. If the same behaviour occurs, start with verbose logging and see what the output is.

Damien Tanner Damien Tanner - Co-Founder and Director, Panda
+44 (0)20 7099 7486 - pandastream.com - @pandastream


To unsubscribe from this group, send email to pandastream...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages