Quantcast

Cygwin Installation Problems on Windows Vista

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Cygwin Installation Problems on Windows Vista

Kevin Hilton-3
Being using cygwin for years with XP, however when attempting to
install everything (every package as I usually do) on new Vista
computer, the installation script gets stuck during the post install
step.

During /etc/postinstall/gnuplot.sh the process hangs.  Anyone else
find a problem with this???

Ive even cancelled the installation, manually deselected the gnuplot
package, but same thing happens.

--
Kevin Hilton

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cygwin Installation Problems on Windows Vista

Kevin Hilton-3
Here are the two files I found broken on the installation:
gnuplot.sh
postinstall-ec-fonts-mftraced.sh

And just for kicks
How do I manually change the passwd and group files.  Although under
windows Im listed as an administrator, cygwin states my group as none.
  And Im unable to chmod chgroup these two files.  Never had this
problem with XP.

--
Kevin Hilton

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Cygwin Installation Problems on Windows Vista

Dave Korn
On 08 April 2007 03:01, Kevin Hilton wrote:

> Here are the two files I found broken on the installation:
> gnuplot.sh
> postinstall-ec-fonts-mftraced.sh

  How did you verify whether they are actually broken, or were just taking so
long to run that you thought they were stuck?
 
> And just for kicks
> How do I manually change the passwd and group files.  Although under
> windows Im listed as an administrator, cygwin states my group as none.
>   And Im unable to chmod chgroup these two files.  Never had this
> problem with XP.

http://cygwin.com/cygwin-ug-net/using-utils.html#mkpasswd
http://cygwin.com/cygwin-ug-net/using-utils.html#mkgroup

  Also http://cygwin.com/problems.html


    cheers,
      DaveK
--
Can't think of a witty .sigline today....


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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cygwin Installation Problems on Windows Vista

Kevin Hilton-3
In reply to this post by Kevin Hilton-3
Im not sure they are "broken" in the purest sense, however I waited
over 2 hours for the gnuplot.sh script to finish.  It never did.  The
script seems simple:

#!/bin/sh

if [ -f /usr/bin/texhash ]
then
  /usr/bin/texhash
fi
/usr/bin/install-info --dir-file=/usr/share/info/dir
--info-file=/usr/share/info/gnuplot.info.gz

The first if statement should be false since I never found the texhash
file in the /usr/bin or /bin directory.  Im assuming something is
wrong with the final line.

On 4/7/07, Kevin Hilton <[hidden email]> wrote:

> Here are the two files I found broken on the installation:
> gnuplot.sh
> postinstall-ec-fonts-mftraced.sh
>
> And just for kicks
> How do I manually change the passwd and group files.  Although under
> windows Im listed as an administrator, cygwin states my group as none.
>   And Im unable to chmod chgroup these two files.  Never had this
> problem with XP.
>
> --
> Kevin Hilton
>


--
Kevin Hilton

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cygwin Installation Problems on Windows Vista

rubi
I have the same problem. Did you already found the solution for it?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cygwin Installation Problems on Windows Vista

dprusak
I'm also have the same problem.  I googled, but didn't find a solution to this.  Any ideas?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cygwin Installation Problems on Windows Vista

Larry Hall (Cygwin)
dprusak wrote:
> I'm also have the same problem.  I googled, but didn't find a solution to
> this.  Any ideas?


Have you reviewed the thread and worked through things already covered?
If so, what have you found?


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cygwin Installation Problems on Windows Vista

shannonk
In reply to this post by Kevin Hilton-3
I've had this problem with my installation as well and solve it by using the Windows XP Service Pack 2 compatibility mode (selectable in the Properties window of the Cygwin setup.exe executable).

It installs fine now... hope it works out for you too.

Kevin Hilton-3 wrote
Being using cygwin for years with XP, however when attempting to
install everything (every package as I usually do) on new Vista
computer, the installation script gets stuck during the post install
step.

During /etc/postinstall/gnuplot.sh the process hangs.  Anyone else
find a problem with this???

Ive even cancelled the installation, manually deselected the gnuplot
package, but same thing happens.

--
Kevin Hilton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cygwin Installation Problems on Windows Vista (killing sh.exe helps)

