# How to use plugin as a gem? Have Sloution?

**URL:** <https://www.ruby-forum.com/t/how-to-use-plugin-as-a-gem-have-sloution/163309>\
**Category:** Ruby\
**Created:** [March 19, 2009, 6:00am UTC](https://www.ruby-forum.com/t/how-to-use-plugin-as-a-gem-have-sloution/163309 "2009-03-19T06:00:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nilez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@nilez](https://www.ruby-forum.com/u/nilez)\
**Post date:** [March 19, 2009, 6:00am UTC](https://www.ruby-forum.com/t/how-to-use-plugin-as-a-gem-have-sloution/163309/1 "2009-03-19T06:00:25Z")

</div>

I use following command for installing thinking-sphinx plugin but I got  
empty folder.

F:\RubyProjects\SphinxTest\>ruby script/plugin install  
git://github.com/freelancing-god/thinking-sphinx.git

Then I download thinking-sphinx from

> **[GitHub - freelancing-god/thinking-sphinx: Please see...](https://github.com/freelancing-god/thinking-sphinx/tree/master)**
>
> master

and install it as a gem , as following

C:\Think-Sphinx\>gem build thinking-sphinx.gemspec  
Successfully built RubyGem  
Name: thinking-sphinx  
Version: 1.1.6  
File: thinking-sphinx-1.1.6.gem

C:\Think-Sphinx\>gem install thinking-sphinx-1.1.6.gem  
Successfully installed thinking-sphinx-1.1.6  
1 gem installed  
Installing ri documentation for thinking-sphinx-1.1.6…  
Installing RDoc documentation for thinking-sphinx-1.1.6…

Now when I run rake task. I got following error.

F:\RubyProjects\SphinxTest\>rake thinking-sphinx:index

(in F:/RubyProjects/SphinxTest)  
rake aborted!  
Don’t know how to build task ‘thinking-sphinx:index’

(See full trace by running task with --trace)

Why this is not working?  
How to solve this issue? If i want to use plugin as a gem for rails  
application how i use it?

Thanks,

Vikas
