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
on 2010-09-14 18:59
on 2010-09-15 00:05
I haven't had time to look at this, but I have an app that
uses gtksourceview. As you say, it currently doesn't work
on Ubuntu. I will look at it tonight to see if I can find
the problem.
MikeC
on 2010-09-15 08:15
Thanks for the answer, I already updated my source to fall back to Gtk::TextView if using Gtk::SourceView fails. But i'm still curious about the situation. Thanks Balint On 09/15/2010 01:05 AM, Mike Charlton wrote: >> i'm resending this mail, because it's been considered Spam, and i'm still >> i did that, but then i ran into 'uninitialized constant >> class MySourceView< Gtk::ScrolledWindow >> Start uncovering the many advantages of virtual appliances > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > ruby-gnome2-devel-en mailing list > ruby-gnome2-devel-en@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ruby-... -- Dobai-Pataky Balint
on 2010-10-09 23:05
It's actually called Gtk::SourceLanguageManager now. This script works for me on 10.04. It installs the required packages for gtksourceview2 and then downloads, compiles and installs the latest ruby bindings. It complains it can't compile a bunch of bindings as I've not bothered to install all the libs but it works for sourceview2. sudo apt-get install libglib2.0-dev libatk1.0-dev libpango1.0-dev libgtk2.0-dev libgtksourceview2.0-dev gem install pkg-config wget http://sourceforge.net/projects/ruby-gnome2/files/... tar xf ruby-gnome2-all-0.90.2.tar.gz cd ruby-gnome2-all-0.90.2 ruby extconf.rb sudo make sudo make install HTH Dobai-Pataky Balint wrote: > 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
on 2012-02-10 04:41
thankyou philthompson! You've solved my 2 day long install! I want to post complete instructions so others can benefit too: sudo apt-get install libglib2.0-dev libatk1.0-dev libpango1.0-dev libgtk2.0-dev libgtksourceview2.0-dev ruby1.8-dev After that, you can now install the new gems for the bindings (Thanks you Ruby/Gnome2 team for the gems!!! Andrea ;) ) sudo gem install gtk2 sudo gem install gtksourceview2 Please correct me if this is wrong.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.