Failed to build ext/tk of ruby-1.9.2-rc2 on Mac OS X

yharae$B$G$9!#e(B

e$B<j85$Ne(BMacBooke$B$Ge(Bruby-1.9.2-rc2e$B$r%3%s%Q%$%k$7$h$&$H$7$?$H$3$m!"e(B
ext/tke$B$N$H$3$m$G;_$^$C$F$7$^$$$^$7$?!#e(B
e$BCN?M$Ne(BMacBooke$B$G$O%3%s%Q%$%k$G$-$k$=$&$J$N$G!"KM$N4D6-$,$*$+$7$$$Ne(B
e$B$+$bCN$l$^$;$s$,!"AjCL$5$;$F$/[email protected]$5$$!#e(B

= e$B4D6-e(B
Mac OS X 10.5.8e$B$G$9!#0J2<$N%U%)%k%@$,$"$j$^$9!#e(B
/System/Library/Frameworks/Tcl.framework/Versions/8.4/
/System/Library/Frameworks/Tk.framework/Versions/8.4/

e$B$3$l$i$H$OJL$K!"e(BMacPortse$B$G0J2<$N%Q%C%1!<%8$rF~$l$F$$$^$9!#e(B
tcl @8.5.8_0 (active)
tk @8.5.8_0 (active)

= makee$B7k2Le(B
% ./configure --enable-shared=true --with-opt-dir=/opt/local
% make
e$B$H$7$?$H$3$m!"0J2<$N$h$&$J%(%i!<$K$J$j$^$7$?!#e(B

e$B<B9T%3%^%s%I$r8+$k$H!"e(B/Systeme$B$Ne(BTcle$B$H!"e(BMacPortse$B$Ne(BTke$B$rAH$_9g$o$;$h$&$H$7$Fe(B
e$B%(%i!<$K$J$C$F$$$k$h$&$G$9!#e(B

e$BN>J}$H$be(BMacPortse$B$N$b$N$r;H$o$;$?$$$N$G$9$,!“e(Bconfiguree$B$G2?$+%*%W%7%g%s$re(B
e$BDI2C$9$kI,MW$,$”$k$G$7$g$&$+!#e(B

gcc -I. -I…/…/.ext/include/i386-darwin9.8.0 -I…/…/./include
-I…/…/./ext/tk
-I/System/Library/Frameworks/Tcl.framework/Versions/8.4/Headers
-DRUBY_EX
TCONF_H=“extconf.h” -I/opt/local/include -D_XOPEN_SOURCE
-D_DARWIN_C_SOURCE -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1
-DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DH
AVE_PTHREAD_ATFORK=1 -DMAC_OSX_TCL=1 -DHAVE_CFBUNDLE=1 -DUSE_VFORK=1
-DTCL_DEFAULT_ENCODING=“utf-8” -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1
-DHAVE_STRTOLL=1 -DH
AVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DNO_VALUES_H=1 -DTIME_WITH_SYS_TIME=1
-DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1
-DHAVE_SIGNED_CHAR=1 -D
HAVE_LANGINFO=1 -DHAVE_SYS_FILIO_H=1 -include tclArch.h -DMAC_OSX_TK
-DWITH_TCL_ENABLE_THREAD=1 -DRUBY_VERSION=“1.9.2”
-DRUBY_RELEASE_DATE="2010-07-11
" -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses
-Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers
-Wshorten-64-to-32 -
Wno-long-long -pipe -o stubs.o -c stubs.c
In file included from stubs.c:16:
/opt/local/include/tk.h:23:3: error: #error Tk 8.5 must be compiled
with tcl.h from Tcl 8.5
make: *** [stubs.o] Error 1

= Rubye$B$N%j%S%8%g%se(B
preview3e$B$^$G$O%3%s%Q%$%k$G$-$F$$$F!“e(Brc1e$B$+$i;$^$k$h$&$K$J$j$^$7$?!#e(B
e$B0J2<$N%3%
%C%H$,4X78$”$k$+$bCN$l$^$;$s!#e(B

= [email protected]@.%U%!%$%ke(B
[email protected]@.$5$l$?e(Bmkmf.log, Makefile, extconf.h, config_list
e$B$O0J2<$NDL$j$G$9!#e(B

e$B0J>e$G$9!#$h$m$7$/$*4j$$$7$^$9!#e(B

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B

From: Yutaka H. [email protected]
Subject: [ruby-dev:41883] failed to build ext/tk of ruby-1.9.2-rc2 on
Mac OS X
Date: Wed, 28 Jul 2010 11:11:39 +0900
Message-ID:
[email protected]

e$B$3$l$i$H$OJL$K!"e(BMacPortse$B$G0J2<$N%Q%C%1!<%8$rF~$l$F$$$^$9!#e(B

e$BN>J}$H$be(BMacPortse$B$N$b$N$r;H$o$;$?$$$N$G$9$,!“e(Bconfiguree$B$G2?$+%*%W%7%g%s$re(B
e$BDI2C$9$kI,MW$,$”$k$G$7$g$&$+!#e(B

e$B$4$a$s$J$5$$!%e(B
e$B$^[email protected](B extconf.rb e$B$G$N%A%’%C%/$K4E$$ItJ,$,$"$k$N$G$7$g$&$M!%e(B
ext/tk/README.tcltklib [email protected]$/$H!$e(B
e$BMxMQ$9$k%X%C%@%U%!%$%k$d%i%$%V%i%[email protected]<($9$k$?$a$Ne(B
configure
e$B%*%W%7%g%[email protected]@$,$"$j$^$9$N$G!$;29M$K$7$F$/[email protected]$5$$!%e(B

e$BK\7o$N>l9g$O!$e(B

% ./configure --enable-shared=true --with-opt-dir=/opt/local
–with-tcl-dir=/opt/local --with-tk-dir=/opt/local
–disable-tcltk-framework

e$B$H$$$&;XDj$GBg>fIW$J$N$G$O$J$$$+$H;W$$$^$9!%e(B

e$B:G8e$Ne(B --disable-tcltk-framework

e$B$OL5$/$F$bNI$$5$$,$7$^$9!%e(B

e$B$=$l$G$b%@%a$G$"$l$P!$$*<j?t$G$9$,e(B make
e$B;~$K=PNO$5$l$k%a%C%;!<%8$NFbe(B
(e$B!Ve(B make 2>&1 | tee make.log
e$B!W$H$G$b$7$FJ]B8$7$F$/[email protected]$5$$e(B)e$B!$e(B
tk e$B4XO"$NItJ,$rAw$C$F$/[email protected]$5$$!%e(B
e$B$I$3$rA$7$F$I$l$rMxMQ$9$k$3$H$K$7$?$+$N>pJs$,$"$k$O$:$G$9$N$G!%e(B

e$BG0$N$?$a$N3NG’$G$9$,!$e(BMacPorts e$B$GF~$l$?Cf$Ke(B
tclConfig.sh/tkConfig.sh e$B$Oe(B
e$B4^$^$l$F$$$^$9$h$M!)e(B
X e$BHG$+e(B Aqua [email protected]$7$/H=Dj$7$Fe(B make e$B$G$-$k$h$&$Ke(B
(require “tk” e$B;[email protected]$7$/H=JL$G$-$k$h$&$Ke(B)e$B!$e(B
e$BI,MW$J>pJs$re(B tclConfig.sh/tkConfig.sh
[email protected]$k$h$&$K$J$j$^$7$?!%e(B
[email protected]>o$Ke(B Tcl/Tk e$B$,%$%s%9%H!<%k$5$l$F$$$l$P!$e(B
e$B$=$l$i$N%U%!%$%k$,%i%$%V%i%j$H0l=o$KB8:_$7$F$$$k$O$:$G$9!%e(B
e$B$b$7$=$l$i$N%U%!%$%k$NFbMF$,%$%s%9%H!<%k$5$l$F$$$k%i%$%V%i%j$N<BBV$He(B
e$B0[$J$k$b$N$G$"[email protected]>o$Ke(B make [email protected]$,$"$j$^$9!%e(B

yharae$B$G$9!#e(B

2010e$BG/e(B7e$B7ne(B28e$BF|e(B18:52 Hidetoshi NAGAI
[email protected]:

e$BK\7o$N>l9g$O!$e(B

% ./configure --enable-shared=true --with-opt-dir=/opt/local --with-tcl-dir=/opt/local --with-tk-dir=/opt/local --disable-tcltk-framework

e$B$H$$$&;XDj$GBg>fIW$J$N$G$O$J$$$+$H;W$$$^$9!%e(B

e$B:G8e$Ne(B --disable-tcltk-framework e$B$OL5$/$F$bNI$$5$$,$7$^$9!%e(B

e$B>e5-$N;XDj$G$&$^$/9T$-$^$7$?!#$"$j$,$H$&$4$6$$$^$7$?!#e(B
(–disable-tcltk-frameworke$B$OL5$/$FBg>fIW$G$7$?e(B)

e$B$=$l$G$b%@%a$G$"$l$P!$$*<j?t$G$9$,e(B make e$B;~$K=PNO$5$l$k%a%C%;!<%8$NFbe(B
(e$B!Ve(B make 2>&1 | tee make.log e$B!W$H$G$b$7$FJ]B8$7$F$/[email protected]$5$$e(B)e$B!$e(B
tk e$B4XO"$NItJ,$rAw$C$F$/[email protected]$5$$!%e(B
e$B$I$3$rA$7$F$I$l$rMxMQ$9$k$3$H$K$7$?$+$N>pJs$,$"$k$O$:$G$9$N$G!%e(B

e$B0l1~!"%(%i!<$K$J$k%1!<%9e(B(./configure --enable-shared=true
–with-opt-dir=/opt/local)
e$B$K$D$$$FD4::$7$F$_$^$7$?!#e(B

makee$BCf$Ke(B

Use [tclConfig.sh,tkConfig.sh] ==
[’/System/Library/Frameworks/Tcl.framework/tclConfig.sh’,’/System/Library/Frameworks/Tk.framework/tkConfig.sh’]
Use MacOS X Frameworks.

e$B$HI=<($5$l$k$N$G!"e([email protected]$7$/8!=P$G$-$F$$$k$h$&$G$9!#e(B
e$BK\Mh$J$i$P!"e(BTcle$B!&e(BTke$B6&$Ke(BFrameworke$B$N$b$N$,;H$o$l$=$&$K8+$($^$9!#e(B

e$B$7$+$7!"$3$Ne(BtkConfig.she$B$r8+$k$H!"e(BTK_INCLUDE_SPECe$B$,Dj5A$5$l$F$$$^$;$s$G$7$?!#e(B
(TK_XINCLUDESe$B$ODj5A$5$l$F$$$F!"e(B
‘-I/System/Library/Frameworks/Tk.framework/Versions/8.4/Headers’
e$B$K$J$C$F$$$^$9!#e(B)
e$B$3$N$;$$$G!"e([email protected]$1e(B/opt/locale$B$N$b$N$,;H$o$l$F$7$^$&$h$&$G$9!#e(B

/Systeme$B0J2<$Ne(BtclConfig.she$B$He(BtkConfig.she$B$r0J2<$K%"%C%W%m!<%I$7$^$7$?!#e(B

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B

From: Yutaka H. [email protected]
Subject: [ruby-dev:41896] Re: failed to build ext/tk of ruby-1.9.2-rc2
on Mac OS X
Date: Thu, 29 Jul 2010 21:26:50 +0900
Message-ID:
[email protected]

% ./configure --enable-shared=true --with-opt-dir=/opt/local --with-tcl-dir=/opt/local --with-tk-dir=/opt/local --disable-tcltk-framework
e$B$H$$$&;XDj$GBg>fIW$J$N$G$O$J$$$+$H;W$$$^$9!%e(B

e$B:G8e$Ne(B --disable-tcltk-framework e$B$OL5$/$F$bNI$$5$$,$7$^$9!%e(B

e$B>e5-$N;XDj$G$&$^$/9T$-$^$7$?!#$"$j$,$H$&$4$6$$$^$7$?!#e(B
(–disable-tcltk-frameworke$B$OL5$/$FBg>fIW$G$7$?e(B)

e$BNI$+$C$?$G$9!%e(B
Mac OS X e$B$N>l9g$O!$I8=`E:IUHGe(B (framework)e$B!$e(BActiveTcl
e$BHGe(B (framwork)e$B!$e(B
MacPorts e$BHGe(B (/opt/local)e$B!$e(B/usr or /usr/local
e$B$X$NFH<+%$%s%9%H!<%kHGe(B
e$B$H$$$&;M$De(B (e$B2C$($Fe(B X11 e$BHG$+e(B Aqua e$BHG$+e(B) e$B$Oe(B
e$B>/$J$/$H$b9MN8$7$J$1$l$P$$$1$J$$$H$$$&$3$H$J$N$G$7$g$&$M!%e(B
e$B$H$O$$$(!$$I$&$$$&M%@h=g0L$d%G%U%)%k%HA*Br$r$9$Y$-$d$i!)!)!)e(B(^_^;

e$B0l1~!"%(%i!<$K$J$k%1!<%9e(B(./configure --enable-shared=true --with-opt-dir=/opt/local)
e$B$K$D$$$FD4::$7$F$_$^$7$?!#e(B

e$B$"$j$,$H$&$4$6$$$^$9!%=u$+$j$^$9!%e(B

(TK_XINCLUDESe$B$ODj5A$5$l$F$$$F!"e(B
‘-I/System/Library/Frameworks/Tk.framework/Versions/8.4/Headers’ e$B$K$J$C$F$$$^$9!#e(B)
e$B$3$N$;$$$G!"e([email protected]$1e(B/opt/locale$B$N$b$N$,;H$o$l$F$7$^$&$h$&$G$9!#e(B

/Systeme$B0J2<$Ne(BtclConfig.she$B$He(BtkConfig.she$B$r0J2<$K%"%C%W%m!<%I$7$^$7$?!#e(B

e$B$&!A$`!%e(B
Aqua e$BHG$K$b$+$+$o$i$:!$e(BX11 e$BHGMQ$Ne(B TK_XINCLUDES
e$B$r;HMQ$7$F$$$k$N$G$9$M!%e(B
e$B%3%s%Q%$%k$,;_$^$C$F$7$^$&LdBj$O!$0J2<$N%Q%C%A$GBg>[email protected]$H;W$$$^$9!%e(B
e$B8!:w$NM%@h=g0L$r$I$&$9$k$+$K$D$$$F$OH=CG$,$D$+$J$$$N$Ge(B
e$BJ]N1$H$5$;$F$/[email protected]$5$$!%e(B

Index: extconf.rb

— extconf.rb (revision 28788)
+++ extconf.rb (working copy)
@@ -1224,11 +1224,11 @@
puts(“Can’t find X11 libraries. So, can’t make tcltklib.so which
is required by Ruby/Tk.”)
exit
end

  • end
  • if TkConfig_Info[‘TK_XINCLUDES’] &&
  •    !TkConfig_Info['TK_XINCLUDES'].strip.empty?
    
  •  $INCFLAGS << " " << TkConfig_Info['TK_XINCLUDES'].strip
    
  • end
  • if TkConfig_Info[‘TK_XINCLUDES’] &&
  •  !TkConfig_Info['TK_XINCLUDES'].strip.empty?
    
  • $INCFLAGS << " " << TkConfig_Info[‘TK_XINCLUDES’].strip
    end

use_X

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B(Cc: yuguie$B$5$se(B)

From: Yutaka H. [email protected]
Subject: [ruby-dev:41915] Re: failed to build ext/tk of ruby-1.9.2-rc2
on Mac OS X
Date: Mon, 2 Aug 2010 18:58:34 +0900
Message-ID:
[email protected]

[email protected]$$$?%Q%C%A$G!"%3%s%Q%$%k$,DL$C$?$3$H$rJs9p$7$F$*$-$^$9!#e(B

e$BJs9p$"$j$,$H$&$4$6$$$^$9!%e(B

e$B3NG’$G$-$?$3$H$Ge(B ruby_1_9_2 e$B$Ke(B backport
e$B$7$?$$$H$3$m$G$O$"$k$N$G$9$,!$e(B
1.9.2-p0 e$B$N%j%j!<%9$K$O4V$K9g$o$J$$$N$G$7$g$&$M!%e(B

yharae$B$G$9!#e(B

2010e$BG/e(B7e$B7ne(B30e$BF|e(B6:50 Hidetoshi NAGAI
[email protected]:

e$B$&!A$`!%e(B
Aqua e$BHG$K$b$+$+$o$i$:!$e(BX11 e$BHGMQ$Ne(B TK_XINCLUDES e$B$r;HMQ$7$F$$$k$N$G$9$M!%e(B
e$B%3%s%Q%$%k$,;_$^$C$F$7$^$&LdBj$O!$0J2<$N%Q%C%A$GBg>[email protected]$H;W$$$^$9!%e(B
e$B8!:w$NM%@h=g0L$r$I$&$9$k$+$K$D$$$F$OH=CG$,$D$+$J$$$N$Ge(B
e$BJ]N1$H$5$;$F$/[email protected]$5$$!%e(B

e$BN;2r$G$9!#e(B

[email protected]$$$?%Q%C%A$G!"%3%s%Q%$%k$,DL$C$?$3$H$rJs9p$7$F$*$-$^$9!#e(B
e$B<B9T$5$l$k%3%^%s%I$Oe(B
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I.
-I/System/Library/Frameworks/Tcl.framework/Versions/8.4/Headers
-I/System/Library/Frameworks/Tk.framework/Versions/8.4/Headers
(e$B8eN,e(B)
e$B$N$h$&$K$J$j$^$9!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs