2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

WindowsのRubyで、Apache ArrowのParquetを使えるようにするまでの道のり

Posted at

msys2には、Arrowのパッケージが収録されているようです。

red-parquet を入れるまで

まずpacmanシステムを最新にする

>where ruby
d:\opt\ruby\bin\ruby.exe
> d:\opt\ruby\msys64\usr\bin\pacman.exe -Sy
…

Pacman を使って、msys2にarrowのバイナリを入れる

> ridk use
> d:\opt\ruby\msys64\usr\bin\pacman.exe -S mingw-w64-x86_64-arrow
 ごりごりインストール
 
> d:\opt\ruby\msys64\usr\bin\pacman.exe -Ss mingw-w64-x86_64-arrow 
mingw64/mingw-w64-x86_64-arrow 20.0.0-1 [installed]
    Apache Arrow is a cross-language development platform for in-memory data (mingw-w64)

めでたく [installed] のフラグがつきました

Rubyモジュールを入れる

> gem install red-parquet
Temporarily enhancing PATH for MSYS/MINGW...
Using msys2 packages: mingw-w64-ucrt-x86_64-arrow>=19.0.1
Building native extensions. This could take a while...
Successfully installed red-arrow-19.0.1
Building native extensions. This could take a while...
Successfully installed red-parquet-19.0.1
Parsing documentation for red-arrow-19.0.1
Installing ri documentation for red-arrow-19.0.1
Parsing documentation for red-parquet-19.0.1
Installing ri documentation for red-parquet-19.0.1
Done installing documentation for red-arrow, red-parquet after 2 seconds
2 gems installed

試してみる

> irb
irb(main):001:0> require "arrow"
=> true

やったね

RedAmberも入るかな?

> gem install red_amber
Fetching red_amber-0.5.2.gem
Successfully installed red_amber-0.5.2
Parsing documentation for red_amber-0.5.2
Installing ri documentation for red_amber-0.5.2
Done installing documentation for red_amber after 0 seconds
1 gem installed

require 'red_amber'

ができるようになった

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?