public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: shu <shu.eclipse@gmail.com>
To: cygwin@cygwin.com
Subject: basename , grep , dirname commands not found when using iu-config , syslogd-config, cygwin-service-installation-helper.sh
Date: Thu, 22 Sep 2016 08:15:00 -0000	[thread overview]
Message-ID: <CAE5KSAZFhBke90O0BRcGPfdMSetOo=cjUKCKuGjqLHw-99rt6w@mail.gmail.com> (raw)

error message example :
/usr/bin/iu-config: line 10: basename: command not found


When i do some uninstall/install inetutils-server package
i will met    error message:
 inetutils-server.sh exit code 1

i checked  setup.log, found it is cause by a command :
C:\progwvd\ide\cygwin\bin\bash.exe --norc --noprofile "/etc/posti
nstall/inetutils-server.sh"

so i write "set -x" in inetutils-server.sh.
found command error msg "grep: command not found"
              -------this can be fixed by changing to full path like
/usr/bin/basename.


And "The permissions on the directory /var are not correct."
-----------this is can be fixed by chmod permission.it is maybe cause
by me.


After those fixs, i can using C:\progwvd\ide\cygwin\bin\bash.exe
--norc --noprofile "/etc/posti
nstall/inetutils-server.sh" without error.

Do not know how to contribute those source code. so raise it as a bug.
hope someone can fix it.



Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\niesh>C:\progwvd\ide\cygwin\bin\bash.exe --norc --noprofile "/etc/posti
nstall/inetutils-server.sh"
+ '[' '!' -f /etc/ftpusers ']'
+ '[' '!' -f /etc/ftpwelcome ']'
+ '[' '!' -f /etc/inetd.conf ']'
+ '[' '!' -f /etc/shells ']'
+ '[' '!' -f /etc/motd ']'
+ '[' '!' -f /etc/syslog.conf ']'
+ '[' '!' -f /etc/xinetd.d/ftpd ']'
+ '[' '!' -f /etc/xinetd.d/talk ']'
+ '[' '!' -f /etc/xinetd.d/telnet ']'
+ '[' '!' -f /etc/xinetd.d/uucp ']'
+ export IU_CONFIG_AUTO_ANSWER_NO=1
+ IU_CONFIG_AUTO_ANSWER_NO=1
+ /usr/bin/iu-config
/usr/bin/iu-config: line 10: basename: command not found
/usr/bin/iu-config: line 11: dirname: command not found
/usr/share/csih/cygwin-service-installation-helper.sh: line 761: grep: command n
ot found
/usr/share/csih/cygwin-service-installation-helper.sh: line 2472: awk: command n
ot found
/usr/share/csih/cygwin-service-installation-helper.sh: line 2473: awk: command n
ot found
*** Warning: The permissions on the directory /var are not correct.
*** Warning: They must match the regexp d..x.....[xt]
*** ERROR: Problem with /var directory. Exiting.
+ export SYSLOGD_CONFIG_AUTO_ANSWER_NO=1
+ SYSLOGD_CONFIG_AUTO_ANSWER_NO=1
+ /usr/bin/syslogd-config
/usr/bin/syslogd-config: line 10: basename: command not found
/usr/bin/syslogd-config: line 11: dirname: command not found
/usr/share/csih/cygwin-service-installation-helper.sh: line 761: grep: command n
ot found
/usr/share/csih/cygwin-service-installation-helper.sh: line 2472: awk: command n
ot found
/usr/share/csih/cygwin-service-installation-helper.sh: line 2473: awk: command n
ot found
*** Warning: The permissions on the directory /var are not correct.
*** Warning: They must match the regexp d..x.....[xt]
*** ERROR: Problem with /var directory. Exiting.






C:\Users\niesh>C:\progwvd\ide\cygwin\bin\bash.exe --norc --noprofile "/etc/posti
nstall/inetutils-server.sh"
+ '[' '!' -f /etc/ftpusers ']'
+ '[' '!' -f /etc/ftpwelcome ']'
+ '[' '!' -f /etc/inetd.conf ']'
+ '[' '!' -f /etc/shells ']'
+ '[' '!' -f /etc/motd ']'
+ '[' '!' -f /etc/syslog.conf ']'
+ '[' '!' -f /etc/xinetd.d/ftpd ']'
+ '[' '!' -f /etc/xinetd.d/talk ']'
+ '[' '!' -f /etc/xinetd.d/telnet ']'
+ '[' '!' -f /etc/xinetd.d/uucp ']'
+ export IU_CONFIG_AUTO_ANSWER_NO=1
+ IU_CONFIG_AUTO_ANSWER_NO=1
+ /usr/bin/iu-config
*** Warning: The permissions on the directory /etc/inetd.d are not correct.
*** Warning: They must match the regexp drwxr.xr.x
*** Info: Note that the inetd service and the xinetd service must not
*** Info: both be active at the same time.  The easiest way to ensure
*** Info: this is to only install one or the other as a service.
*** Query: Do you want to install the inetd super-server as a service? (yes/no)
no

Configuration finished. Have fun!
+ export SYSLOGD_CONFIG_AUTO_ANSWER_NO=1
+ SYSLOGD_CONFIG_AUTO_ANSWER_NO=1
+ /usr/bin/syslogd-config
/usr/bin/syslogd-config: line 10: basename: command not found
/usr/bin/syslogd-config: line 11: dirname: command not found

*** Warning: The following function requires administrator privileges!
*** Query: Do you want to install syslogd as service? (yes/no) no

Configuration finished. Have fun!

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

                 reply	other threads:[~2016-09-22  1:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAE5KSAZFhBke90O0BRcGPfdMSetOo=cjUKCKuGjqLHw-99rt6w@mail.gmail.com' \
    --to=shu.eclipse@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).