Help us understand the problem. What is going on with this article?

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

More than 3 years have passed since last update.

環境

  • 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も実行できた。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away