phase1geo / tke

Advanced, modern code editor written in Tcl/Tk
GNU General Public License v2.0
19 stars 1 forks source link

macOS version does not work on OSX 13 #6

Open ShizuhaAki opened 1 year ago

ShizuhaAki commented 1 year ago

As OSX 13 (Ventura) removed builtin Tcl/Tk in /Library/Frameworks/Tk.framework, it is impossible to launch the provided binary file as it still tries to load Tk in that path.

Most people have switched to Homebrew version of Tcl/Tk living in /usr/local/Cellar on Intel machines, however I'm new to macOS and don't know how to tell tke to load Tcl/Tk there.

phase1geo commented 1 year ago

I don't have a Mac that is capable of running Ventura at the moment. I'm wondering if it would work to follow the Linux installation instructions in this case.

ShizuhaAki commented 1 year ago

It works ... to an extent.

I grabbed the dependencies via MacPorts and successfully ran the install.tcl script, which, apparently, is stuck in an infinite loop:

╭─lilywhite@lilywhite-mac /Users/lilywhite/tke  <master*>
╰─$ ./install.tcl
Tcl version 8.6.x or higher is required...  Found (8.6.13)
Installation requires wish8.6...            Found (/opt/local/bin/wish8.6)
Installation requires the Tk package...     Found
Installation requires the Tclx package...   Found
Installation requires the Tcllib package... Found
Installation requires the Tklib package...  Found
Checking for tkdnd package...               Not Found (Drag and drop support will be disabled)
Install tkdnd package
Checking for Expect package...              Not Found (SFTP support will be disabled)
Install expect package
Checking for Img package...                 Not Found (Only .gif, .bmp and .png images will be previewable in the file information panel)
Checking for tcl-vfs package...             Not Found! (Zip/Unzip functions will use zip/unzip on the system)
Install tcl-vfs package

Enter root installation directory (or Control-C to quit): ~/tkeditor

Library will be installed at: /Users/lilywhite/tkeditor/lib/tke
Binary will be installed at:  /Users/lilywhite/tkeditor/bin/tke

Is this okay (Y/n)? y

Copying data to /Users/lilywhite/tkeditor/lib/tke/data...  done.
Copying doc to /Users/lilywhite/tkeditor/lib/tke/doc...  done.
Copying lib to /Users/lilywhite/tkeditor/lib/tke/lib...  error!
  error copying "lib" to "/Users/lilywhite/tkeditor/lib/tke/lib": "/Users/lilywhite/tkeditor/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tablelist6.3/scripts/tablelistEdit.tcl": file name too long
Creating /Users/lilywhite/tkeditor/bin/tke...  done.

/Users/lilywhite/tkeditor/bin is not in your PATH environment variable list.
Make sure that you put this directory into your path in your startup script.

I didn't use the release tarball, I was building from master, is that a cause of the problem?

ShizuhaAki commented 1 year ago

Installing from the tarball is successful.

phase1geo commented 1 year ago

I've never had any issues installing from either the master branch or a tarball, so I'm not entirely sure what the issue is/was.

ShizuhaAki commented 1 year ago

Also, the version installed using the Linux method is very slow and blurry (I have a retina screen), is this the expected behavior (given mac is not natively using X)?