What is the difference between local and remote stones?

When I tried to install gem mysql2 (using "sudo gem install mysql2"), I was surprised not to find the gem listed in my "gem list".

After some searching, I found out that gem mysql2 was installed in my remote gems (see them using "gem query -remote" or "gem search mysql2 -r"), and I installed them from remote to local using "gem install - -remote mysql2 ".

Now mysql2 is listed on my gem list.

I am glad that I found a solution, however, I really do not understand why the stone was installed in the removed gemstones in the first place or what is the difference. Googling did not give a good explanation.

Can someone explain this difference to me?

+4
source share
1 answer

Remote gems are actually just on RubyForge or Github servers. Why it won’t be installed is beyond me, but know that there is no such thing as a remote stone, only precious stones installed on your computer and precious stones that you can download from a remote server.

+4
source

Source: https://habr.com/ru/post/1394515/


All Articles