# Ubuntu SourceView

**URL:** <https://www.ruby-forum.com/t/ubuntu-sourceview/194915>\
**Category:** Ruby-Gnome 2\
**Created:** [September 13, 2010, 6:19pm UTC](https://www.ruby-forum.com/t/ubuntu-sourceview/194915 "2010-09-13T18:19:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@Dobai-Pataky\_B](https://www.ruby-forum.com/u/Dobai-Pataky_B)\
**Post date:** [September 13, 2010, 6:19pm UTC](https://www.ruby-forum.com/t/ubuntu-sourceview/194915/1 "2010-09-13T18:19:16Z")

</div>

hi,

i’m resending this mail, because it’s been considered Spam, and i’m  
still  
stuck on this.

i wanted to test my app on ubuntu lucid, but while require  
‘gtksourceview’  
on gentoo works fine i find out that on ubuntu they only have  
libgtksourceview2-ruby which has it version 0.19-3-1ubuntu3, which means  
the  
following files for them:  
…  
gtksourceview2.rb  
…  
so i have to change my require to ‘gtksourceview2’ ?  
i did that, but then i ran into 'uninitialized constant  
Gtk::SourceLanguagesManager

so i guess this is not the right way to install the Gtk::SourceView on  
ubuntu.

can anyone help me out with this?

ny source looks good on gentoo like this:

require ‘gtksourceview’  
class MySourceView \< Gtk::ScrolledWindow  
def initialize  
@lm=Gtk::SourceLanguagesManager.new  
@source\_buffer = Gtk::SourceBuffer.new  
@source\_buffer.set\_highlight(true)  
…

thanks
