RMagick Error

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

On 24 June 2014 03:04, Duong vong veasna [email protected]
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

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

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
) 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.