public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: GS ps2pdf
       [not found] <PAEGKBFONJGEHJIENHGMKEDOCAAA.james.peroulas@ateliertelecom.se>
@ 2002-06-06 16:47 ` Dario Alcocer
  2002-06-07  1:24   ` GhostScript ps2pdf James Peroulas
  0 siblings, 1 reply; 10+ messages in thread
From: Dario Alcocer @ 2002-06-06 16:47 UTC (permalink / raw)
  To: James Peroulas; +Cc: McDougall, cygwin

>>>>> "James" == James Peroulas <james.peroulas@ateliertelecom.se> writes:

    James> Hi all, I noticed on the cygwin mailing list that you guys
    James> were having the same problem that I am
    James> having. Specifically, "ps2pdf" gives me the error message
    James> "**** Unable to open the initial device, quitting."

    James> Did either of you find a workaround for this problem?

    James> From misc. posts on usenet, it seems that this problem is
    James> usually related to not being able to open the output file,
    James> but this does not appear to be the case here. If I select a
    James> device other than "pdfwrite" (such as "bmpmono") the
    James> program works and the output file is created as expected.

    James> Any suggestions?

NOTE: I've moved this to the Cygwin mailing list, where this kind of
discussion belongs...

I've not seen this problem myself, so all I can say is: make sure you
are using the latest release.  If you're still having problems, please
feel free to e-mail the Cygwin mailing list with more specific
information, like maybe a small PS file sample which causes the
failure mode you're referring to.

-- 
Dario Alcocer -- Sr. Software Developer, Helix Digital Inc.
alcocer@helixdigital.com -- http://www.helixdigital.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: GhostScript ps2pdf
  2002-06-06 16:47 ` GS ps2pdf Dario Alcocer
@ 2002-06-07  1:24   ` James Peroulas
  2002-06-07  5:27     ` Nicholas Wourms
  2002-06-07  5:28     ` James Peroulas
  0 siblings, 2 replies; 10+ messages in thread
From: James Peroulas @ 2002-06-07  1:24 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 2214 bytes --]



> -----Original Message-----
> From: Dario Alcocer [mailto:alcocer@helixdigital.com]
> Sent: den 6 juni 2002 23:06
> To: James Peroulas
> Cc: McDougall@agecon.purdue.edu; cygwin@cygwin.com
> Subject: Re: GS ps2pdf
>
>
> >>>>> "James" == James Peroulas <james.peroulas@ateliertelecom.se> writes:
>
>     James> Hi all, I noticed on the cygwin mailing list that you guys
>     James> were having the same problem that I am
>     James> having. Specifically, "ps2pdf" gives me the error message
>     James> "**** Unable to open the initial device, quitting."
>
> NOTE: I've moved this to the Cygwin mailing list, where this kind of
> discussion belongs...
>
> I've not seen this problem myself, so all I can say is: make sure you
> are using the latest release.  If you're still having problems, please
> feel free to e-mail the Cygwin mailing list with more specific
> information, like maybe a small PS file sample which causes the
> failure mode you're referring to.


Hi, I'm the one that made the original post. I'm using the latest version of
cygwin+everything (as of 2002-06-06) on Windows 2000.

I've attached a simple postscript file and when I use the windows native
ghostscript and ghostview applications, I can both open this postscript file
and convert it into a valid pdf file.


When I run ps2pdf in cygwin, however, I get the following:
DESKTOP62 513: ps2pdf test.ps
**** Unable to open the initial device, quitting.

I've also tried calling ghostscript directly, with the same results:
DESKTOP62 518:
gs -dSAFER -dCompatibilityLevel=1.2 -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -
sOutputFile=test.pdf -c .setpdfwrite -f test.ps
**** Unable to open the initial device, quitting.


The problem persists no matter what postscript file I try to convert.
However, if I change the device, I can get the conversion to complete:
DESKTOP62 523:
gs -dSAFER -dCompatibilityLevel=1.2 -q -dNOPAUSE -dBATCH -sDEVICE=bmpmono -s
OutputFile=test.bmp -c .setpdfwrite -f test.ps
%%[ ProductName: GNU Ghostscript ]%%
%%[Page: 1]%%
%%[LastPage]%%


So, the problem appears to be with the pdfwrite output device on
ghostscript.

Any ideas?
James

P.S. I am not running under "Administrator" privleges under windows 2000.

[-- Attachment #2: test.ps --]
[-- Type: application/postscript, Size: 20773 bytes --]

[-- Attachment #3: Type: text/plain, Size: 214 bytes --]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: GhostScript ps2pdf
  2002-06-07  1:24   ` GhostScript ps2pdf James Peroulas
@ 2002-06-07  5:27     ` Nicholas Wourms
  2002-06-07  5:28     ` James Peroulas
  1 sibling, 0 replies; 10+ messages in thread
From: Nicholas Wourms @ 2002-06-07  5:27 UTC (permalink / raw)
  To: James Peroulas, cygwin

Hi James,

What does it say when you run "which ps2pdf"?  The only reason I ask is
because I believe the native windows version of ghostscript adds itself to
path in autoexec.bat, so its path might be coming before the cygwin path. 
Just a thought...

Cheers,
Nicholas
--- James Peroulas <james.peroulas@ateliertelecom.se> wrote:
> 
> 
> > -----Original Message-----
> > From: Dario Alcocer [mailto:alcocer@helixdigital.com]
> > Sent: den 6 juni 2002 23:06
> > To: James Peroulas
> > Cc: McDougall@agecon.purdue.edu; cygwin@cygwin.com
> > Subject: Re: GS ps2pdf
> >
> >
> > >>>>> "James" == James Peroulas <james.peroulas@ateliertelecom.se>
> writes:
> >
> >     James> Hi all, I noticed on the cygwin mailing list that you guys
> >     James> were having the same problem that I am
> >     James> having. Specifically, "ps2pdf" gives me the error message
> >     James> "**** Unable to open the initial device, quitting."
> >
> > NOTE: I've moved this to the Cygwin mailing list, where this kind of
> > discussion belongs...
> >
> > I've not seen this problem myself, so all I can say is: make sure you
> > are using the latest release.  If you're still having problems, please
> > feel free to e-mail the Cygwin mailing list with more specific
> > information, like maybe a small PS file sample which causes the
> > failure mode you're referring to.
> 
> 
> Hi, I'm the one that made the original post. I'm using the latest
> version of
> cygwin+everything (as of 2002-06-06) on Windows 2000.
> 
> I've attached a simple postscript file and when I use the windows native
> ghostscript and ghostview applications, I can both open this postscript
> file
> and convert it into a valid pdf file.
> 
> 
> When I run ps2pdf in cygwin, however, I get the following:
> DESKTOP62 513: ps2pdf test.ps
> **** Unable to open the initial device, quitting.
> 
> I've also tried calling ghostscript directly, with the same results:
> DESKTOP62 518:
> gs -dSAFER -dCompatibilityLevel=1.2 -q -dNOPAUSE -dBATCH
> -sDEVICE=pdfwrite -
> sOutputFile=test.pdf -c .setpdfwrite -f test.ps
> **** Unable to open the initial device, quitting.
> 
> 
> The problem persists no matter what postscript file I try to convert.
> However, if I change the device, I can get the conversion to complete:
> DESKTOP62 523:
> gs -dSAFER -dCompatibilityLevel=1.2 -q -dNOPAUSE -dBATCH
> -sDEVICE=bmpmono -s
> OutputFile=test.bmp -c .setpdfwrite -f test.ps
> %%[ ProductName: GNU Ghostscript ]%%
> %%[Page: 1]%%
> %%[LastPage]%%
> 
> 
> So, the problem appears to be with the pdfwrite output device on
> ghostscript.
> 
> Any ideas?
> James
> 
> P.S. I am not running under "Administrator" privleges under windows
> 2000.
> 

> ATTACHMENT part 2 application/postscript name=test.ps
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: GhostScript ps2pdf
  2002-06-07  1:24   ` GhostScript ps2pdf James Peroulas
  2002-06-07  5:27     ` Nicholas Wourms
@ 2002-06-07  5:28     ` James Peroulas
  2002-06-07  5:31       ` Gerrit P. Haase
  2002-06-07  5:50       ` Nicholas Wourms
  1 sibling, 2 replies; 10+ messages in thread
From: James Peroulas @ 2002-06-07  5:28 UTC (permalink / raw)
  To: cygwin

> Hi James,
>
> What does it say when you run "which ps2pdf"?  The only reason I ask is
> because I believe the native windows version of ghostscript adds itself to
> path in autoexec.bat, so its path might be coming before the cygwin path.
> Just a thought...
>
> Cheers,
> Nicholas

Nicholas, it looks like I'm OK on that front:

DESKTOP62 527: which ps2pdf
/usr/bin/ps2pdf
DESKTOP62 527: which ps2pdfwr
/usr/bin/ps2pdfwr

DESKTOP62 528: echo $PATH
/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/Compaq/Compaq
Management
Agents/Dmi/Win32/Bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/
c/WINNT/System32/Wbem:/cygdrive/c/matlab6p1/bin/win32:/usr/X11R6/bin:/cygdri
ve/c/Utils/vim/vim60

James


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GhostScript ps2pdf
  2002-06-07  5:28     ` James Peroulas
@ 2002-06-07  5:31       ` Gerrit P. Haase
  2002-06-07  6:03         ` Conrad Scott
  2002-06-07  5:50       ` Nicholas Wourms
  1 sibling, 1 reply; 10+ messages in thread
From: Gerrit P. Haase @ 2002-06-07  5:31 UTC (permalink / raw)
  To: James Peroulas; +Cc: cygwin

James schrieb:

> Nicholas, it looks like I'm OK on that front:

> DESKTOP62 527: which ps2pdf
> /usr/bin/ps2pdf
> DESKTOP62 527: which ps2pdfwr
> /usr/bin/ps2pdfwr

> DESKTOP62 528: echo $PATH
> /usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/Compaq/Compaq

It is really bad to have spaces in the PATH!
Instead of includung that in the PATH try to mount it.

> Management
> Agents/Dmi/Win32/Bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/
> c/WINNT/System32/Wbem:/cygdrive/c/matlab6p1/bin/win32:/usr/X11R6/bin:/cygdri
> ve/c/Utils/vim/vim60

Gerrit
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: GhostScript ps2pdf
  2002-06-07  5:28     ` James Peroulas
  2002-06-07  5:31       ` Gerrit P. Haase
@ 2002-06-07  5:50       ` Nicholas Wourms
  2002-06-07  6:27         ` Nicholas Wourms
  1 sibling, 1 reply; 10+ messages in thread
From: Nicholas Wourms @ 2002-06-07  5:50 UTC (permalink / raw)
  To: James Peroulas, cygwin


--- James Peroulas <james.peroulas@ateliertelecom.se> wrote:
> Nicholas, it looks like I'm OK on that front:
> 
> DESKTOP62 527: which ps2pdf
> /usr/bin/ps2pdf
> DESKTOP62 527: which ps2pdfwr
> /usr/bin/ps2pdfwr
> 
> DESKTOP62 528: echo $PATH
> /usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/Compaq/Compaq
> Management
>
Agents/Dmi/Win32/Bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/
>
c/WINNT/System32/Wbem:/cygdrive/c/matlab6p1/bin/win32:/usr/X11R6/bin:/cygdri
> ve/c/Utils/vim/vim60
> 
> James
> 
James,

Try running the "strace" command for debugging purposes.  Please see
"strace --help" or "man strace" for syntax and usage.  If you don't
understand what is going on with the output, please pipe it to an output
file and "bzip2 -9" it.  Send the output to the list to see if anyone can
recognize what's going on.  

Before you do that, you might want to try a recent snapshot of the cygwin
dll at:

http://cygwin.com/snapshots/

Grab cygwin-inst-xxx.tar.bz2 and download to /.  Run "tar
--exclude=cygwin1.dll -jxvf cygwin-inst-xxx.tar.bz2" in your / directory. 
You *MUST* do this in cygwin to ensure proper CR/LF modes and permissions.
 Then close all cygwin windows and applications.  Open
cygwin-inst-xxx.tar.bz2 in winrar or winzip.  Look in the /usr/bin
directory inside winrar/winzip for the file called cygwin1.dll.  Extract
this file to the "/bin" directory of wherever you installed cygwin.  In my
case that would be "C:\cygwin\bin".  Say yes to the dialogue asking if you
wish to replace the existing dll.  If it doesn't complain about replacing
the file, that means your archiver extraced paths, so you will have to see
where it extracted it to and move the file to the appropriate location.   
Then restart cygwin bash or whatever method you use and try running ps2pdf
again.  Good Luck!

Cheers,
Nicholas

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GhostScript ps2pdf
  2002-06-07  5:31       ` Gerrit P. Haase
@ 2002-06-07  6:03         ` Conrad Scott
  0 siblings, 0 replies; 10+ messages in thread
From: Conrad Scott @ 2002-06-07  6:03 UTC (permalink / raw)
  To: cygwin

"Gerrit P. Haase" <freeweb@nyckelpiga.de> wrote:
> It is really bad to have spaces in the PATH!
> Instead of includung that in the PATH try to mount it.

Or use the short file names (DOS names?). So my PATH includes entries like
"/cygdrive/c/progra~1/Adobe/acroba~1.0/Reader".

// Conrad



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: GhostScript ps2pdf
  2002-06-07  5:50       ` Nicholas Wourms
@ 2002-06-07  6:27         ` Nicholas Wourms
  2002-06-07  6:34           ` Nicholas Wourms
  0 siblings, 1 reply; 10+ messages in thread
From: Nicholas Wourms @ 2002-06-07  6:27 UTC (permalink / raw)
  To: James Peroulas, cygwin

James,

I just reread your initial post, and realized that I over looked your
statement that you were using the latest snapshot.  I apologize, as it is
too early in the morning and I haven't had my coffee yet.

Cheers,
Nicholas

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: GhostScript ps2pdf
  2002-06-07  6:27         ` Nicholas Wourms
@ 2002-06-07  6:34           ` Nicholas Wourms
  2002-06-07  8:27             ` James Peroulas
  0 siblings, 1 reply; 10+ messages in thread
From: Nicholas Wourms @ 2002-06-07  6:34 UTC (permalink / raw)
  To: Nicholas Wourms, James Peroulas, cygwin

James,

I just installed the latest ghostscript and such from setup.exe on my
Windows ME box, which is running the latest cygwin sources compiled from
cvs.  This is the result:

$ ps2pdf test.ps test.pdf
%%[ ProductName: GNU Ghostscript ]%%
%%[Page: 1]%%
%%[LastPage]%%

Seems to work fine for me, so you might want to run setup and reinstall
the various required components for ghostscript and friends.  If it still
causes a problem, run:

cygcheck -s -v -r > cygcheck.out; bzip2 -9 cygcheck.out

Include that and your bzipped strace output in your reply.

Cheers,
Nicholas

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: GhostScript ps2pdf
  2002-06-07  6:34           ` Nicholas Wourms
@ 2002-06-07  8:27             ` James Peroulas
  0 siblings, 0 replies; 10+ messages in thread
From: James Peroulas @ 2002-06-07  8:27 UTC (permalink / raw)
  To: Nicholas Wourms, cygwin

[-- Attachment #1: Type: text/plain, Size: 1627 bytes --]

Hi Nicholas, I tracked the problem down some more and I can now make the
problem appear or go away by changing the CYGWIN environment variable in
Windows.

If I have "check_case:strict" in the CYGWIN variable, ps2pdf does not work.
If I take out "check_case:strict", ps2pdf does work properly.

So, it appears that there might be a problem with ghostscript itself. It's
probably looking for a file called "fontmap" when in reality, the file is
called "Fontmap". With "check_case:strict", it wont find the file it's
looking for.

I've attached the strace output for when ps2pdf fails, but I can't figure
out exactly where it starts having problems.

James

> -----Original Message-----
> From: Nicholas Wourms [mailto:nwourms@yahoo.com]
> Sent: den 7 juni 2002 15:04
> To: Nicholas Wourms; James Peroulas; cygwin@cygwin.com
> Subject: RE: GhostScript ps2pdf
>
>
> James,
>
> I just installed the latest ghostscript and such from setup.exe on my
> Windows ME box, which is running the latest cygwin sources compiled from
> cvs.  This is the result:
>
> $ ps2pdf test.ps test.pdf
> %%[ ProductName: GNU Ghostscript ]%%
> %%[Page: 1]%%
> %%[LastPage]%%
>
> Seems to work fine for me, so you might want to run setup and reinstall
> the various required components for ghostscript and friends.  If it still
> causes a problem, run:
>
> cygcheck -s -v -r > cygcheck.out; bzip2 -9 cygcheck.out
>
> Include that and your bzipped strace output in your reply.
>
> Cheers,
> Nicholas
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com

[-- Attachment #2: logfile.gz --]
[-- Type: application/x-gzip, Size: 10847 bytes --]

[-- Attachment #3: Type: text/plain, Size: 214 bytes --]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-06-07 15:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <PAEGKBFONJGEHJIENHGMKEDOCAAA.james.peroulas@ateliertelecom.se>
2002-06-06 16:47 ` GS ps2pdf Dario Alcocer
2002-06-07  1:24   ` GhostScript ps2pdf James Peroulas
2002-06-07  5:27     ` Nicholas Wourms
2002-06-07  5:28     ` James Peroulas
2002-06-07  5:31       ` Gerrit P. Haase
2002-06-07  6:03         ` Conrad Scott
2002-06-07  5:50       ` Nicholas Wourms
2002-06-07  6:27         ` Nicholas Wourms
2002-06-07  6:34           ` Nicholas Wourms
2002-06-07  8:27             ` James Peroulas

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