dare ruby wrote in post #1036693:
> Dear All,
>
> I tried to build a gem for my 64 bit linux machine and tried the
> specification like this,
>
> spec.platform = Gem::Platform::X86_64-linux
>

spec.platform = Gem::Platform::CURRENT

> but it generates below error,
>
>  ERROR:  While executing gem ... (NameError)
>    uninitialized constant Gem::Platform::X86_64-linux
>
> I also tried with default like
>
>   spec.platform = Gem::Platform::Ruby
>

spec.platform = Gem::Platform::RUBY

>
> Did any one have an idea on this issue, my wish is i need to build a gem
> for 64 bit linux and i need to know how to specify it in gemspec file.
>

Is your gem including a native extension?

Please take a look to rake-compiler:

http://github.com/luislavena/rake-compiler

And you can do:

$ rake native gem

To generate the native gem for you (you only need the original gemspec)

--
Luis Lavena

-- 
Posted via http://www.ruby-forum.com/.