Sponsored Content
Full Discussion: Ps2pdf: Unrecoverable error
Top Forums UNIX for Beginners Questions & Answers Ps2pdf: Unrecoverable error Post 303002989 by ADHVADARZIN on Wednesday 6th of September 2017 09:25:10 AM
Old 09-06-2017
Hi Andrew,

Output for gs RFLABEL30.ps is pasted below. Gets message "display device is not defined". But display device is defined as pdfwrite in ps2pdf script in /usr/local/bin. I tried to export the sDEVICE=pdfwrite. But didn't work.

Code:
 18 /home/mbsysop/ghostscript-7.05/lib>gs RFLABEL30.ps
GNU Ghostscript 7.05 (2002-04-22)
Copyright (C) 2002 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GNU Ghostscript 7.05: Cannot open X display `(null)'.
**** Unable to open the initial device, quitting.

Output for gs --help

Code:
 
  
 GNU Ghostscript 7.05 (2002-04-22)
Copyright (C) 2002 artofcode LLC, Benicia, CA.  All rights reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequently used switches: (you can use # in place of =)
 -dNOPAUSE           no pause after page   | -q       `quiet', fewer messages
 -g<width>x<height>  page size in pixels   | -r<res>  pixels/inch resolution
 -sDEVICE=<devname>  select device         | -dBATCH  exit after last file
 -sOutputFile=<file> select output file: - for stdout, |command for pipe,
                                         embed %d or %ld for page #
Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PDF
Available devices:
   x11 x11alpha x11cmyk x11gray2 x11gray4 x11mono bmpmono bmpgray bmpsep1
   bmpsep8 bmp16 bmp256 bmp16m bmp32b deskjet djet500 laserjet ljetplus
   ljet2p ljet3 ljet3d ljet4 ljet4d lj5mono lj5gray cdeskjet cdjcolor
   cdjmono cdj550 pj pjxl pjxl300 uniprint ijs bj10e bj200 bjc600 bjc800
   faxg3 faxg32d faxg4 pcxmono pcxgray pcx16 pcx256 pcx24b pcxcmyk pbm
   pbmraw pgm pgmraw pgnm pgnmraw pnm pnmraw ppm ppmraw pkm pkmraw pksm
   pksmraw tiffcrle tiffg3 tiffg32d tiffg4 tifflzw tiffpack tiff12nc
   tiff24nc psmono psgray psrgb bit bitrgb bitcmyk png16m pnggray pngmono
   png256 png16 jpeg jpeggray pdfwrite pswrite epswrite pxlmono pxlcolor
   cljet5 cljet5c nullpage
Search path:
   . : /usr/local/share/ghostscript/7.05/lib :
   /usr/local/share/ghostscript/fonts
For more information, see /usr/local/share/ghostscript/7.05/doc/Use.htm.
Report bugs to bug-gs@ghostscript.com, using the form in Bug-form.htm.

gs_init.ps is available in the search path
Code:
 /usr/local/share/ghostscript/7.05/lib

Does this have something to do with
Code:
 /dev/tty

as shown in the error message?

Also, can you please tell me what you meant by "Make sure the path you had, /home/mbsysop/ghostscript-7.05/lib, is in that path"

The search path /usr/local/share/ghostscript/7.05 does not have all the subdirectories as in the path /home/mbsysop/ghostscript-7.05. Is this an issue ?

Code:
  
 6 /usr/local/share/ghostscript/7.05>ll
total 16
drwxrwxrwx   2 root       sys           2048 Sep  3 12:52 doc
drwxrwxrwx   3 root       sys           1024 Sep  3 12:52 examples
drwxrwxrwx   2 root       sys           5120 Sep  6 15:00 lib


Last edited by ADHVADARZIN; 09-06-2017 at 11:11 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Is there an unrecoverable erase command?

I am "retiring" an old unix box and need to erase all sensitive data so that it can not be recovered. Does anyone know a unix command for this? (5 Replies)
Discussion started by: snyderpa
5 Replies

2. UNIX for Dummies Questions & Answers

Error: Internal system error: Unable to initialize standard output file

Hey guys, need some help. Running AIX Version 5.2 and one of our cron jobs is writing errors to a log file. Any ideas on the following error message. Error: Internal system error: Unable to initialize standard output file I'm guessing more info might be needed, so let me know. Thanks (2 Replies)
Discussion started by: firkus
2 Replies

3. UNIX for Dummies Questions & Answers

Print to a ps2pdf print queue.

I am trying to create a printer queue, on a SunOS 5.7 system, that outputs a pdf file. There is an application running on the system that has a print button, which sends print files to the default printer. If I disable the printer, I am able to manually capture the files in /var/spool/lp/tmp and... (1 Reply)
Discussion started by: Sean_69
1 Replies

4. Solaris

Print to ps2pdf print queue

I am trying to create a printer queue, on a SunOS 5.7 system, that outputs a pdf file. There is an application running on the system that has a print button, which sends print files to the default printer. If I disable the printer, I am able to manually capture the files in /var/spool/lp/tmp and... (2 Replies)
Discussion started by: Sean_69
2 Replies

5. UNIX for Dummies Questions & Answers

awk Shell Script error : "Syntax Error : `Split' unexpected

hi there i write one awk script file in shell programing the code is related to dd/mm/yy to month, day year format but i get an error please can anybody help me out in this problem ?????? i give my code here including error awk ` # date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies

6. AIX

nim mksysb error :/usr/bin/savevg[33]: 1016,07: syntax error

-------------------------------------------------------------------------------- Hello, help me please. I am trying to create a mksysb bakup using nim. I am geting this error, how to correct it ? : Command : failed stdout: yes stderr: no... (9 Replies)
Discussion started by: astjen
9 Replies

7. Shell Programming and Scripting

Need help on ps2pdf

Hi, Iam trying to convert a .ps file to pdf in unix. iam using the command like ps2pdf my_file.ps my_file.pdf it is working in server1. if i execute the same in another (server2), its not working.. So i have downloaded the ps files (ps2pdf,ps2pdfwr,ps2pdf14,ps2pdf13,ps2pdf12,gs... (2 Replies)
Discussion started by: Pradeep Garine
2 Replies

8. UNIX and Linux Applications

Creating pdf with bookmarks using ps2pdf ??

Hello to all, I have a *.ps file, which needs to be converted to a pdf file. The file is huge & i would like it to have bookmarked according to main titles (already provided). What is the option used in ps2pdf command, that will generate bookmarks from a *.ps file ? Kindly help. Thanks. ... (0 Replies)
Discussion started by: frozensmilz
0 Replies

9. UNIX for Dummies Questions & Answers

> 5 ")syntax error: operand expected (error token is " error

im kinda new to shell scripting so i need some help i try to run this script and get the error code > 5 ")syntax error: operand expected (error token is " the code for the script is #!/bin/sh # # script to see if the given value is correct # # Define errors ER_AF=86 # Var is... (4 Replies)
Discussion started by: metal005
4 Replies

10. Solaris

Rpcinfo: can't contact portmapper: RPC: Authentication error; why = Failed (unspecified error)

I have two servers with a fresh install of Solaris 11, and having problems when doing rpcinfo between them. There is no firewall involved, so everything should theoretically be getting through. Does anyone have any ideas? I did a lot of Google searches, and haven't found a working solution yet. ... (2 Replies)
Discussion started by: christr
2 Replies
All times are GMT -4. The time now is 12:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy