[#49519] OSX ruby-tkのextconf.rb — 天野 竜太郎 <pikara-giresse82@...>

=1B$BE7Ln$H$$$$$^$9!#=1B(B

13 messages 2013/08/01

[#49536] コマンドラインで ruby の変数に値を設定する方法 — 尾川敏也 <ogw@...>

尾川と申します。

31 messages 2013/08/09
[#49537] Re: コマンドラインで ruby の変数に値を設定する方法 — 古川大輔 <mogya99@...> 2013/08/09

=EF=BC=9E=E3=82=B9=E3=82=AF=E3=83=AA=E3=83=97=E3=83=88=E5=90=8D=E3=81=AB=E7=

[#49538] Re: コマンドラインで ruby の変数に値を設定する方法 — 尾川敏也 <ogw@...> 2013/08/11

尾川です。

[#49539] Re: コマンドラインで ruby の変数に値を設定する方法 — Nobuyoshi Nakada <nobu@...> 2013/08/11

(13/08/11 11:14), 尾川敏也 wrote:

[#49596] シェルスクリプトの Ruby での置き換え (was Re: コマンドラインで ruby の変数に値を設定する方法) — 尾川敏也 <ogw@...> 2013/09/21

尾川と申します。おはようございます。

[#49598] IO.popen に不具合? — 尾川敏也 <ogw@...> 2013/09/24

たびたびお騒がせします。尾川と申します。

[#49611] IO.popen の不審な挙動を再現するサンプルコード — 尾川敏也 <ogw@...> 2013/09/28

尾川です。

[ruby-list:49519] OSX ruby-tkのextconf.rb

From: 天野 竜太郎 <pikara-giresse82@...>
Date: 2013-08-01 06:40:50 UTC
List: ruby-list #49519
=1B$BE7Ln$H$$$$$^$9!#=1B(B

=1B$B4D6-$O!"=1B(BOSX 10.8.4=1B$B!"=1B(BXCode 4.6.3 ActiveTcl8.5.14
OS=1B$B%G%U%)%k%H$H$7$F!"=1B(Btcltk8.5.9=1B$B$,%$%s%9%H!<%k$5$l$F$$$^$9!#=1B=
(B

=
=1B$B:G6a$3$A$i$G!"=1B(BOSX10.8=1B$B$G!"=1B(Bruby-tk=1B$B$,%$%s%9%H!<%k$G$=
-$J$$!"$G$-$F$bMn$A$k$H$$$&OC$,=3DP$^$7$?!#=1B(Bbrew=1B$B$d=1B(Bmac =
ports=1B$B$J$I$rMxMQ$7$F$NOC$N$h$&$G$7$?$,!"EvJ}$O!"%=3D!<%9$+$i$N%$%s%9%H=
!<%k$G$&$^$/$$$-$^$;$s$G$7$?!#=1B(B

ruby-2.0.0-p247=1B$B$*$h$S=1B(B1.9.3-p448=1B$B$G$O!"=1B(B

./configure --enable-shared --enable-pthread
make
=1B$B$G!"=1B(B

check struct members..
check libraries....
Use ActiveTcl libraries (if available).
Search tclConfig.sh and tkConfig.sh.wrong number of arguments (2 for 1)
Failed to configure tk. It will not be installed.
configuring tk/tkutil
Failed to configure tk/tkutil. It will not be installed.
=1B$B$H$J$j$^$9!#=1B(B

=1B$B0JA0$O$3$&$J$j$^$;$s$G$7$?!#=1B(B
=1B$B$:$$$V$sA0$N%=3D!<%9$K$J$j$^$9$,!"$?$H$($P=1B(B1.9.2-p320=1B$B$@$H!"=1B=
(B
make
make install
=1B$BLdBj$J$/=3D*$o$j!"=1B(Bruby-tk=1B$B$bF0$-$^$9!#=1B(B

tk/extconf.rb=1B$B$rHf$Y$k$H=1B(B
308=1B$B9TL\$+$i=1B(B

1.9.2=1B$B$,=1B(B

  paths =3D [
    #"~/Library/Frameworks",
    "/Library/Frameworks",
    "/Network/Library/Frameworks", "/System/Library/Frameworks"
  ]
  paths.reverse! unless TkLib_Config["ActiveTcl"] # system has higher =
priority

  paths.map{|dir| dir.strip.chomp('/')}.each{|dir|
    next unless File.directory?(tcldir =3D File.join(dir, =
"Tcl.framework"))
    next unless File.directory?(tkdir  =3D File.join(dir, =
"Tk.framework"))
    TkLib_Config["tcltk-framework"] =3D dir
    return [tcldir, tkdir]
  }

1.9.3-p448=1B$B$,=1B(B

  paths =3D [
    #"~/Library/Frameworks",
    "/Library/Frameworks",
    "/Network/Library/Frameworks", "/System/Library/Frameworks"
  ]
  paths.reverse! unless TkLib_Config["ActiveTcl"] # system has higher =
priority

  paths.map{|dir| dir.strip.chomp('/')}.each{|dir|
    next unless File.exist?(File.join(dir, "Tcl.framework", "Headers"))
    next unless File.directory?(tcldir =3D File.join(dir, =
"Tcl.framework"))
    next unless File.exist?(File.join(dir, "Tk.framework"), "Headers")
    next unless File.directory?(tkdir  =3D File.join(dir, =
"Tk.framework"))
    TkLib_Config["tcltk-framework"] =3D dir
    return [tcldir, tkdir]
  }


next unless File.exist?(File.join(dir, "Tcl.framework", "Headers"))
next unless File.exist?(File.join(dir, "Tk.framework"), "Headers")
=1B$B$r:o=3D|$9$k$H=1B(B
make=1B$B$ODL$j$^$9$,!"=1B(B
=1B$B%$%s%9%H!<%k8e!"=1B(B
require =
"tk"=1B$B$GMn$A$^$9!J=1B(Bruby-2.0.0-p247=1B$B$*$h$S=1B(B1.9.3-p448=1B$B$I=
$A$i$bF1$8!K!#=1B(B

rb(main):001:0> require "tk"
objc[19535]: Class TKApplication is implemented in both =
/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and =
/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be =
used. Which one is undefined.
objc[19535]: Class TKMenu is implemented in both =
/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and =
/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be =
used. Which one is undefined.
objc[19535]: Class TKContentView is implemented in both =
/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and =
/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be =
used. Which one is undefined.
objc[19535]: Class TKWindow is implemented in both =
/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and =
/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be =
used. Which one is undefined.
RuntimeError: tcltklib: fail to Tk_Init(). Can't find a usable tk.tcl in =
the following directories:=20
    =
/System/Library/Frameworks/Tk.framework/Versions/8.5/Resources/Scripts

=
/System/Library/Frameworks/Tk.framework/Versions/8.5/Resources/Scripts/tk.=
tcl: version conflict for package "Tk": have 8.5.14, need exactly 8.5.9
version conflict for package "Tk": have 8.5.14, need exactly 8.5.9
    while executing
"package require -exact Tk  8.5.9"
    (file =
"/System/Library/Frameworks/Tk.framework/Versions/8.5/Resources/Scripts/tk=
.tcl" line 20)
    invoked from within
"source =
/System/Library/Frameworks/Tk.framework/Versions/8.5/Resources/Scripts/tk.=
tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $file]"


This probably means that tk wasn't installed properly.

	from /Users/ryutaro/ru2/lib/ruby/2.0.0/tk.rb:31:in `initialize'
	from /Users/ryutaro/ru2/lib/ruby/2.0.0/tk.rb:31:in `initialize'
	from /Users/ryutaro/ru2/lib/ruby/2.0.0/tk.rb:1238:in `new'
	from /Users/ryutaro/ru2/lib/ruby/2.0.0/tk.rb:1238:in =
`<module:TkCore>'
	from /Users/ryutaro/ru2/lib/ruby/2.0.0/tk.rb:1152:in `<top =
(required)>'
	from =
/Users/ryutaro/ru2/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:i=
n `require'
	from =
/Users/ryutaro/ru2/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:i=
n `require'
	from (irb):1
	from ru2/bin/irb:12:in `<main>'
irb(main):002:0>=20

=
extconf.rb=1B$B$r=1B(Bruby-1.9.2-p320=1B$B$N$b$N$H<h$jBX$($k$H!"=1B(Bmake=1B=
$B$OLdBj$J$/!"=1B(B
=
=1B$B%$%s%9%H!<%k8e$N=1B(Bruby-tk=1B$B$NF0:n$bLdBj$J$$$h$&$G$9!#!J=1B(BAct=
iveTcl8.5.14=1B$B$NJ}$H$/$C$D$$$F!"=1B(Bdemo-jp/widget=1B$B$bIaDL$KF0$$$F$=
$$^$9!#=1B(Bruby-2.0.0-p247=1B$B$*$h$S=1B(B1.9.3-p448=1B$B$I$A$i$bF0:n$7$F=
$$$^$9!#!K=1B(B

Ryutaro Amano

pikara-giresse82@mb.pikara.ne.jp=

In This Thread

Prev Next