2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

windows環境でgemパッケージ「bson_ext」のインストールが失敗する

Posted at

windows環境で ruby + mongodb の環境を作るときに
bson_ext という gem をインストールしますが
以下のエラーが出ることがあります。

cbson.c:25:23: fatal error: arpa/inet.h: No such file or directory

早い話、この arpa/inet.h というファイルが
存在していないのに読み込まれていることが問題です。

一番てっとり早い解決策は、
arpa/inet.h を空のファイルで作成して
配置すればインストールできるようになります。

以下の場所にファイルを保存します。

[前提] devkit がインストールされていること

{devkitフォルダ}/mingw/i686-w64-mingw32/include/arpa/inet.h

arpaフォルダをincludeフォルダの配下に新規作成し、
arpaフォルダの中にinet.hを空ファイルで新規作成します。

これでインストールが正常にできるようになります。

[参考URL]
http://stackoverflow.com/questions/26092541/windows-rails-error-installing-bson-ext

2
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?