'can't read "os.subplatform": can't read "os_subplatform": no such variable'
Kevin Reid
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>
wrote:
> 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:
> http://wiki.tcl.tk/1649
>
> 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?
>
Looks normal:
$ uname -s
Darwin
$ sudo uname -s
Password:
Darwin
$ tclsh
% echo $tcl_platform(os)
Darwin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20180617/9304c512/attachment.html>
More information about the macports-users
mailing list