lent
In reply to this post by Kevin Hilton-3
For getting the installation to keep going, killing off an sh.exe process via Task Manager's End Process, moves things along.  This also seems to need to be done for "texf" (I think that was the name) package.

At least we get to the final setup screen this way :-)
Chris Lent



Kevin Hilton-3 wrote
Here are the two files I found broken on the installation:
gnuplot.sh
postinstall-ec-fonts-mftraced.sh

And just for kicks
How do I manually change the passwd and group files.  Although under
windows Im listed as an administrator, cygwin states my group as none.
  And Im unable to chmod chgroup these two files.  Never had this
problem with XP.

--
Kevin Hilton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Cygwin Installation Problems on Windows Vista (killing sh.exe helps)

Dave Korn
On 19 September 2007 16:42, lent wrote:

> For getting the installation to keep going, killing off an sh.exe process
> via
> Task Manager's End Process, moves things along.  This also seems to need to
> be done for "texf" (I think that was the name) package.

  Hell, you can make the whole thing "move along" even better, by simply
killing 'setup.exe' instead of sh.exe.  Sure, it may not be correct, but at
least it's fast, eh?

  Or you could wait for it to finish doing whatever vital job it was doing.
Your choice.

> At least we get to the final setup screen this way :-)

  Works my way too, *and* with the added advantage you don't end up with a
semi-broken installation.


    cheers,
      DaveK
--
Can't think of a witty .sigline today....


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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Cygwin Installation Problems on Windows Vista (killing sh.exe helps)

lent
Dave Korn wrote
On 19 September 2007 16:42, lent wrote:
Hi Dave, thanks for the quick reply.

Sorry, but I wasn't able to find the solution you refer to for the problem of setup.exe hanging in Windows Vista.  Where can I find it?

>> For getting the installation to keep going, killing off an sh.exe process
>> via
>> Task Manager's End Process, moves things along.  This also seems to need to
>> be done for "texf" (I think that was the name) package.

>  Hell, you can make the whole thing "move along" even better, by simply
>killing 'setup.exe' instead of sh.exe.  Sure, it may not be correct, but at
>least it's fast, eh?

>  Or you could wait for it to finish doing whatever vital job it was doing.
>Your choice.

>> At least we get to the final setup screen this way :-)

>  Works my way too, *and* with the added advantage you don't end up with a
>semi-broken installation.

I'm new to the cygwin development community and would love to chase this problem down and resolve it once and for all.  Is there a way to log the shell scripts as they are run from setup.exe?

On the "semi-broken installation":
Actually, the problem was that the "whatever vital job" that /etc/postinstall/gnuplot.sh was doing
never completed.  30 minutes of wait time by multiple Vista users on multiple brands of spanking new
laptops indicates some sort of interaction bug of these shell scripts (or the programs they run) with the "wonders" of Vista.

This "hang at 99% forever" symptom persists even with setting the Properties of
setup.exe to run in "Windows XP(SP2)" compatibility mode.

It's a very disappointing installation experience for novice programmers.

Our XP and Windows 2000 users do not have these problems as setup.exe completes just fine.

Do I want to kill any part of a carefully crafted installation process? Of course not :-)

The problem is if the user kills setup.exe, they wind up with a more broken installation, and lack the Cygwin Desktop icon  and the Cygwin Start Menu entry. Killing sh.exe (hopefully the right one) moves the installation process past the block of /etc/postinstall/gnuplot.sh.  

Our reason for using Cygwin is to teach young engineering students about C programming in a command line environment.  If they can't install it on their brand new laptop, I have a difficult time having them use it :-)

Thanks again for your attention to this annoying bug.
Chris Lent

>    cheers,
>      DaveK
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Cygwin Installation Problems on Windows Vista (gnuplot.sh and install-info)

lent
Hi,

Please point out if I'm wrong or misinformed...

I'm trying to trace down the Vista cygwin setup.exe /etc/postinstall/gnuplot.sh "hang forever at 99%" problem.

The current /etc/postinstall/gnuplot.sh contains the line:

/usr/bin/install-info --dir-file=/usr/share/info/dir --info-file=/usr/share/info/gnuplot.info.gz

From Googling about, the install-info part seems to be the part of the shell scripts that is hanging.

The install-info command is supposed to insert the "info" format information about gnuplot into the indexing file "/usr/share/info/dir".  The "info" format stuff is basically plain text with ^_'s ('\x1F' characters) as section markers and ^? (DEL) as field separators in the index at the end of the "info" file. The file is GZIP'd, to save space.  The gnuplot.info.gz gunzip's fine on my XP machine, so a corrupt distribution file seems unlikely.

So perhaps the problem is the "install-info.exe" program banging into some Vista difference.

The "install-info.exe" program seems to be "texinfo" package, as shown by:

http://cygwin.com/cgi-bin2/package-grep.cgi?grep=install-info.exe

which yields:

http://cygwin.com/cgi-bin2/package-cat.cgi?file=texinfo%2Ftexinfo-4.8a-1&grep=install-info.exe

This seems to imply that the package version is something like "texinfo 4.8a-1".

Installing the source for the "texinfo 4.8a-1" , we find the file: /usr/src/texinfo-4.8a-1/util/install-info.c
See Lines 604-643 at end of this post:

My guess is that the popen is not working right.
Pipe emulation is often cranky. I can imagine Vista breaking something.

Or perhaps as all postinstall steps are not finished at that point in setup.exe, so perhaps gzip is unavailable at that point in the setup.exe's initial environment.

Or perhaps the hang is related to the fact that install-info.exe reads the entire file into memory, xmalloc'ing along the way.

I expect to have a Vista machine available again soon to check this out.  Any suggestions on best investigative tactics?

----------------
Lines 604-643:
  if (!compression_program)
    compression_program = &local_compression_program;

  if (data[0] == '\x1f' && data[1] == '\x8b')
#if STRIP_DOT_EXE
    /* An explicit .exe yields a better diagnostics from popen below
       if they don't have gzip installed.  */
    *compression_program = "gzip.exe";
#else
    *compression_program = "gzip";
#endif
  else if(data[0] == 'B' && data[1] == 'Z' && data[2] == 'h')
#ifndef STRIP_DOT_EXE
    *compression_program = "bzip2.exe";
#else
    *compression_program = "bzip2";
#endif
  else if(data[0] == 'B' && data[1] == 'Z' && data[2] == '0')
#ifndef STRIP_DOT_EXE
    *compression_program = "bzip.exe";
#else
    *compression_program = "bzip";
#endif
  else
    *compression_program = NULL;

  if (*compression_program)
    { /* It's compressed, so fclose the file and then open a pipe.  */
      char *command = concat (*compression_program," -cd <", *opened_filename);
      if (fclose (f) < 0)
        pfatal_with_name (*opened_filename);
      f = popen (command, "r");
      if (f)
        *is_pipe = 1;
      else
        pfatal_with_name (command);
    }
  else
    { /* It's a plain file, seek back over the magic bytes.  */
      if (fseek (f, 0, 0) < 0)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Cygwin Installation Problems on Windows Vista (gnuplot.sh, texhash and ".bashrc: Bad address")

lent
lent wrote
Hi,

>Please point out if I'm wrong or misinformed...

>I'm trying to trace down the Vista cygwin setup.exe /etc/postinstall/gnuplot.sh "hang forever at 99%" problem.
Well, I think I was wrong about pointing fingers at "install-info". The install-info was a guess and hunting a bit more we find this lovely weblog:

Conor's Web Log of Esoterica: Cygwin on Microsoft Vista" In particular: Emphasis added
Wednesday, July 04, 2007

Cygwin on Microsoft Vista

I've run into a few problems using Cygwin on Microsoft Vista on my new laptop:

  • The installation hung during the post-install step "/etc/postinstall/gnuplot.sh". Researching this problem on the google found an article on the cygwin mailing list which worked around the problem by setting the Windows XP compatibility mode on the installation executable. I wasn't comfortable with this solution as it might cause things to not work well later on Vista.

    So I poked around a bit, turned on the "Command Line" output for the "Processes" tab in the Windows Task Manager and found that the script was hanging on "/usr/bin/texhash", which rebuilds a directory listing used by Tex. I was able to run the command successfully on the cygwin command line, but it was still hung in the installation process. So I used Task Manager to kill the texhash process and the installation continued to a later step "postinstall-ec-fonts-mftraced.sh" where it was trying to run "mktexlsr" - which is the same program. I again used Task Manager to kill that process and the installation now went on to a succesfull completion.

    Following the install, I went back and ran the texhash program manually, which did require me to change the mode of the files "/var/cache/fonts/ls-R" and "/usr/share/texmf/ls-R" files which had been left read-only when I killed the process.

    Everything seems to be working fine now.


This description matches, and I believe we also saw the "postinsall-ec-fonts-mftraced.sh" failure as well.

Wish I had remember the "Command Line" option. Darn!
Well, so perhaps the culprit is texhash.
Or maybe the victim, as I saw another weird thing with this particular install.

I had access to the user's machine again and found in /var/log a number of files.

$ find . 
.
./var
./var/log
./var/log/apache2
./var/log/setup.log
./var/log/setup.log.full
./var/log/setup.log.postinstallXa01604
./var/log/setup.log.postinstallXa04116
./var/log/setup.log.postinstallXa04144
./var/log/setup.log.postinstallXa04492
./var/log/setup.log.postinstallXa04892
Looking through these we see quite a few messages of the form:
/usr/bin/bash: /cygdrive/c/Users/srtg9/.bashrc: Bad address

From: /var/log/setup.log.full (starting at line 3239)
2007/09/19 11:15:15 xemacs-mule-sumo
2007/09/19 11:15:15 xemacs-sumo
2007/09/19 11:15:15 xemacs-tags
2007/09/19 11:15:15 xerces-c-devel
2007/09/19 11:15:15 XmHTML
2007/09/19 11:15:15 xpm-nox
2007/09/19 11:15:16 running: C:\cygwin\bin\bash.exe -c /etc/postinstall/gnuplot.
sh
/usr/bin/bash: /cygdrive/c/Users/srtg9/.bashrc: Bad address
2007/09/19 11:26:55 running: C:\cygwin\bin\bash.exe -c /etc/postinstall/gsl.sh
/usr/bin/bash: /cygdrive/c/Users/srtg9/.bashrc: Bad address
install-info: menu item `gsl-ref' already exists, for file `gsl-ref'
install-info: menu item `gsl-ref' already exists, for file `gsl-ref'
install-info: menu item `gsl-ref' already exists, for file `gsl-ref'
install-info: menu item `gsl-ref' already exists, for file `gsl-ref'
install-info: menu item `gsl-ref' already exists, for file `gsl-ref'
install-info: menu item `gsl-ref' already exists, for file `gsl-ref'
2007/09/19 11:27:00 running: C:\cygwin\bin\bash.exe -c /etc/postinstall/gtk+-devel.sh
/usr/bin/bash: /cygdrive/c/Users/srtg9/.bashrc: Bad address

I am guessing Bad address would result from trying to execve() a .bashrc and getting an EFAULT. The EFAULT seems come from some problem loading the .bashrc (or perhaps the ".bashrc" filename in an execve() call?).

Rather odd :-)
Chris "still guessing" Lent
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Cygwin Installation Problems on Windows Vista (killing sh.exe helps)

Quip11
In reply to this post by lent
lent wrote
On the "semi-broken installation":
Actually, the problem was that the "whatever vital job" that /etc/postinstall/gnuplot.sh was doing
never completed.  30 minutes of wait time by multiple Vista users on multiple brands of spanking new
laptops indicates some sort of interaction bug of these shell scripts (or the programs they run) with the "wonders" of Vista.

This "hang at 99% forever" symptom persists even with setting the Properties of
setup.exe to run in "Windows XP(SP2)" compatibility mode.

It's a very disappointing installation experience for novice programmers.

Our XP and Windows 2000 users do not have these problems as setup.exe completes just fine.

Thanks again for your attention to this annoying bug.
Chris Lent

Actually I'm having this same problem right now with good ol' Windows XP.  If it doesn't hang in /etc/postinstall/update-info-dir.sh, it hangs somewhere else.  I've walked away and let it run for hours.

There's something wrong with the scripts.  And this is three months later.

-Q
Loading...