LoginSignup
1
1

More than 5 years have passed since last update.

VMwareでInternet Sharingにするとgem installが失敗した話

Posted at

環境

  • VMware Fusion 7.1.2
  • Ubuntu Server 14.04.3 64-bit
  • Ruby 2.2.3 (rbenv)

起ったこと

gemのグローバルインストールに失敗する。

hoge@hoge:~$ gem install pry
ERROR:  While executing gem ... (Errno::EMSGSIZE)
    Message too long - recvfrom(2)

gem自身のアップグレードにも失敗する。

hoge@hoge:~$ gem update --system
ERROR:  While executing gem ... (Errno::EMSGSIZE)
    Message too long - recvfrom(2)

原因

直接の原因はわからなかったが、VMwareのネットワーク設定を変えたら解決した。
Internet Sharingだと失敗して、Bridge Networkingだと問題なくインストールできる。

ちなみに、すべてのVMware内からの通信がおかしいわけではなかった。
実際、rbenvによるrubyのインストールは問題なく実行できたし、apt-get updateやapt-get upgradeも実行できた。

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