Account Options

  1. Sign in
Google Groups Home
« Groups Home
rmagick library dependencies
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matt S  
View profile  
 More options Aug 17 2009, 10:52 am
From: Matt S <ma...@possiamo.com>
Date: Mon, 17 Aug 2009 07:52:49 -0700 (PDT)
Local: Mon, Aug 17 2009 10:52 am
Subject: rmagick library dependencies
We have a config.gem entry for rmagick in our environment.rb file (see
below).  But, the library dependencies (listed in apt-gems.yml) are
not installed.  We also tried adding an apt-gems entry to
moonshine.yml.

Is another step necessary to ensure the library dependencies are
installed?

In environment.rb:
config.gem 'rmagick', :version =>'>= 2.9.0', :lib => 'RMagick2'

In moonshine.yml:
:apt_gems:
  :rmagick:
    - imagemagick
    - libmagick9-dev

We also tried this on jaunty, using:
:apt_gems:
  :rmagick:
    - imagemagick
    - libmagickcore-dev


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt S  
View profile  
 More options Aug 20 2009, 12:19 pm
From: Matt S <ma...@possiamo.com>
Date: Thu, 20 Aug 2009 09:19:14 -0700 (PDT)
Local: Thurs, Aug 20 2009 12:19 pm
Subject: Re: rmagick library dependencies
So.. we forked the project and added tests to test/moonshine/manifest/
rails_test.rb (see below).  These pass, but the libraries are NOT
installed.

Any ideas?
--matt

 def test_magically_loads_rmagick_dependencies_from_apt_gems
    #uses apt_gems.yml
    @manifest.configure(:gems => [{ :name => 'rmagick' }])
    @manifest.rails_gems
    assert_not_nil @manifest.packages['rmagick']
    assert_not_nil @manifest.packages['imagemagick']
    assert_not_nil @manifest.packages['libmagick9-dev']
  end

  def test_rmagick_dependency_is_only_added_if_gem_rmagick_is_included
    #uses apt_gems.yml
    @manifest.configure(:gems => [])
    @manifest.rails_gems
    assert_nil @manifest.packages['rmagick']
    assert_nil @manifest.packages['imagemagick']
    assert_nil @manifest.packages['libmagick9-dev']
  end

On Aug 17, 10:52 am, Matt S <ma...@possiamo.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt S  
View profile  
 More options Aug 20 2009, 3:15 pm
From: Matt S <ma...@possiamo.com>
Date: Thu, 20 Aug 2009 12:15:16 -0700 (PDT)
Local: Thurs, Aug 20 2009 3:15 pm
Subject: Re: rmagick library dependencies
We tested the "system" dependencies functionality by requiring various
gems.
thoughtbot-paperclip: failed.  It depends on rmagick gem.
nokogiri.  Worked.

We are proceeding under the assumption that rmagick lib dependencies
did not match the rmagick gem version.  We could not find any
information that stipulated what imagemagick versions work with what
rmagick versions.  We are moving back to jaunty, since we know what
the dependencies.

Cross your fingers.

On Aug 20, 12:19 pm, Matt S <ma...@possiamo.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt S  
View profile  
 More options Aug 20 2009, 3:24 pm
From: Matt S <ma...@possiamo.com>
Date: Thu, 20 Aug 2009 12:24:08 -0700 (PDT)
Local: Thurs, Aug 20 2009 3:24 pm
Subject: Re: rmagick library dependencies
So... using nokogiri, we have confirmed that the "system" dependencies
(listed in apt_gems.yml) are automatically installed when a gem is
listed in the gems.yml.

To install a gem with system library dependencies:
1. add the config.gem statement.
2. `rake moonshine:gems` to update gems.yml
3. Ensure the gem is supported in apt_gems.yml (docs indicate that an
'apt_gems' entry in moonshine.yml will work, we haven't confirmed this
yet.)
3. commit.
4. `cap deploy`

But... there is a problem with rmagick.

On Aug 20, 3:15 pm, Matt S <ma...@possiamo.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jesse Newland  
View profile  
 More options Aug 20 2009, 3:26 pm
From: Jesse Newland <je...@railsmachine.com>
Date: Thu, 20 Aug 2009 12:26:41 -0700 (PDT)
Local: Thurs, Aug 20 2009 3:26 pm
Subject: Re: rmagick library dependencies
Matt -

This is particularly strange. I don't have time to dig into this right
now, but I'll see what I can do this evening or tomorrow!

On Aug 20, 3:24 pm, Matt S <ma...@possiamo.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt S  
View profile  
 More options Aug 20 2009, 5:40 pm
From: Matt S <ma...@possiamo.com>
Date: Thu, 20 Aug 2009 14:40:05 -0700 (PDT)
Local: Thurs, Aug 20 2009 5:40 pm
Subject: Re: rmagick library dependencies
We were able to get rmagick to work on jaunty, with appropriate
entries for apt_gems.  I'll post our working files soon.

I believe our problem was that we did not have the appropriate rmagick
gem version to match the imagemagick libraries on intrepid.  It's just
a guess, but I think we have eliminated everything else.  Do you know
what version(s) of the rmagick gem works?

--Matt

On Aug 20, 3:26 pm, Jesse Newland <je...@railsmachine.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt S  
View profile  
 More options Aug 21 2009, 9:07 am
From: Matt S <ma...@possiamo.com>
Date: Fri, 21 Aug 2009 06:07:14 -0700 (PDT)
Local: Fri, Aug 21 2009 9:07 am
Subject: Re: rmagick library dependencies
We also seem to be getting more help from the error messages.  We keep
asking ourselves if they have changed, but we are pretty sure it is
just us.  Becoming more familiar with what to pay attention to and
what to filter out.

On Aug 20, 5:40 pm, Matt S <ma...@possiamo.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt S  
View profile  
 More options Aug 27 2009, 10:14 am
From: Matt S <ma...@possiamo.com>
Date: Thu, 27 Aug 2009 07:14:25 -0700 (PDT)
Local: Thurs, Aug 27 2009 10:14 am
Subject: Re: rmagick library dependencies
If you are using jaunty (9.04), add this to your moonshine.yml,
:apt_gems:
  :rmagick:
    - imagemagick
    - libmagickcore-dev
    - libmagickwand-dev

On Aug 21, 9:07 am, Matt S <ma...@possiamo.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt S  
View profile  
 More options Aug 27 2009, 2:15 pm
From: Matt S <ma...@possiamo.com>
Date: Thu, 27 Aug 2009 11:15:32 -0700 (PDT)
Local: Thurs, Aug 27 2009 2:15 pm
Subject: Re: rmagick library dependencies
Nope.  Sorry.  I take that back.

Adding it to moonshine.yml does NOT override the existing apt_gems.yml
entry.  darn.
We tried :rmagick: and rmagick: (symbol & string).

Two options:
1. Replace the rmagick entry in the plugin's apt_gems.yml with those
entries.
2. Comment out the rmagick entry in the plugin's apt_gems.yml (and add
the new ones to moonshine.yml).

--matt

On Aug 27, 10:14 am, Matt S <ma...@possiamo.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »