# \[SPAM\] ubuntu SourceView

**URL:** <https://www.ruby-forum.com/t/spam-ubuntu-sourceview/194800>\
**Category:** Ruby-Gnome 2\
**Created:** [September 10, 2010, 10:54pm UTC](https://www.ruby-forum.com/t/spam-ubuntu-sourceview/194800 "2010-09-10T22:54:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [September 10, 2010, 10:54pm UTC](https://www.ruby-forum.com/t/spam-ubuntu-sourceview/194800/1 "2010-09-10T22:54:49Z")

</div>

hi,

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
