Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby Gem install creates empty folder in gem directory

Tags:

git

ruby

rubygems

I first discovered this when I downloaded a gem and attempted to build it. It builds fine with no errors. I do a gem install and it says it installs properly. I attempted to require it using irb and it tells me not found. I did a gem list and it shows up. Finally I looked in the gem folder and there is an entry for the gem there, however looking in the gem folder it is empty.

I attempted to install an online gem azimutto and it is also an empty folder.

I am at a loss as to why installing a downloaded git repository of a gem does not install properly.

I am using RVM and have re-installed it.

like image 245
Donald French Avatar asked Mar 05 '16 00:03

Donald French


People also ask

Where gem files are installed?

By default, binaries installed by gem will be placed into: /usr/local/lib/ruby/gems/3.1. 0/bin You may want to add this to your PATH.

How do I install a gem file?

run the command bundle install in your shell, once you have your Gemfile created. This command will look your Gemfile and install the relevant Gems on the indicated versions. The Gemfiles are installed because in your Gemfile you are pointing out the source where the gems can be downloaded from. Save this answer.

Where are RubyGems installed?

When you use the --user-install option, RubyGems will install the gems to a directory inside your home directory, something like ~/. gem/ruby/1.9. 1 . The commands provided by the gems you installed will end up in ~/.

What are gem files in Ruby?

A Gemfile is a file that is created to describe the gem dependencies required to run a Ruby program. A Gemfile should always be placed in the root of the project directory.


1 Answers

This question can be answered with Occam's Razor....

The reason that the Ruby Gem you're installing (Azimutto) is creating an empty directory, is because its not programmed properly.

Take a look at the Gem page on Ruby Gems. The one and only version of it was released in August 2013, its only been downloaded 2,545 times, the link to the Gem homepage just redirects to Twitter, the link to its documentation goes to an empty web page, and there is no repo on Github anymore (I searched directly on Github for it).

The solution to your problem is to not use this Gem.

like image 178
Mr. J Avatar answered Oct 02 '22 23:10

Mr. J