public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Doug Henderson <djndnbvg@gmail.com>
To: cygwin <cygwin@cygwin.com>
Subject: Re: Setup shows errors from gnuplot-base.dash and python38-devel.sh
Date: Wed, 14 Jul 2021 19:20:40 -0600	[thread overview]
Message-ID: <CAJ1FpuMad9ASSqKXCfJk0xuJVhpFKuCFwKDv2CDYf4uLiPUbYQ@mail.gmail.com> (raw)
In-Reply-To: <b6ccba69-1aca-fe68-a05c-6e1333228001@cornell.edu>

On Wed, 14 Jul 2021 at 16:33, Ken Brown via Cygwin <cygwin@cygwin.com> wrote:
>
> On 7/14/2021 5:08 PM, Doug Henderson via Cygwin wrote:
> > On Wed, 14 Jul 2021 at 13:03, Achim Gratz <Stromeko@nexgo.de> wrote:
> >>
> >> Doug Henderson via Cygwin writes:
> >>> The first error message occurred when I installed all pending packages
> >>> this morning. I hoped to heal the problem by reinstalling the
> >>> installed gnuplot packages. Now I get both the messages.
> >>
> >> If you look in /var7Log/setup.log.full you should be able to see what
> >> error messages, if any, were recorded.
> >>
> >> The gnuplot related script should just set up the current alternative
> >> for "gnuplot" to use, but something on your system seems to prevent
> >> that from happening.  You can also run the script in sh (you must tell
> >> the shell to source it) and should get the same error (most likely).
> >
> > When I do that in an elevated shell:
> >
> > $ cd /etc/postinstall/
> >
> > $ cat gnuplot-base.dash
> > /usr/sbin/alternatives --install /usr/bin/gnuplot gnuplot
> > /usr/bin/gnuplot-base.exe 10
> >
> > $ . gnuplot-base.dash
> > failed to read link /usr/bin/gnuplot: No such file or directory
> > failed to link /usr/bin/gnuplot -> /etc/alternatives/gnuplot: No such
> > file or directory
>
> Something seems to be confusing 'alternatives'.  Can you show a listing of
> /etc/alternatives?

$ cd /etc/alternatives/

$ ls -l
total 2.0K
lrwxrwxrwx 1 Admin None  35 Oct  3  2017 automake-doc ->
/usr/share/info/automake1.9.info.gz
lrwxrwxrwx 1 Admin None  19 Jun 16 17:48 lua -> /usr/bin/lua5.3.exe*
lrwxrwxrwx 1 Admin None  31 Jun 16 17:48 lua.1.gz ->
/usr/share/man/man1/lua5.3.1.gz
lrwxrwxrwx 1 Admin None  20 Jun 16 17:48 luac -> /usr/bin/luac5.3.exe*
lrwxrwxrwx 1 Admin None  32 Jun 16 17:48 luac.1.gz ->
/usr/share/man/man1/luac5.3.1.gz
lrwxrwxrwx 1 Admin None  15 Jun  5 08:46 pip3 -> /usr/bin/pip3.8*
lrwxrwxrwx 1 Admin None  22 Jun 16 07:34 python -> /usr/bin/python3.8.exe*
-rw-r--r-- 1 Admin None 163 Apr  4  2013 README

$ ls -ld .
drwxr-xr-x+ 1 Admin None 0 Jun 16 17:48 ./

$ lsacl /etc/alternatives
[u::rwx,g::r-x,o::r-x/u::rwx,g::r-x,o::r-x] /etc/alternatives

$ icacls /etc/alternatives/
drwxr-xr-x+ 1 Admin None 0 Jun 16 17:48 /etc/alternatives/
C:\cygwin64\etc\alternatives xxxx\Admin:(F)
                             xxxx\None:(RX)
                             Everyone:(RX)
                             CREATOR OWNER:(OI)(CI)(IO)(F)
                             CREATOR GROUP:(OI)(CI)(IO)(RX)
                             Everyone:(OI)(CI)(IO)(RX)
BTW:
$ where icacls
icacls is a function
icacls ()
{
    local target;
    ls -hF --color=auto --color=none --indicator-style=none -dl $(
cygpath -a "$1" );
    target="$( cygpath -aw "$1" )";
    $( cygpath -u 'C:\Windows\System32\icacls.exe' ) "$target" /Q |
sed -e '/^Succ/d'
}

Hope this helps with the diagnosis.
Doug



-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

  reply	other threads:[~2021-07-15  1:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-14 16:59 Doug Henderson
2021-07-14 19:02 ` Achim Gratz
2021-07-14 19:59   ` Marco Atzeri
2021-07-14 21:08   ` Doug Henderson
2021-07-14 22:31     ` Ken Brown
2021-07-15  1:20       ` Doug Henderson [this message]
2021-07-15 11:57         ` Ken Brown
2021-07-15 16:04           ` Doug Henderson
2021-07-15 16:18             ` ASSI
2021-07-16  3:59             ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ1FpuMad9ASSqKXCfJk0xuJVhpFKuCFwKDv2CDYf4uLiPUbYQ@mail.gmail.com \
    --to=djndnbvg@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).