Re: 1.5.21: startxwin.sh works, startxwin.bat does not work

2006-10-03 Thread Scott Fordin

René Berber wrote:

Scott Fordin wrote: [snip]

Strange thing though is that it does work on another machine.


Very strange, the differences you sent don't show an invalid script
at all.  One of the 2 files has \r\n endings (that's the reason for
the first 2 differences) but as long as they are being executed by
command.com it doesn't matter.


Thanks again, René. I found the solution to the startxserver.bat
problem! Using one of your clues, I discovered that the Singular
post-install script did not update my PATH correctly. I fixed the
PATH to c:\cygwin\bin and c:\cygwin\X11R6\bin, and lo, the X
startup script worked.


You can create a shortcut to startx.sh and then edit its "Properties"
so the target ends up like: C:\cygwin\bin\run.exe -p /usr/X11R6/bin/
bash --login -c startx 
[Ref:http://permalink.gmane.org/gmane.os.cygwin.xfree/16545]


Excellent. This is just what I was looking for.


I use a shortcut to start X Windows only (no xterm):

C:\cygwin\bin\run.exe -p /usr/X11R6/bin XWin -multiwindow -clipboard
-silent-dup-error -dpi 100


Very nice. Thanks again René. I really appreciate your thoughtful
responses and the way you stuck with the problem.

Best regards,

Scott


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



Re: 1.5.21: startxwin.sh works, startxwin.bat does not work

2006-10-01 Thread René Berber
Scott Fordin wrote:
[snip]
> Strange thing though is that it does work on another machine.

Very strange, the differences you sent don't show an invalid script at all.  
One of the 2 files has \r\n endings (that's the reason for the first 2 
differences) but as long as they are being executed by command.com it doesn't 
matter.

[snip]
> Well, the way things install, a "Start X Server" shortcut is
> installed on the desktop. It's more handy than opening a bash
> shell and then running startx from there. I've tried configuring
> a similar shortcut for startx, but I can't get it to work.

You can create a shortcut to startx.sh and then edit its "Properties" so the 
target ends up like: C:\cygwin\bin\run.exe -p /usr/X11R6/bin/ bash --login -c 
startx 
[Ref:http://permalink.gmane.org/gmane.os.cygwin.xfree/16545]

I use a shortcut to start X Windows only (no xterm):

C:\cygwin\bin\run.exe -p /usr/X11R6/bin XWin -multiwindow -clipboard 
-silent-dup-error -dpi 100

> Since
> startxwin.bat fails with the same error as startxserver.bat, I
> can't just use that on the desktop instead. I don't have a
> standalone version of Perl installed, so I can't run the .sh
> version of the script. I don't know how else to do it. I looked,
> but I didn't find an answer, but do you know of a way I can pass
> a shell command to bash.exe from the Windows command prompt?

If your path includes the location of Cygwin's binaries you can use run as 
above.

[snip]
> There are differences, but none seems significant vis a vis
> this particular problem. I've attached the diff output. I
> can't even figure out where the lapack libraries are being
> called...

Nowhere... so what is being run?
-- 
René Berber


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



Re: 1.5.21: startxwin.sh works, startxwin.bat does not work

2006-10-01 Thread Scott Fordin

René Berber wrote:

Scott Fordin wrote:


Thanks again for replying, René. Sorry it took me a couple of
days to get back to you. My responses are embedded below.


OK, it seems that the startxserver is not even a valid script (I
haven't tested, I don't have Singular, I'm saying that from the
result you had).


Strange thing though is that it does work on another machine.


Question: Why were you trying to start XWin with that bat file?  I
don't know what it is for, but seems redundant.


Well, the way things install, a "Start X Server" shortcut is
installed on the desktop. It's more handy than opening a bash
shell and then running startx from there. I've tried configuring
a similar shortcut for startx, but I can't get it to work. Since
startxwin.bat fails with the same error as startxserver.bat, I
can't just use that on the desktop instead. I don't have a
standalone version of Perl installed, so I can't run the .sh
version of the script. I don't know how else to do it. I looked,
but I didn't find an answer, but do you know of a way I can pass
a shell command to bash.exe from the Windows command prompt?


I then tried the /usr/X11R6/bin/startxwin.bat script and got
the same error.

[snip]

Now to the real problem: are the files different?


There are differences, but none seems significant vis a vis
this particular problem. I've attached the diff output. I
can't even figure out where the lapack libraries are being
called...


They should be.  There is no reference to the Singular directory in
the normal startxwin.bat file... check for symbolic or hard links,
perhaps Singular's (post)installation is doing something wrong.

I see no other explanation for getting the same error message.


Thanks again,

Scott
5c5
< REM
---
> REM 
10c10
< REM example, if you installed Cygwin in \foo\bar\baz\cygwin, you will need
---
> REM example, if you installed Cygwin in \foo\bar\baz\cygwin, you will need 
20a21
> SET RUN=%CYGWIN_ROOT%\bin\run -p /usr/X11R6/bin
145c146,166
< run XWin -multiwindow -clipboard -silent-dup-error
\ No newline at end of file
---
> %RUN% XWin -multiwindow -clipboard -silent-dup-error
> 
> 
> REM Startup an xterm, using bash as the shell.
> 
> %RUN% xterm -e /usr/bin/bash -l
> 
> 
> REM
> REM Startup the twm window manager.
> REM WARNING: Do not use an external window manager in conjunction with
> REM the ``-multiwindow'' command-line parameter for XWin.  Doing so
> REM would start two window managers, which is never supposed to happen.
> REM
> 
> REM %RUN% twm
> 
> 
> REM Set a background color.  Only needed when not using -multwindow for XWin.
> 
> REM %RUN% xsetroot -solid aquamarine4

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

Re: 1.5.21: startxwin.sh works, startxwin.bat does not work

2006-09-29 Thread René Berber
Scott Fordin wrote:

> Thanks for replying, René. My responses are embedded inline.
> 
> René Berber wrote:
>>> When I tried running the C:\cygwin\lib\Singular\startxserver.bat
>> -^
>> That is not from the Cygwin distribution.
> 
> Dunno. I ran the latest official Cygwin setup.exe, and chose to
> install *all* the packages at one of the mirrors listed in the
> install window:
> 
> ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin
> 
> The Singular stuff came with that.

You are right.

I just checked http://cygwin.com/packages and the startxserver.bat comes with 
singular-icons (strange, but then I don't use Singular).

[snip]
>> So?  That means the above .bat file is trying to execute something
>> else that also doesn't come with Cygwin... and is not even an
>> executable.
> 
> Again. Dunno. It's what came with the distro.

OK, it seems that the startxserver is not even a valid script (I haven't 
tested, I don't have Singular, I'm saying that from the result you had).

Question: Why were you trying to start XWin with that bat file?  I don't know 
what it is for, but seems redundant.

>>> I then tried the /usr/X11R6/bin/startxwin.bat script and got the same
>>> error.
[snip]

Now to the real problem: are the files different?

They should be.  There is no reference to the Singular directory in the normal 
startxwin.bat file... check for symbolic or hard links, perhaps Singular's 
(post)installation is doing something wrong.

I see no other explanation for getting the same error message.
-- 
René Berber


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



Re: 1.5.21: startxwin.sh works, startxwin.bat does not work

2006-09-29 Thread Scott Fordin

Thanks for replying, René. My responses are embedded inline.

René Berber wrote:

When I tried running the C:\cygwin\lib\Singular\startxserver.bat
-^ 
That is not from the Cygwin distribution.


Dunno. I ran the latest official Cygwin setup.exe, and chose to
install *all* the packages at one of the mirrors listed in the
install window:

ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin

The Singular stuff came with that.


You seem to have installed something else on top of Cygwin.


Nope. Just the stuff that came through the Cygwin install.

- Snip - 
'C:\cygwin\lib\lapack' is not recognized as an internal or external
 command, operable program or batch file. 
- Snip -


So?  That means the above .bat file is trying to execute something
else that also doesn't come with Cygwin... and is not even an
executable.


Again. Dunno. It's what came with the distro.

I then tried the /usr/X11R6/bin/startxwin.bat script and got the 
same error.


If you received the same error message then something, not Cygwin,
messed up your installation.  Same error probably means you executed
the same file, are they really named startxserver.bat and
startxwin.bat, or is just a typo?


Nope. Two different files. startxserver.bat came with the
Singular stuff. startxwin.bat is the standard batch file
included with Cygwin in /usr/X11R6/bin.

Again, the two things to remember here are that startxwin.sh
works just fine, and this exact same distro -- Singular stuff
included -- works just fine on my XP machine. Moreover, before
I rebuilt this Win2K box, this distribution worked just fine
as well.

I've tried totally removing and reinstalling Cygwin a couple of 
times already.


Did you check what was left on the above directory?  If Cygwin did
not install whatever is there it will not delete it.


I completely deleted the Cygwin directories, which included
the Singular stuff.

Thanks again,

Scott


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



Re: 1.5.21: startxwin.sh works, startxwin.bat does not work

2006-09-29 Thread René Berber
Scott Fordin wrote:

> I just rebuilt my Win2K machine and did a fresh install of all
> packages in the Cygwin and Cygwin-X 1.5.21 distributions.
> 
> When I tried running the C:\cygwin\lib\Singular\startxserver.bat
-^
That is not from the Cygwin distribution.

You seem to have installed something else on top of Cygwin.

> script, the X server startup failed with the following error:
> 
> - Snip -
> 'C:\cygwin\lib\lapack' is not recognized as an internal or external
> command, operable program or batch file.
> - Snip -

So?  That means the above .bat file is trying to execute something else that 
also doesn't come with Cygwin... and is not even an executable.

> I then tried the /usr/X11R6/bin/startxwin.bat script and got the
> same error.

If you received the same error message then something, not Cygwin, messed up 
your installation.  Same error probably means you executed the same file, are 
they really named startxserver.bat and startxwin.bat, or is just a typo?

> Two things are weird about this:
> 
>1. /usr/X11R6/bin/startxwin.sh works just fine; it's only the
>   bat file that fails.
> 
>2. The same Cygwin/Cygwin-X distribution works just fine on
>   my XP machine. I even tried installing Cygwin on my Win2K
>   machine using the packages that I had downloaded to my XP
>   machine.
> 
> I've tried totally removing and reinstalling Cygwin a couple of
> times already.

Did you check what was left on the above directory?  If Cygwin did not install 
whatever is there it will not delete it.

[snip]
-- 
René Berber


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