[BioRuby] biographics/pango problem?

Frank Schwach f.schwach at uea.ac.uk
Tue Jul 1 13:26:19 UTC 2008


George,

I also had lots of problems getting the dependencies for Bio::Graphics
up and running on my Centos5 machine but now it is working.
In the end I did this:

Installed pango-devel (there is probably a package for Ubuntu)

Installed ruby-gtk2 to get pango and glib2 ruby bindings:
http://sourceforge.net/project/showfiles.php?group_id=53614&package_id=48093

Most recent version didn’t compile on my system so I used
ruby-gtk2-0.16.0.tar.gz

After unpacking I configured like this to get the bits that I needed:
$ ruby extconf.rb glib pango

then make, make/install.

Glib2.0 or higher is required and you have to make sure that GTK1 is not
installed on the system anymore (I first had both in parallel and that
didn't work).

Maybe this helps solve your problem too. Good luck!

Frank



On Tue, 2008-07-01 at 15:49 +0300, George Githinji wrote:
> Hey,
> I recently migrated my application from windows(where it was running okl) to
> a linux box (because it is open source and has better  support)
> I am running Ubuntu 8.04 (hardy) with rails 1.2.1, ruby 1.8.6, bioruby 1.2.1
> and biographics 1.4
> I have also installed libcairo per the instructions on the bio-graphics
> library webpage.
> however i think i am having problems with pango.
> 
> Is there a pango alternative? Anyway that i can resolve the error below?
> 
> => Booting Mongrel (use 'script/server webrick' to force WEBrick)
> => Rails 2.1.0 application starting on http://0.0.0.0:3013
> => Call with -d to detach
> => Ctrl-C to shutdown server
> ** Starting Mongrel listening at 0.0.0.0:3013
> ** Starting Rails with development environment...
> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require': no such file to load -- pango (MissingSourceFile)
> Exiting
>         from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
>         from
> /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in
> `require'
>         from
> /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in
> `new_constants_in'
>         from
> /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in
> `require'
>         from
> /usr/lib/ruby/gems/1.8/gems/bio-graphics-1.4/lib/bio-graphics.rb:12
>         from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in
> `gem_original_require'
>         from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in
> `require'
>         from
> /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in
> `require'
>          ... 29 levels...
>         from
> /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39
>         from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require'
>         from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
>         from script/server:3
> 





More information about the BioRuby mailing list