Hi all, I'm attempting to install blt in MacPorts 1.6.0 (on an Intel MacPro) but it is not working. I have filed a bug on it: <http://trac.macosforge.org/projects/macports/ticket/14488> Apparently Tcl/Tk version 8.5 conflicts with blt. Until this (hopefully) get fixed, does anyone know some kind of workaround so I can get this running - like maybe somehow install the 8.4 version of Tcl/Tk? Cheers! Frank
On Mar 3, 2008, at 10:28, Frank Schima wrote:
Apparently Tcl/Tk version 8.5 conflicts with blt. Until this (hopefully) get fixed, does anyone know some kind of workaround so I can get this running - like maybe somehow install the 8.4 version of Tcl/Tk?
This question comes up often enough that I've now written a How-To: http://trac.macosforge.org/projects/macports/wiki/howto/ InstallingOlderPort
Hi Ryan, On Mar 3, 2008, at 12:36 PM, Ryan Schmidt wrote:
On Mar 3, 2008, at 10:28, Frank Schima wrote:
Apparently Tcl/Tk version 8.5 conflicts with blt. Until this (hopefully) get fixed, does anyone know some kind of workaround so I can get this running - like maybe somehow install the 8.4 version of Tcl/Tk?
This question comes up often enough that I've now written a How-To:
http://trac.macosforge.org/projects/macports/wiki/howto/InstallingOlderPort
Thanks for the very useful write up! I managed to get it installed and activated. Perhaps you could add something about deactivating the current version first so that is doesn't fail when trying to activate the older version. But I'm just a MacPorts newbie. :) I neglected to mention that I'm using Python 2.5 also. So I changed my py25-tkinter back to the 8.4 version using the following Portfile @30184: <@30184> That worked fine (and I had to download the setup.py and add it to a 'files' folder). I then noticed that Tk needs to be downgraded to 8.4 also. So I got Portfile @30811 of that: <@30811> But when I tried to 'port install' it, I get the following compile error: frank$ sudo port install ---> Building tk with target all Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/_Users_frank_Downloads_tk84/work/tk8.4.16/ unix" && make all " returned error 2 Command output: /usr/bin/gcc-4.0 -c -Os -O2 -pipe -I/opt/local/ include -I/opt/local/var/macports/build/_Users_frank_Downloads_tk84/ work/tcl8.4.16/generic -Wall -Wno-implicit-int -fno-strict-aliasing - fno-common -I/opt/local/var/macports/build/_Users_frank_Downloads_tk84/ work/tk8.4.16/unix -I/opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix/../generic -I/opt/local/ var/macports/build/_Users_frank_Downloads_tk84/work/tk8.4.16/unix/../ bitmaps -I/opt/local/var/macports/build/_Users_frank_Downloads_tk84/ work/tk8.4.16/unix/../../tcl8.4.16//generic -I/usr/X11/include - DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_COREFOUNDATION=1 - DMAC_OSX_TCL=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 - DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DSTDC_HEADERS=1 - DHAVE_PW_GECOS=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS /opt/local/ var/macports/build/_Users_frank_Downloads_tk84/work/tk8.4.16/unix/../ generic/tkMain.c In file included from /opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix/../generic/tkMain.c:24: /opt/local/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h from Tcl 8.5 make: *** [tkMain.o] Error 1 Error: Status 1 encountered during processing. Any suggestions as to what I'm doing wrong? Thanks! Frank
On Mar 3, 2008, at 14:38, Frank Schima wrote:
On Mar 3, 2008, at 12:36 PM, Ryan Schmidt wrote:
On Mar 3, 2008, at 10:28, Frank Schima wrote:
Apparently Tcl/Tk version 8.5 conflicts with blt. Until this (hopefully) get fixed, does anyone know some kind of workaround so I can get this running - like maybe somehow install the 8.4 version of Tcl/Tk?
This question comes up often enough that I've now written a How-To:
http://trac.macosforge.org/projects/macports/wiki/howto/ InstallingOlderPort
Thanks for the very useful write up! I managed to get it installed and activated. Perhaps you could add something about deactivating the current version first so that is doesn't fail when trying to activate the older version. But I'm just a MacPorts newbie. :)
That's fairly general advice about MacPorts, not specific to installing an older version, so I don't know that it belongs in that particular how-to.
I neglected to mention that I'm using Python 2.5 also. So I changed my py25-tkinter back to the 8.4 version using the following Portfile @30184:
<@30184>
That worked fine (and I had to download the setup.py and add it to a 'files' folder). I then noticed that Tk needs to be downgraded to 8.4 also. So I got Portfile @30811 of that:
<@30811>
But when I tried to 'port install' it, I get the following compile error:
frank$ sudo port install ---> Building tk with target all Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/_Users_frank_Downloads_tk84/work/tk8.4.16/ unix" && make all " returned error 2 Command output: /usr/bin/gcc-4.0 -c -Os -O2 -pipe -I/opt/local/ include -I/opt/local/var/macports/build/_Users_frank_Downloads_tk84/ work/tcl8.4.16/generic -Wall -Wno-implicit-int -fno-strict- aliasing -fno-common -I/opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix -I/opt/local/var/ macports/build/_Users_frank_Downloads_tk84/work/tk8.4.16/unix/../ generic -I/opt/local/var/macports/build/_Users_frank_Downloads_tk84/ work/tk8.4.16/unix/../bitmaps -I/opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix/../../tcl8.4.16// generic -I/usr/X11/include -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 - DHAVE_COREFOUNDATION=1 -DMAC_OSX_TCL=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_SYS_TIME_H=1 - DTIME_WITH_SYS_TIME=1 -DSTDC_HEADERS=1 -DHAVE_PW_GECOS=1 - DTCL_NO_DEPRECATED -DUSE_TCL_STUBS /opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix/../generic/tkMain.c In file included from /opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix/../generic/tkMain.c:24: /opt/local/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h from Tcl 8.5 make: *** [tkMain.o] Error 1
Error: Status 1 encountered during processing.
Any suggestions as to what I'm doing wrong?
That's like this bug: http://trac.macosforge.org/projects/macports/ticket/13678 You must deactivate or uninstall tk 8.5 before you can build tk 8.4. I think this is a peculiarity of tk. This problem was supposedly fixed in the latest version of the portfile, but still exists of course in the old version of the portfile you're using.
On Mar 3, 2008, at 2:11 PM, Ryan Schmidt wrote:
I neglected to mention that I'm using Python 2.5 also. So I changed my py25-tkinter back to the 8.4 version using the following Portfile @30184:
<@30184>
That worked fine (and I had to download the setup.py and add it to a 'files' folder). I then noticed that Tk needs to be downgraded to 8.4 also. So I got Portfile @30811 of that:
<@30811>
But when I tried to 'port install' it, I get the following compile error:
frank$ sudo port install ---> Building tk with target all Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/_Users_frank_Downloads_tk84/work/tk8.4.16/ unix" && make all " returned error 2 Command output: /usr/bin/gcc-4.0 -c -Os -O2 -pipe -I/opt/local/ include -I/opt/local/var/macports/build/_Users_frank_Downloads_tk84/ work/tcl8.4.16/generic -Wall -Wno-implicit-int -fno-strict- aliasing -fno-common -I/opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix -I/opt/local/var/ macports/build/_Users_frank_Downloads_tk84/work/tk8.4.16/unix/../ generic -I/opt/local/var/macports/build/_Users_frank_Downloads_tk84/ work/tk8.4.16/unix/../bitmaps -I/opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix/../../tcl8.4.16// generic -I/usr/X11/include -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 - DHAVE_COREFOUNDATION=1 -DMAC_OSX_TCL=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_SYS_TIME_H=1 - DTIME_WITH_SYS_TIME=1 -DSTDC_HEADERS=1 -DHAVE_PW_GECOS=1 - DTCL_NO_DEPRECATED -DUSE_TCL_STUBS /opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix/../generic/tkMain.c In file included from /opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix/../generic/tkMain.c: 24: /opt/local/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h from Tcl 8.5 make: *** [tkMain.o] Error 1
Error: Status 1 encountered during processing.
Any suggestions as to what I'm doing wrong?
That's like this bug:
http://trac.macosforge.org/projects/macports/ticket/13678
You must deactivate or uninstall tk 8.5 before you can build tk 8.4. I think this is a peculiarity of tk.
This problem was supposedly fixed in the latest version of the portfile, but still exists of course in the old version of the portfile you're using.
OK, that works. Thanks! But now when I try to run my python program, I get the following runtime error: File "./my_python_program.py", line 158, in <module> parent=Tkinter.Tk() File "/opt/local/lib/python2.5/lib-tk/Tkinter.py", line 1638, in __init__ self._loadtk() File "/opt/local/lib/python2.5/lib-tk/Tkinter.py", line 1658, in _loadtk % (_tkinter.TK_VERSION, tk_version) RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.4) Any more suggestions for me? Here's a reduced look at my "port installed" output. py25-tkinter @2.5.1_0 (active) python25 @2.5.1_4+darwin_9 python25 @2.5.2_0+darwin_9 (active) tcl @8.4.16_0+darwin_9 (active) tcl @8.5.1_0 tk @8.4.16_0 (active) tk @8.5.1_0 Cheers! Frank
On Mar 3, 2008, at 16:16, Frank Schima wrote:
frank$ sudo port install ---> Building tk with target all Error: Target org.macports.build returned: shell command " cd "/ opt/local/var/macports/build/_Users_frank_Downloads_tk84/work/ tk8.4.16/unix" && make all " returned error 2 Command output: /usr/bin/gcc-4.0 -c -Os -O2 -pipe -I/opt/local/ include -I/opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tcl8.4.16/generic -Wall -Wno- implicit-int -fno-strict-aliasing -fno-common -I/opt/local/var/ macports/build/_Users_frank_Downloads_tk84/work/tk8.4.16/unix -I/ opt/local/var/macports/build/_Users_frank_Downloads_tk84/work/ tk8.4.16/unix/../generic -I/opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix/../bitmaps -I/opt/ local/var/macports/build/_Users_frank_Downloads_tk84/work/ tk8.4.16/unix/../../tcl8.4.16//generic -I/usr/X11/include - DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_COREFOUNDATION=1 - DMAC_OSX_TCL=1 -DTCL_WIDE_INT_TYPE=long\ long - DHAVE_STRUCT_STAT64=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 - DSTDC_HEADERS=1 -DHAVE_PW_GECOS=1 -DTCL_NO_DEPRECATED - DUSE_TCL_STUBS /opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix/../generic/tkMain.c In file included from /opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix/../generic/ tkMain.c:24: /opt/local/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h from Tcl 8.5 make: *** [tkMain.o] Error 1
Error: Status 1 encountered during processing.
Any suggestions as to what I'm doing wrong?
That's like this bug:
http://trac.macosforge.org/projects/macports/ticket/13678
You must deactivate or uninstall tk 8.5 before you can build tk 8.4. I think this is a peculiarity of tk.
This problem was supposedly fixed in the latest version of the portfile, but still exists of course in the old version of the portfile you're using.
OK, that works. Thanks! But now when I try to run my python program, I get the following runtime error:
File "./my_python_program.py", line 158, in <module> parent=Tkinter.Tk() File "/opt/local/lib/python2.5/lib-tk/Tkinter.py", line 1638, in __init__ self._loadtk() File "/opt/local/lib/python2.5/lib-tk/Tkinter.py", line 1658, in _loadtk % (_tkinter.TK_VERSION, tk_version) RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.4)
Any more suggestions for me?
Here's a reduced look at my "port installed" output.
py25-tkinter @2.5.1_0 (active) python25 @2.5.1_4+darwin_9 python25 @2.5.2_0+darwin_9 (active) tcl @8.4.16_0+darwin_9 (active) tcl @8.5.1_0 tk @8.4.16_0 (active) tk @8.5.1_0
Did you install py25-tkinter while tk 8.4.16 was active or while 8.5.1 was active? Maybe you need the latter. Try rebuilding it. (sudo port -ncuf upgrade py25-tkinter)
Frank Schima wrote:
OK, that works. Thanks! But now when I try to run my python program, I get the following runtime error:
File "./my_python_program.py", line 158, in <module> parent=Tkinter.Tk() File "/opt/local/lib/python2.5/lib-tk/Tkinter.py", line 1638, in __init__ self._loadtk() File "/opt/local/lib/python2.5/lib-tk/Tkinter.py", line 1658, in _loadtk % (_tkinter.TK_VERSION, tk_version) RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.4)
Any more suggestions for me?
Here's a reduced look at my "port installed" output.
py25-tkinter @2.5.1_0 (active) python25 @2.5.1_4+darwin_9 python25 @2.5.2_0+darwin_9 (active) tcl @8.4.16_0+darwin_9 (active) tcl @8.5.1_0 tk @8.4.16_0 (active) tk @8.5.1_0
Python has to be rebuilt to link against Tk 8.5. Try that. -- Kevin Walzer Code by Kevin http://www.codebykevin.com
On Mar 3, 2008, at 3:38 PM, Ryan Schmidt wrote:
On Mar 3, 2008, at 16:16, Frank Schima wrote:
frank$ sudo port install ---> Building tk with target all Error: Target org.macports.build returned: shell command " cd "/ opt/local/var/macports/build/_Users_frank_Downloads_tk84/work/ tk8.4.16/unix" && make all " returned error 2 Command output: /usr/bin/gcc-4.0 -c -Os -O2 -pipe -I/opt/local/ include -I/opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tcl8.4.16/generic -Wall -Wno- implicit-int -fno-strict-aliasing -fno-common -I/opt/local/var/ macports/build/_Users_frank_Downloads_tk84/work/tk8.4.16/unix -I/ opt/local/var/macports/build/_Users_frank_Downloads_tk84/work/ tk8.4.16/unix/../generic -I/opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix/../bitmaps -I/opt/ local/var/macports/build/_Users_frank_Downloads_tk84/work/ tk8.4.16/unix/../../tcl8.4.16//generic -I/usr/X11/include - DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_COREFOUNDATION=1 - DMAC_OSX_TCL=1 -DTCL_WIDE_INT_TYPE=long\ long - DHAVE_STRUCT_STAT64=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 - DSTDC_HEADERS=1 -DHAVE_PW_GECOS=1 -DTCL_NO_DEPRECATED - DUSE_TCL_STUBS /opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix/../generic/tkMain.c In file included from /opt/local/var/macports/build/ _Users_frank_Downloads_tk84/work/tk8.4.16/unix/../generic/ tkMain.c:24: /opt/local/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h from Tcl 8.5 make: *** [tkMain.o] Error 1
Error: Status 1 encountered during processing.
Any suggestions as to what I'm doing wrong?
That's like this bug:
http://trac.macosforge.org/projects/macports/ticket/13678
You must deactivate or uninstall tk 8.5 before you can build tk 8.4. I think this is a peculiarity of tk.
This problem was supposedly fixed in the latest version of the portfile, but still exists of course in the old version of the portfile you're using.
OK, that works. Thanks! But now when I try to run my python program, I get the following runtime error:
File "./my_python_program.py", line 158, in <module> parent=Tkinter.Tk() File "/opt/local/lib/python2.5/lib-tk/Tkinter.py", line 1638, in __init__ self._loadtk() File "/opt/local/lib/python2.5/lib-tk/Tkinter.py", line 1658, in _loadtk % (_tkinter.TK_VERSION, tk_version) RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.4)
Any more suggestions for me?
Here's a reduced look at my "port installed" output.
py25-tkinter @2.5.1_0 (active) python25 @2.5.1_4+darwin_9 python25 @2.5.2_0+darwin_9 (active) tcl @8.4.16_0+darwin_9 (active) tcl @8.5.1_0 tk @8.4.16_0 (active) tk @8.5.1_0
Did you install py25-tkinter while tk 8.4.16 was active or while 8.5.1 was active? Maybe you need the latter. Try rebuilding it. (sudo port -ncuf upgrade py25-tkinter)
On Mar 3, 2008, at 3:40 PM, Kevin Walzer wrote:
Frank Schima wrote:
OK, that works. Thanks! But now when I try to run my python program, I get the following runtime error: File "./my_python_program.py", line 158, in <module> parent=Tkinter.Tk() File "/opt/local/lib/python2.5/lib-tk/Tkinter.py", line 1638, in __init__ self._loadtk() File "/opt/local/lib/python2.5/lib-tk/Tkinter.py", line 1658, in _loadtk % (_tkinter.TK_VERSION, tk_version) RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.4) Any more suggestions for me? Here's a reduced look at my "port installed" output. py25-tkinter @2.5.1_0 (active) python25 @2.5.1_4+darwin_9 python25 @2.5.2_0+darwin_9 (active) tcl @8.4.16_0+darwin_9 (active) tcl @8.5.1_0 tk @8.4.16_0 (active) tk @8.5.1_0
Python has to be rebuilt to link against Tk 8.5. Try that.
I think you meant 8.4. :) Guys, thanks very much. After uninstalling all my python add-ons I was able to re-install python25 and py25-tkinter and it appears to work. Cheers! Frank
participants (3)
-
Frank Schima
-
Kevin Walzer
-
Ryan Schmidt