How To Fix “Unpacked Gem In Vendor/gems Has No Specification File” Error In RubyOnRails?

By on April 3rd, 2010     

Vendor Gem Specification File Ruby On RailsWhile installing and configuring a Ruby On Rails web application on your web server or localhost you might encounter an error that says "Unpacked Gem In Vendor/gems Has No Specification File". For example while installing Shapado on a web server, I faced a similar error. In this article we will tell you how to fix these errors for any Ruby On Rails  (ROR) web application in general.

All gems in a ROR web application's vendor folder have a specs file - .specification. The "Unpacked Gem In Vendor/gems Has No Specification File" error is generally thrown when the above mentioned specification file is missing from that directory. But you need not panic in case you get the same error too. You can easily generate a new specification file for your gem using the following steps:

Step 1: Navigate to the directory of your gem or the required gem in consideration. For example, I had to deal with a gem named devise (v1.0.5) while installing Shapado. So I navigated to the required folder: [HOME]/shapado/vendor/gems/devise-1.0.5

Step 2: Now use this command to create the spec file.

gem specification [gemname] > .specification

This command will create a hidden file named specification in the gem directory. Please note that you have to specify the name of the gem in this command without the version of the gem and you must be inside the directory of the gem. For example while creating a specification file for devise-1.0.5 gem, I would use the command:

gem specification devise > .specification

After the creation of this file, you can go ahead with the installation of your app and you will not find any more such errors. You can check this screenshot below:

specification file vendor gems ruby on rails




         Submit to Reddit     Stumble


Related Posts by Tags: , , ,



  • http://www.amazon.co.uk/Megapixel-Webcam-Ubuntu-Laptop-Desktop/dp/B002UAV8LS/ linux webcam

    I had a similar problem when installing the Ruby on Rails application “substruct” on our server. Thanks for the useful post!

    • Anonymous

      Glad, we were of help :-)

  • http://blog.ennuyer.net srboisvert

    results in:
    ERROR: Unknown gem ‘devise’
    for me

    • Anonymous

      In the above article, we have instantiated Shapado for showing how to solve the problem.

    • Anonymous

      Are you trying to install shapado or some other ROR package?

      • Paul

        I’m installing shapado and get the “ERROR: Unknown gem ‘devise’” problem:

        paul@ubuntu910:~/shapado/vendor/gems/devise-1.0.5$ gem specification devise > .specification
        ERROR: Unknown gem ‘devise’

      • Paul

        Oh, it worked after doing: gem install devise -v 1.0.5
        Probably should have done it as sudo though:

        paul@ubuntu910:~/shapado/vendor/gems/devise-1.0.5$ gem install devise -v 1.0.5
        WARNING: Installing to ~/.gem since /var/lib/gems/1.8 and
        /var/lib/gems/1.8/bin aren’t both writable.
        WARNING: You don’t have /home/paul/.gem/ruby/1.8/bin in your PATH,
        gem executables will not run.
        Successfully installed warden-0.10.3
        Successfully installed devise-1.0.5
        2 gems installed
        Installing ri documentation for warden-0.10.3…
        Installing ri documentation for devise-1.0.5…
        Installing RDoc documentation for warden-0.10.3…
        Installing RDoc documentation for devise-1.0.5…
        paul@ubuntu910:~/shapado/vendor/gems/devise-1.0.5$ gem specification devise > .specification
        paul@ubuntu910:~/shapado/vendor/gems/devise-1.0.5$

  • Pingback: links for 2010-07-19 » Daniel Roux: Web Developer | Ruby | Rails | Music - All things must pass…



How To Fix “Unpacked Gem In Vendor/gems Has No Specification File” Error In RubyOnRails? was originally published on Digitizor.com on April 3, 2010 - 1:33 pm (Indian Standard Time)