# How to include a gem if server dont suport it!

**URL:** <https://www.ruby-forum.com/t/how-to-include-a-gem-if-server-dont-suport-it/173846>\
**Category:** Rails\
**Created:** [August 16, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/how-to-include-a-gem-if-server-dont-suport-it/173846 "2009-08-16T23:35:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![webstic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/58f4c7/32.png) [@webstic](https://www.ruby-forum.com/u/webstic)\
**Post date:** [August 16, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/how-to-include-a-gem-if-server-dont-suport-it/173846/1 "2009-08-16T23:35:02Z")

</div>

how i can include a gem in my application if my hosting server didnt  
allow me to install it ?

like imagemagick or will\_paginate for example.

---

<div class="post-metadata">

**Author:** ![webstic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/58f4c7/32.png) [@webstic](https://www.ruby-forum.com/u/webstic)\
**Post date:** [August 17, 2009, 12:34am UTC](https://www.ruby-forum.com/t/how-to-include-a-gem-if-server-dont-suport-it/173846/2 "2009-08-17T00:34:01Z")

</div>

On Aug 16, 10:35 pm, Philip G. \<rails-mailing-l…@andreas-  
[s.net](http://s.net)\> wrote:

> how i can include a gem in my application if my hosting server didnt  
> allow me to install it ?
> 
> like imagemagick or will\_paginate for example.

If you specify needed gems in environment.rb (config.gem … ) then  
there are rake tasks for unpacking the gems into your app. Things  
might be more interesting with something like ruby since that has  
native code ( the rake tasks can also build the gems for you but I  
assume you access to a machine close enough to your deployment  
platform that it can compile code that runs on that) and even more  
interesting with one like rmagick since that depends on the  
imagemagick libraries being installed.

Fred
