Install Issues on Cloud9 IDE

80 views
Skip to first unread message

tomsa...@gmail.com

unread,
Jun 8, 2016, 1:45:28 PM6/8/16
to ror_ecommerce
Hi, trying to get ror-e up on Cloud9 IDE.  I cloned from github and have been following the getting started instructions.  I seem to be stumbling on getting rmagick installed correctly.  

I managed to get imagemagick installed following these helpful instructions on StackOverflow, and confirmed that it was installed as follows:

$ identify -version
Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP    

Still, when I run $ bundle install, I get the following error:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
    /usr/local/rvm/rubies/ruby-2.1.5/bin/ruby -r ./siteconf20160608-66745-1rggucw.rb extconf.rb 
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 0.0.0. Can't find Magick-config in /usr/local/rvm/gems/ruby-2.1.5/bin:/usr/local/rvm/gems/ruby-2.1.5@global/bin:/usr/local/rvm/rubies/ruby-2.1.5/bin:/usr/local/rvm/bin:/home/ubuntu/.nvm/versions/node/v4.4.5/bin:/mnt/shared/bin:/home/ubuntu/workspace/node_modules/.bin:/home/ubuntu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/mnt/shared/sbin:/opt/gitl:/opt/go/bin:/mnt/shared/c9/app.nw/bin

 I've tried the following configurations in my GemFile:
  1. The default from the github clone: gem 'rmagick', '= 2.13.3', :require => 'RMagick'
  2. And another one that was suggested by another member of this group:  gem 'rmagick', '~> 2.13.3', :platforms => :ruby
    • note that I've tried with both  2.13.3 and  2.13.2
No luck in getting it up and running.  
Any help is appreciated!

tomsa...@gmail.com

unread,
Jun 8, 2016, 4:27:42 PM6/8/16
to ror_ecommerce, tomsa...@gmail.com
UPDATE - I think I figured this one out:  

$ sudo gem install rmagick
Fetching: rmagick-2.15.4.gem (100%)
Building native extensions.  This could take a while...
Successfully installed rmagick-2.15.4
1 gem installed

Then managed to get right version of gem installed with 

$ sudo gem install rmagick -v2.13.3

and uninstalled the 2.15.4 version with  

$ sudo gem uninstall rmagick
 
which prompted me then to choose which version I wanted to uninstall.  

Next, I reran "bundle install" with the original gemfile, which installed correctly.  
From there I was able to complete the getting started instructions and get to the admin/overview page.  

Just wanted to post the solutions I found for future reference.  Would gratefully accept correction if something above jumps out at you as wrong.


David Henner

unread,
Jun 8, 2016, 4:30:51 PM6/8/16
to ror_ec...@googlegroups.com
Thanks

I'll take a look and make any updates to the repo/documentation


--
You received this message because you are subscribed to the Google Groups "ror_ecommerce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ror_ecommerc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Henner

unread,
Jun 9, 2016, 1:00:27 AM6/9/16
to ror_ec...@googlegroups.com
I think I'll try to upgrade to rmagick 2.15.4 this weekend.  I'm guessing there won't be an issue.  You probably could have just changed the version in you gemfile. 

I do lock the gemfile because at times rmagick doesn't play well with paperclip.  In fact I wouldn't doubt I'll need to upgrade both at the same time.

hope this helps

Tom Santoro

unread,
Jun 9, 2016, 10:27:11 AM6/9/16
to ror_ec...@googlegroups.com
Thanks.  Please let us know if both upgrades go smoothly and we'll follow suit; for the moment I'll stick with the configurations you already have shown to work.  

You received this message because you are subscribed to a topic in the Google Groups "ror_ecommerce" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ror_ecommerce/vIzpJ87ATrc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ror_ecommerc...@googlegroups.com.

David Henner

unread,
Jun 12, 2016, 8:14:36 PM6/12/16
to ror_ec...@googlegroups.com
OK I just did a few upgrades to gemfiles including rmagick.

Appears to be working good
Reply all
Reply to author
Forward
0 new messages