This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Setup cannot execute install scripts


Hi

I have a problem with cygwin setup.exe. Every time I run setup and the 
setup upgrades something, the setup is trying to run scripts at the end. 
These scripts fail (it happens after almost every upgrade of some 
package). The file /var/log/setup.log.full contains these error messages:

2012/05/03 03:48:53 running: cmd.exe /c 
"C:\Cygwin\etc\postinstall\autorebase.bat"
dash: 0: Can't open /bin/rebaseall
2012/05/03 03:48:53 abnormal exit: exit code=127
2012/05/03 03:48:53 running: C:\Cygwin\bin\bash.exe --norc --noprofile 
"/etc/postinstall/tcsh.sh"
bash.exe: warning: could not find /tmp, please create!
/usr/bin/bash: /etc/postinstall/tcsh.sh: No such file or directory
2012/05/03 03:48:53 abnormal exit: exit code=127
2012/05/03 03:48:53 running: C:\Cygwin\bin\bash.exe --norc --noprofile 
"/etc/postinstall/update-info-dir.sh"
bash.exe: warning: could not find /tmp, please create!
/usr/bin/bash: /etc/postinstall/update-info-dir.sh: No such file or 
directory
2012/05/03 03:48:54 abnormal exit: exit code=127

When I run setup again, the failures happen again.

I tried to add "bin\ls /" , "bin\ls /bin" and "bin\cygpath -w /" to 
autorebase.bat (and execute setup.exe again, so that it runs modified 
autorebase.bat) and the result is this:

bin/ls: cannot access /: No such file or directory
bin/ls: cannot access /bin: No such file or directory
C:\Cygwin
--- so cygpath is showing the correct path (cygwin is installed in 
C:\Cygwin), but ls and other utilities cannot access the root directory. 
When I run "bin\ls /cygdrive/c", it works --- prints the content of drive 
C.

When I start a window with just "cmd.exe" and execute autorebase.bat 
manually (cmd.exe /c "C:\Cygwin\etc\postinstall\autorebase.bat"), it 
works. When the same script is executed from setup.exe, it doesn't work 
--- "ls" cannot find "/" and dash cannot find "/bin/rebaseall".

When I run some cygwin session (just a bash shell) and run setup.exe 
simultaneously, script failures don't happen (but the setup can't upgrade 
cygwin1.dll and can't rebase it because it is open).

It looks like there is some bug in the setup (I have the latest setup 
2.774), when it is run as just the only cygwin session, it misconfigures 
filesystem, so that any programs spawned from setup.exe cannot access 
cygwin root.

Do you have some idea what is causing it, or what should I try to debug 
it?

Mikulas

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]