'can't read "os.subplatform": can't read "os_subplatform": no such variable'
kpreid at switchb.org
Mon Jun 18 03:04:29 UTC 2018
On Sun, Jun 17, 2018 at 6:53 PM Ryan Schmidt <ryandesign at macports.org>
> On Jun 16, 2018, at 16:02, Kevin Reid wrote:
> > Warning: Failed to open port libiconv from registry: can't read
> "os.subplatform": can't read "os_subplatform": no such variable
> os.subplatform was added to MacPorts in version 1.9.0, back in 2010. It
> should always be set--to "macosx" if you are running MacPorts on macOS, or
> to "puredarwin" on any other Darwin variant. It should not be possible for
> you to encounter this error on macOS...
> The way that MacPorts determines that you are running on Darwin is to
> inspect the $tcl_platform(os) variable, a standard Tcl variable:
> I don't know how Tcl determines the value of that variable, but presumably
> it's similar to how "uname -s" works. Does running "uname -s" on your
> system work correctly?
$ uname -s
$ sudo uname -s
% echo $tcl_platform(os)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the macports-users