Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#41017 closed defect (worksforme)

ruby19 +mactk on Mavericks broken

Reported by: craignied@… Owned by: kimuraw (kimura wataru)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc:
Port: ruby19

Description (last modified by ryandesign (Ryan Carsten Schmidt))

On Mavericks:

sudo port install ruby19 +mactk

The above installs fine.

Then, when trying to run a Ruby script, foot.rb as an example, with tk required/used:

/opt/local/lib/ruby1.9/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- tk (LoadError)
    from /opt/local/lib/ruby1.9/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/craign/bin/foot.rb:6:in `<main>'

Change History (7)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: mavericks added; ruby tk Mavericks removed
Owner: changed from macports-tickets@… to kimuraw@…

comment:2 Changed 11 years ago by kimuraw (kimura wataru)

Keywords: mavericks removed
Status: newassigned

I cannot reproduce your problem. I installed ruby19 +mactk into Mavericks and ran tk samples without error.

tell me result of the following commands.

% uname -r
13.0.0
# => (1) 10.9 Mavericks
% port installed ruby19
The following ports are currently installed:
  ruby19 @1.9.3-p448_1+doc
  ruby19 @1.9.3-p448_1+doc+mactk (active)
# => (2) +mactk activated
% port contents ruby19 | egrep 'tcltklib.bundle|tkutil.bundle'
  /opt/local/lib/ruby1.9/1.9.1/x86_64-darwin13/tcltklib.bundle
  /opt/local/lib/ruby1.9/1.9.1/x86_64-darwin13/tkutil.bundle
# => (3) ruby19 +mactk contains tk modules
% ruby1.9 -rtk -e ''
# => (4) require 'tk' succeed
%

comment:3 Changed 11 years ago by craignied@…

Thanks: I'm a bit gun shy after having had to do a full restore last night to get functionality back. I had cleaned out all of the ports and was reinstalling ruby-tk from a clean ports install, which may not have been the best strategy. With my restored system, I've selfupdated and now I'm upgrade outdated everything so that I have functionality while I'm waiting for Maverick fixes to catch up. Right now, it's hanging on llvm-gcc42, which I'm guessing already has a ticket. If not, I'll start one :)

comment:4 Changed 11 years ago by kimuraw (kimura wataru)

you can re-install ruby19 +mactk with the command.

sudo port -n upgrade --force --enforce-variants ruby19 +mactk

options:

  • -n: rebuild only ruby19
  • --force: rebuild ruby19 even if the latest version as same version as now installed
  • --enforce-variats: respect given variants

comment:5 Changed 11 years ago by kimuraw (kimura wataru)

Resolution: worksforme
Status: assignedclosed

comment:6 Changed 11 years ago by thewolf167@…

I have the same issue, both with +mactk and +tk:

$ port install ruby19 +tk
# clean install

$ uname -r
13.0.0

$ port installed ruby19
The following ports are currently installed:
  ruby19 @1.9.3-p448_1+doc+tk (active)

$ port contents ruby19 | egrep tk
  /opt/local/share/ri/1.9.1/system/RDoc/Parser/Ruby/skip_tkspace_comment-i.ri
  /opt/local/share/ri/1.9.1/system/RDoc/Parser/RubyTools/get_tk-i.ri
  /opt/local/share/ri/1.9.1/system/RDoc/Parser/RubyTools/get_tk_until-i.ri
  /opt/local/share/ri/1.9.1/system/RDoc/Parser/RubyTools/get_tkread-i.ri
  /opt/local/share/ri/1.9.1/system/RDoc/Parser/RubyTools/peek_tk-i.ri
  /opt/local/share/ri/1.9.1/system/RDoc/Parser/RubyTools/skip_tkspace-i.ri
  /opt/local/share/ri/1.9.1/system/RDoc/Parser/RubyTools/unget_tk-i.ri


(nothing shows up with the bundle egrep)

$ ruby1.9 -rtk -e ''
/opt/local/lib/ruby1.9/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- tk (LoadError)
	from /opt/local/lib/ruby1.9/1.9.1/rubygems/custom_require.rb:36:in `require'

$ port uninstall ruby_select ruby19
$ port clean --all ruby_select ruby19
$ port install ruby19 +mactk
# clean install

 $ port installed ruby19
The following ports are currently installed:
  ruby19 @1.9.3-p448_1+doc+mactk (active)

likewise, nothing with egrep on the bundle strings you show

$ ruby1.9 -rtk -e ''
/opt/local/lib/ruby1.9/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- tk (LoadError)
	from /opt/local/lib/ruby1.9/1.9.1/rubygems/custom_require.rb:36:in `require'

comment:7 Changed 11 years ago by kimuraw (kimura wataru)

ruby/tk moudle does not support tk-8.6. if you want to use +tk variant, you need to install tk-8.5 and tcl-8.5 with older Portfile.

Note: See TracTickets for help on using tickets.