LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-21-2013, 05:50 PM   #1
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 186

Rep: Reputation: 37
Ruby-GTK2


Hi is anyone able to build any version of ruby-gtk2? When I run ruby extconf.rb, it complains about missing headers during the build process. The slackbuild from 14.0 has a problem with glib. If anyone can tell me how to build this thing, that would be awesome.

Thanks
 
Old 11-21-2013, 06:19 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I just used the SlackBuild to build ruby-gtk2 2.0.2

First, I had to install the pkg-config gem.

Use the rubygem-pkg-config SlackBuild. Or, if you don't feel like it:

Code:
su -
gem install pkg-config
Then I bumped the version in the ruby-gtk2 SlackBuild, removed ChangeLog from its list of documentation to install, and ran it.

Last edited by dugan; 11-21-2013 at 06:39 PM.
 
1 members found this post helpful.
Old 11-21-2013, 06:24 PM   #3
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
This may help you a bit.
Code:
[ebuild  N     ] dev-ruby/pkg-config-1.1.4-r1  USE="{-test}" RUBY_TARGETS="ruby18 ruby19" 18 kB
[ebuild  N     ] dev-ruby/ruby-glib2-1.2.6  USE="{-test}" RUBY_TARGETS="ruby18 ruby19 (-ree18)" 1,679 kB
[ebuild  N     ] dev-ruby/ruby-atk-1.2.6  USE="{-test}" RUBY_TARGETS="ruby18 ruby19 (-ree18)" 0 kB
[ebuild  N     ] dev-ruby/ruby-gdkpixbuf2-1.2.6  USE="{-test}" RUBY_TARGETS="ruby18 ruby19 (-ree18)" 0 kB
[ebuild  N     ] dev-ruby/ruby-gio2-1.2.6  USE="{-test}" RUBY_TARGETS="ruby18 ruby19 (-ree18)" 0 kB
[ebuild  N     ] dev-ruby/rcairo-1.12.6  USE="-doc {-test}" RUBY_TARGETS="ruby18 ruby19" 93 kB
[ebuild  N     ] dev-ruby/ruby-pango-1.2.6  USE="{-test}" RUBY_TARGETS="ruby18 ruby19 (-ree18)" 0 kB
[ebuild  N     ] dev-ruby/ruby-gtk2-1.2.6  USE="{-test}" RUBY_TARGETS="ruby18 ruby19 (-ree18)" 0 kB
 
Old 11-21-2013, 06:38 PM   #4
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 186

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by dugan View Post
I just used the SlackBuild to build ruby-gtk2 2.0.2

First, I had to install the pkg-config gem:

Code:
su -
gem install pkg-config
(The SlackBuild for rubygem-pkg-config doesn't work on 14.1).

Then I bumped the version and removed ChangeLog from the list of documentation to install, and ran the SlackBuild.
Ok thanks. I'll try installing ruby pkg-config when I get home.
 
Old 11-21-2013, 06:41 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by narz View Post
Ok thanks. I'll try installing ruby pkg-config when I get home.
I updated my post when you were replying. The ruby-pkg-config SlackBuild does indeed work with Slackware 14.1. It's just that right-clicking on the source in the SlackBuilds.org page, pasting it into a terminal, and downloading it with curl caused it to download as an error page. Downloading the source by clicking it works.
 
Old 11-21-2013, 06:52 PM   #6
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 186

Original Poster
Rep: Reputation: 37
Ok gotcha
 
Old 11-25-2013, 06:27 PM   #7
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 186

Original Poster
Rep: Reputation: 37
I did a gem install of ruby-gtk2 and it looked like it went ok, though I only wanted it so I could use the eatmonkey download manager for xfce. http://goodies.xfce.org/projects/applications/eatmonkey

I have aria2 installed with all the dependencies I need, I think, but it doesn't work, it doesn't even start up or give me errors. Has anyone used eatmonkey or knows how to get it to work?
 
Old 11-25-2013, 07:43 PM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I personally have not used Eatmonkey. I only use Ruby-GTK2 to get RubyRipper to work.
 
Old 11-26-2013, 05:59 AM   #9
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 186

Original Poster
Rep: Reputation: 37
Ok so I wasted way too much time trying to get eatmonkey to work, probably not gonna waste anymore. First I realized the bin executable is actually just a script that points to ruby files in /usr/local/share/eatmonkey. So I changed the script so it points at /usr/share where I installed it, problem now is I just get ruby LoadErrors.

/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- eataria2 (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from ./eat.rb:6:in `<main>'

If anyone ever gets this working, please post back. Too much of a headache for me and I'm out of my depth.

EDIT: FML I finally figured it out. In ruby versions >=1.9.2 (I think), you have to replace the "require" methods with "require_relative" for things that ruby doesn't expect in its lib path. It's like a security issue or something. I don't know that much about this since I just read about it, but when I changed some of the "require" methods I got the gui working. It doesn't error out anymore. Hope this helped if anyone wanted to use this.

Last edited by narz; 11-26-2013 at 06:50 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ruby-gtk2 not working baronobeefdip Programming 3 07-04-2013 12:51 PM
Any issues installing Ruby Gems and Ruby on Rails in Slackware? Lufbery Slackware 8 02-09-2011 07:22 PM
[ruby][gtk2] Style Property - How to change? robuxbiz Programming 3 06-06-2010 04:46 AM
Ruby SDL/ Ruby OpenGL tutorials/reference? LinuxNoob75 Programming 0 12-30-2007 12:47 PM
ruby/gtk2 drawingarea Komakino Programming 3 07-06-2006 10:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration