Re: ps2pdf working in DOS console, but not in MSYS console

Vincent Belaïche <[email protected]>
Newsgroups gmane.comp.tex.miktex
Message-ID <[email protected]>


That just shows that MiKTeX ps2pdf probably does not use the COMSPEC environment variable and relies on cmd.exe being in the PATH.
 
Anyway, for MSYS, having had a look into these batch file, porting them to bash would not have been a big deal...
 
   Vincent.
 
> From: [email protected]
> To: [email protected]; [email protected]
> Date: Tue, 23 Dec 2014 18:15:18 +0100
> Subject: Re: [MiKTeX] ps2pdf working in DOS console, but not in MSYS console
> 
> Hello Ulrike,
>  
> After some investigation I had also found that there is a ps2pdf.bat batch script in MiKTeX.
>  
> Anyway, I have solved my problem: the /c/Windows/system32 was missing from my PATH under MSYS, so ps2pdf.exe could not find cmd.exe to launch a .bat file.
>  
> The reason for my PATH being this way is that it is explicitly set in my .bash_profile in order to handle some issue with using MSYS perl instead of another non MSYS perl that is also installed on my machine.
>  
> VBR,
>    Vincent.
> 
>  
> > To: [email protected]
> > From: [email protected]
> > Date: Tue, 23 Dec 2014 14:34:14 +0100
> > Subject: Re: [MiKTeX] ps2pdf working in DOS console, but not in MSYS console
> > 
> > Am Tue, 23 Dec 2014 13:38:22 +0100 schrieb Vincent Belaïche:
> > 
> > > Dear all,
> > > 
> > > I have MiKTeX 2.9 64bit installed on Windows7.
> > > 
> > > When I open a cmd.exe DOS console, and I type
> > > 
> > >    ps2pdf --help
> > > 
> > > then I get the usual output with exit status 0
> > > 
> > > When I open a bash MSYS console (with MSYS 64bit edition), and I type
> > > the same command, then I get no output at all and exit status is 255.
> > > 
> > > So there is something in the MSYS environment preventing ps2pdf to work.
> > > 
> > > I checked with MSYS that Ghostscript is in the path (if I type:
> > > 
> > >    gswin64c --help
> > > 
> > > then I get the normal output), and I also added some export GS
> > > environment variable pointing at gswin64c.exe, but this does not help.
> > 
> > The ps2pdf from miktex doesn't use gswin
> > 
> > http://tex.stackexchange.com/a/214655/2388
> > 
> > (debugging ps2pdf isn't easy, as the exe call a .bat which calls
> > other .bat which tries to find a ghostscript... . Make sure that you
> > don't have other versions around ...)
> > 
> > 
> > -- 
> > Ulrike Fischer 
> > http://www.troubleshooting-tex.de/
> > 
> > 
> > ------------------------------------------------------------------------------
> > Dive into the World of Parallel Programming! The Go Parallel Website,
> > sponsored by Intel and developed in partnership with Slashdot Media, is your
> > hub for all things parallel software development, from weekly thought
> > leadership blogs to news, videos, case studies, tutorials and more. Take a
> > look and join the conversation now. http://goparallel.sourceforge.net
> > _______________________________________________
> > MiKTeX-Users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/miktex-users
>  		 	   		  
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> MiKTeX-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/miktex-users

 		 	   		  
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.