# Rmagic install Problem on linux/Ubuntu

**URL:** <https://www.ruby-forum.com/t/rmagic-install-problem-on-linux-ubuntu/130185>\
**Category:** Rails\
**Created:** [February 26, 2008, 5:54am UTC](https://www.ruby-forum.com/t/rmagic-install-problem-on-linux-ubuntu/130185 "2008-02-26T05:54:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chirag\_shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@chirag\_shah](https://www.ruby-forum.com/u/chirag_shah)\
**Post date:** [February 26, 2008, 5:54am UTC](https://www.ruby-forum.com/t/rmagic-install-problem-on-linux-ubuntu/130185/1 "2008-02-26T05:54:25Z")

</div>

Hi,  
Please help me for installing Rmagic… I got an error while i am going  
to install rmagic is “ERROR: While executing gem … (RuntimeError)  
ERROR: Failed to build gem native extension.”  
So what is the problem is there?  
How i will install it?  
I have already install imagemagick and libmagick9-dev.

---

<div class="post-metadata">

**Author:** ![chirag\_shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@chirag\_shah](https://www.ruby-forum.com/u/chirag_shah)\
**Post date:** [February 26, 2008, 5:57am UTC](https://www.ruby-forum.com/t/rmagic-install-problem-on-linux-ubuntu/130185/2 "2008-02-26T05:57:38Z")

</div>

> Hi,  
> Please help me for installing Rmagic… I got an error while i am going  
> to install rmagic is “ERROR: While executing gem … (RuntimeError)  
> ERROR: Failed to build gem native extension.”  
> So what is the problem is there?  
> How i will install it?  
> I have already install imagemagick and libmagick9-dev.

What version of imagemagick? The latest rmagick requires a more recent  
imagemagick. When I did it about a month ago on ubuntu gutsy I ended up  
building imagemagick from source as there wasn’t a package (I could  
find… i’m new to ubuntu).

-philip

---

<div class="post-metadata">

**Author:** ![chirag\_shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@chirag\_shah](https://www.ruby-forum.com/u/chirag_shah)\
**Post date:** [February 26, 2008, 6:10am UTC](https://www.ruby-forum.com/t/rmagic-install-problem-on-linux-ubuntu/130185/3 "2008-02-26T06:10:28Z")

</div>

Philip H. wrote:

> > Hi,  
> > Please help me for installing Rmagic… I got an error while i am going  
> > to install rmagic is “ERROR: While executing gem … (RuntimeError)  
> > ERROR: Failed to build gem native extension.”  
> > So what is the problem is there?  
> > How i will install it?  
> > I have already install imagemagick and libmagick9-dev.
> 
> What version of imagemagick? The latest rmagick requires a more recent  
> imagemagick. When I did it about a month ago on ubuntu gutsy I ended up  
> building imagemagick from source as there wasn’t a package (I could  
> find… i’m new to ubuntu).
> 
> -philip

it is an latest version of imagemagick… So what i do now? I am also  
new in ubuntu. Before this i have used feddora. Please if u know the  
solution of the install Rmagic… i need it must

---

<div class="post-metadata">

**Author:** ![chirag\_shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@chirag\_shah](https://www.ruby-forum.com/u/chirag_shah)\
**Post date:** [February 26, 2008, 8:03am UTC](https://www.ruby-forum.com/t/rmagic-install-problem-on-linux-ubuntu/130185/4 "2008-02-26T08:03:48Z")

</div>

sudo apt-get install build-essential ruby-1.8dev

Should fix it.
