# Gruff and rbgsl conflict

**URL:** <https://www.ruby-forum.com/t/gruff-and-rbgsl-conflict/87076>\
**Category:** Rails\
**Created:** [February 28, 2007, 12:13am UTC](https://www.ruby-forum.com/t/gruff-and-rbgsl-conflict/87076 "2007-02-28T00:13:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shin\_e](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@shin\_e](https://www.ruby-forum.com/u/shin_e)\
**Post date:** [February 28, 2007, 12:13am UTC](https://www.ruby-forum.com/t/gruff-and-rbgsl-conflict/87076/1 "2007-02-28T00:13:51Z")

</div>

I cannot get the server running with gruff and rbgsl together.

require ‘gruff’  
require ‘rbgsl’

If I have these two in either environment.rb or anywhere else the  
server quits with the following. The server runs fine with either one.

=\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)  
=\> Rails application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
=\> Call with -d to detach  
=\> Ctrl-C to shutdown server  
\*\* Starting Mongrel listening at 0.0.0.0:3000  
\*\* Starting Rails with development environment…  
dyld: ruby multiple definitions of symbol \_ID\_call  
/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.2/lib/RMagick.bundle  
definition of \_ID\_call  
/usr/local/lib/ruby/site\_ruby/1.8/powerpc-darwin7.9.0/rb\_gsl.bundle  
definition of \_ID\_call  
Trace/BPT trap

The server configuration is:  
ruby 1.8.5 (2006-12-25 patchlevel 12) [powerpc-darwin7.9.0]  
Rails 1.2.2  
mongrel-1.0.1

---

<div class="post-metadata">

**Author:** ![shin\_e](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@shin\_e](https://www.ruby-forum.com/u/shin_e)\
**Post date:** [February 28, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/gruff-and-rbgsl-conflict/87076/2 "2007-02-28T23:01:29Z")

</div>

This problem has nothing to do with rails, the RMagick.bundle and  
gsl.bundle cannot load together. Is there a way to load the modules  
only when I need the them?

---

<div class="post-metadata">

**Author:** ![shin\_e](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@shin\_e](https://www.ruby-forum.com/u/shin_e)\
**Post date:** [March 2, 2007, 2:46am UTC](https://www.ruby-forum.com/t/gruff-and-rbgsl-conflict/87076/3 "2007-03-02T02:46:19Z")

</div>

This problem can be resolved by applying a patch to RMagic and  
recompiling. You can get the patch at rubyforge.
