You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by EdwardKing <zh...@neusoft.com> on 2014/02/21 03:45:07 UTC
How to install avro under ruby?
My OS is CentOS and ruby is 2.1, I want to use avro under ruby, like follows:
the file generate.rb is follows:
require 'rubygems'
require 'avro'
.........
so I download avro-1.7.6.gem and avro-src-1.7.6.tar.gz, but I don't know how to install avro under ruby. Anyone could give me a details command of installing avro under ruby?
Thanks.
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
Re: How to install avro under ruby?
Posted by EdwardKing <zh...@neusoft.com>.
I am a new for avro,I try following command:
$gem install avro
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
$ gem install avro-1.7.6.gem
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
Then I download AVRO-1459.patch,it content is follows:
Index: Rakefile
===================================================================
--- Rakefile (revision 1568676)
+++ Rakefile (working copy)
@@ -23,7 +23,7 @@
p.summary = "Apache Avro for Ruby"
p.description = "Avro is a data serialization and RPC format"
p.url = "http://hadoop.apache.org/avro/"
- p.runtime_dependencies = %w[multi-json]
+ p.runtime_dependencies = %w[multi_json]
end
t = Rake::TestTask.new(:interop)
But I don't know how to use AVRO-1459.patch, my current directory files are follows:
$ ls
avro-1.7.6.gem avro-src-1.7.6 jdk1.7.0_02
hadoop-2.2.0 ruby-2.1.0 AVRO-1459.patch
How to install avro? I don't familiar with CentOS commands,please give me detail command to install avo, Thanks.
----- Original Message -----
From: Tomas Svarovsky
To: user@avro.apache.org
Sent: Friday, February 21, 2014 12:00 PM
Subject: Re: How to install avro under ruby?
Hey Edward
it should go simply as
gem install avrò
Unfortunately there is a bug currently but you can easily circumvent it by following this http://mail-archives.apache.org/mod_mbox/avro-user/201402.mbox/browser
The ticket with a patch is here https://issues.apache.org/jira/browse/AVRO-1459
there is also a neat blog that could get you started here http://www.igvita.com/2010/02/16/data-serialization-rpc-with-avro-ruby/
hope this helps.
Tomas
On Thu, Feb 20, 2014 at 6:45 PM, EdwardKing <zh...@neusoft.com> wrote:
My OS is CentOS and ruby is 2.1, I want to use avro under ruby, like follows:
the file generate.rb is follows:
require 'rubygems'
require 'avro'
.........
so I download avro-1.7.6.gem and avro-src-1.7.6.tar.gz, but I don't know how to install avro under ruby. Anyone could give me a details command of installing avro under ruby?
Thanks.
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
Re: How to install avro under ruby?
Posted by Tomas Svarovsky <sv...@gmail.com>.
Hey Edward
it should go simply as
gem install avrò
Unfortunately there is a bug currently but you can easily circumvent it by
following this
http://mail-archives.apache.org/mod_mbox/avro-user/201402.mbox/browser
The ticket with a patch is here
https://issues.apache.org/jira/browse/AVRO-1459
there is also a neat blog that could get you started here
http://www.igvita.com/2010/02/16/data-serialization-rpc-with-avro-ruby/
hope this helps.
Tomas
On Thu, Feb 20, 2014 at 6:45 PM, EdwardKing <zh...@neusoft.com> wrote:
> My OS is CentOS and ruby is 2.1, I want to use avro under ruby, like
> follows:
> the file generate.rb is follows:
> require 'rubygems'
> require 'avro'
> .........
>
>
> so I download avro-1.7.6.gem and avro-src-1.7.6.tar.gz, but I don't know
> how to install avro under ruby. Anyone could give me a details command of
> installing avro under ruby?
> Thanks.
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------------------------------------
> Confidentiality Notice: The information contained in this e-mail and any
> accompanying attachment(s)
> is intended only for the use of the intended recipient and may be
> confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader
> of this communication is
> not the intended recipient, unauthorized use, forwarding, printing,
> storing, disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this
> communication in error,please
> immediately notify the sender by return e-mail, and delete the original
> message and all copies from
> your system. Thank you.
>
> ---------------------------------------------------------------------------------------------------
>