# RMagick Error

**URL:** <https://www.ruby-forum.com/t/rmagick-error/230562>\
**Category:** Rails\
**Created:** [June 24, 2014, 4:06am UTC](https://www.ruby-forum.com/t/rmagick-error/230562 "2014-06-24T04:06:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [June 24, 2014, 4:06am UTC](https://www.ruby-forum.com/t/rmagick-error/230562/1 "2014-06-24T04:06:05Z")

</div>

Dear RoR Developers,  
I have an error when i install RMagick, i have install ImageMagick  
already  
but when i use it in gemfile gem install rmagick. i got error.

ERROR: Error installing rmagick:  
ERROR: Failed to build gem native extension.

after that i do a research and i follow the tutorial i got another  
error.

Please help me,  
thanks you.  
veasna

[https://lh3.googleusercontent.com/-4qDnPGAYeIM/U6jcmf0lOnI/AAAAAAAAAEQ/ogmmufxG5Ho/s1600/RMagick.png](https://lh3.googleusercontent.com/-4qDnPGAYeIM/U6jcmf0lOnI/AAAAAAAAAEQ/ogmmufxG5Ho/s1600/RMagick.png)

---

<div class="post-metadata">

**Author:** ![Duong\_vong\_veasna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/6f9a4e/32.png) [@Duong\_vong\_veasna](https://www.ruby-forum.com/u/Duong_vong_veasna)\
**Post date:** [June 24, 2014, 9:20am UTC](https://www.ruby-forum.com/t/rmagick-error/230562/2 "2014-06-24T09:20:34Z")

</div>

On 24 June 2014 03:04, Duong vong veasna [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Dear RoR Developers,  
> I have an error when i install RMagick, i have install ImageMagick already  
> but when i use it in gemfile gem install rmagick. i got error.
> 
> ERROR: Error installing rmagick:  
> ERROR: Failed to build gem native extension.
> 
> after that i do a research and i follow the tutorial i got another error.

It is no good saying that you got another error without telling us what  
that error is. Also tell use what operating system you are using.

What do you mean when you say “when i use it in gemfile gem install  
rmagick”. Exactly what have you put in Gemfile? Exactly what are you  
doing to get the error and exactly what is the error?

Colin

---

<div class="post-metadata">

**Author:** ![Duong\_vong\_veasna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/6f9a4e/32.png) [@Duong\_vong\_veasna](https://www.ruby-forum.com/u/Duong_vong_veasna)\
**Post date:** [June 25, 2014, 7:59am UTC](https://www.ruby-forum.com/t/rmagick-error/230562/3 "2014-06-25T07:59:34Z")

</div>

Oh sorry  
i have install successfully ImageMagick in my pc.  
in the gemgile i’m use gem ‘rmagick’, require =\> ‘RMagick’

infect it work properly in localhost, but when i upload myapp into  
heroku  
it doesn’t show the record that i have been enter in localhost.  
and one more when i input on heroku web server it work, but next day i  
visit it again it doesn’t show image.

thanks you.  
veasna

---

<div class="post-metadata">

**Author:** ![Duong\_vong\_veasna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/6f9a4e/32.png) [@Duong\_vong\_veasna](https://www.ruby-forum.com/u/Duong_vong_veasna)\
**Post date:** [June 25, 2014, 3:20pm UTC](https://www.ruby-forum.com/t/rmagick-error/230562/4 "2014-06-25T15:20:54Z")

</div>

On Wednesday, 25 June 2014 00:58:15 UTC-5, Duong vong veasna wrote:

> Oh sorry  
> i have install successfully ImageMagick in my pc.  
> in the gemgile i’m use gem ‘rmagick’, require =\> ‘RMagick’
> 
> infect it work properly in localhost, but when i upload myapp into heroku  
> it doesn’t show the record that i have been enter in localhost.

Your Heroku app has a separate database. Check out `heroku pg:push` and  
`heroku pg:pull`  
([Heroku Postgres | Heroku Dev Center](https://devcenter.heroku.com/articles/heroku-postgresql#pg-push-and-pg-pull)  
) to learn about how to move data between your local database and the  
Heroku one.

and one more when i input on heroku web server it work, but next day i

> visit it again it doesn’t show image.

This sounds like you’re saving uploaded images to the Heroku filesystem.  
This is NOT guaranteed to be preserved when your dyno sleeps. You’ll  
want  
to look into using something external like S3 to store files.

–Matt J.
