LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-06-2009, 03:32 AM   #1
AGer
Member
 
Registered: Oct 2007
Distribution: Slackware current
Posts: 136
Blog Entries: 22

Rep: Reputation: 19
Ruby does not work with tcl/tk in Slackware current


A Hello World program

Code:
require 'tk'

root = TkRoot.new { title "Hello, World!" }
TkLabel.new(root) do
   text 'Hello, World!'
   pack { padx 15 ; pady 15; side 'left' }
end
Tk.mainloop
results in the following error:

Code:
$ ruby tk01.rb
/usr/lib/ruby/1.9.1/tk.rb:29:in `initialize': out of stack space (infinite loop?) (RuntimeError)
	from /usr/lib/ruby/1.9.1/tk.rb:29:in `initialize'
	from /usr/lib/ruby/1.9.1/tk.rb:1168:in `new'
	from /usr/lib/ruby/1.9.1/tk.rb:1168:in `block in <module:TkCore>'
Quick googling gave me http://redmine.ruby-lang.org/issues/show/1480.

So, the question is: did I just filed a bug report for Slackware current or is there some other better place to do that?
 
Old 12-06-2009, 06:26 AM   #2
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55
How "current" are you with -current.

Quote:
+--------------------------+
Fri Dec 4 20:02:12 UTC 2009
d/ruby-1.9.1_p243-i486-2.txz: Rebuilt.
Fixed /usr/include/ruby symlink. Thanks to Francisco Ambrozio.
+--------------------------+
I don't know if this is related or not, but I thought I might mention it just in case.
 
Old 12-07-2009, 05:21 AM   #3
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55
Actually, I believe the update(s) today is the one that will address your issue (based on the link you provided).

Quote:
Mon Dec 7 02:13:13 UTC 2009
d/ruby-1.9.1_p243-i486-3.txz: Rebuilt.
Added an explicit --enable-pthread. This is mostly to make sure that we get
the expected option set from future releases of Ruby -- it appears that not
only is --enable-pthread the default in ruby-1.9.1, but trying to use
--disable-pthread doesn't work. Furthermore, Ruby and Tcl/Tk no longer work
together unless both Ruby and Tcl/Tk are compiled with thread support.
Compiling Tcl/Tk with thread support has caused some problems in the past.
If a threaded Tcl app tries to fork(), it will hang, but by now most affected
Tcl apps (such as eggdrop) should have patches available.
Anyway, this should fix the issues with Ruby and Tk. Please test it, and
report any other problems that arise.
cl/tcl-8.5.8-i486-1.txz: Upgraded.
Compiled using --enable-threads, since Ruby requires it to work with Tk.
tcl/tclx-8.4-i486-3.txz: Rebuilt.
Recompiled using --enable-threads.
tcl/tix-8.4.3-i486-2.txz: Rebuilt.
Recompiled using --enable-threads.
tcl/tk-8.5.8-i486-1.txz: Upgraded.
Compiled using --enable-threads, since Ruby requires it to work with Tk.

... just in case you did not file the bug report that got this looked at.
 
Old 12-07-2009, 05:28 AM   #4
AGer
Member
 
Registered: Oct 2007
Distribution: Slackware current
Posts: 136
Blog Entries: 22

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by Franklin View Post
I don't know if this is related or not, but I thought I might mention it just in case.
The latest ruby package is installed. Must be something else.
 
Old 12-07-2009, 05:40 AM   #5
AGer
Member
 
Registered: Oct 2007
Distribution: Slackware current
Posts: 136
Blog Entries: 22

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by Franklin View Post
Actually, I believe the update(s) today is the one that will address your issue (based on the link you provided).
Yes, it works now. Thanks.
 
Old 12-07-2009, 05:46 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,292

Rep: Reputation: Disabled
We do read threads with bug reports like this one :-)

Eric
 
Old 12-08-2009, 06:19 AM   #7
Rupa
Member
 
Registered: Apr 2008
Location: Berlin, Germany
Distribution: Slackware, Debian, NetBSD
Posts: 80

Rep: Reputation: 25
Thx, Alien Bob. But the newest ruby package breaks building of kdebindings again. It worked with ruby-1.9.1_p243-i486-2.txz from 4th of dec.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Any issues installing Ruby Gems and Ruby on Rails in Slackware? Lufbery Slackware 8 02-09-2011 07:22 PM
Can't get wireless to work on Slackware 12.2/current, Aspire One yhzmet Slackware 2 04-03-2009 10:24 PM
gpg-agent on Slackware(-current?) - does it work? Yalla-One Slackware 2 05-15-2006 02:57 PM
Slackware current--imagemagick won`t work. AlanL Slackware 1 05-09-2006 12:46 AM
Wheel mouse doesn't work with slackware current borgware Slackware 9 08-04-2005 10:45 PM


All times are GMT -5. The time now is 03:51 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration