RMagick Error

48 views
Skip to first unread message

Duong vong veasna

unread,
Jun 23, 2014, 10:04:59 PM6/23/14
to rubyonra...@googlegroups.com
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

Colin Law

unread,
Jun 24, 2014, 3:20:01 AM6/24/14
to rubyonra...@googlegroups.com
On 24 June 2014 03:04, Duong vong veasna <veasna...@gmail.com> 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

Duong vong veasna

unread,
Jun 25, 2014, 1:58:15 AM6/25/14
to rubyonra...@googlegroups.com
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

Matt Jones

unread,
Jun 25, 2014, 9:19:23 AM6/25/14
to rubyonra...@googlegroups.com


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`  (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 Jones
Reply all
Reply to author
Forward
0 new messages