Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
04-25-2005, 01:45 PM
#1
Member
Registered: Apr 2005
Posts: 192
Rep:
sh: line 1: gs: command not found
I got this error: "sh: line 1: gs: command not found" when running command "convert" of ImageMagick. Does anyone know how to resolve this issue?
04-25-2005, 01:50 PM
#2
Member
Registered: Aug 2004
Location: Australia
Distribution: Fedora
Posts: 282
Rep:
you are not running convert of ImageMagick because it is a binary file.
Use 'convert -version' and it'd produce:
Code:
Version: ImageMagick 6.2.0 03/17/05 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC
Try 'convert -version' in your PC. It'd prove if you are running something else. (But you may see the same sh error again...)
Or you can open and read that 'convert' file to find out what it is.
04-26-2005, 12:28 AM
#3
Member
Registered: Apr 2005
Posts: 192
Original Poster
Rep:
I am running convert of ImageMagick because the execution of "convert -version" returns with:
Version: @(#)ImageMagick 5.3.8 09/01/01 Q:16
http://www.imagemagick.org
Copyright: Copyright (C) 2001 ImageMagick Studio
04-26-2005, 12:32 AM
#4
Member
Registered: Aug 2004
Location: Australia
Distribution: Fedora
Posts: 282
Rep:
Interesting. because the error message is usually given out by a shell script.
Since your version of ImageMagick is rather old, do you think you can upgrade first and then try again...
04-26-2005, 12:40 AM
#5
Member
Registered: Apr 2002
Posts: 32
Rep:
Do you have gs (Ghostscript) installed?
04-26-2005, 03:35 AM
#6
Member
Registered: Apr 2005
Posts: 192
Original Poster
Rep:
I don't have gs installed on my machine. Where can I get it? Is it a dependency of Imagemagick?
04-26-2005, 10:58 AM
#7
Member
Registered: Apr 2002
Posts: 32
Rep:
What distro are you using? Its likely that your distro already has this packaged for you. Other wise google ghostscript, its the first link i believe.
04-26-2005, 12:28 PM
#8
Member
Registered: Apr 2005
Posts: 192
Original Poster
Rep:
I have just installed ghostscript, and it comes with the new error:
gs: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory
That is strange because I already have libpng installed on my machine.
04-26-2005, 02:02 PM
#9
Member
Registered: Apr 2002
Posts: 32
Rep:
Do you have libpng.so.2? try locate libpng.so.2. It should be in /usr/lib/. Also try ldconfig as root.
04-26-2005, 02:34 PM
#10
Member
Registered: Apr 2005
Posts: 192
Original Poster
Rep:
I don't see libpng.so.2 in /usr/lib. I don't see it any where on my machine.
04-26-2005, 03:22 PM
#11
Member
Registered: Apr 2002
Posts: 32
Rep:
Hmmm. I would reinstall your libpng package.
04-26-2005, 05:09 PM
#12
Member
Registered: Apr 2005
Posts: 192
Original Poster
Rep:
I have tried to re-install many versions of libpng, but I still don't see libpng.so.2. Can anyone send it to me? I would appreciate it.
04-27-2005, 11:10 AM
#13
Member
Registered: Apr 2005
Posts: 192
Original Poster
Rep:
I found libpng.so.2 in /usr/local/lib, then I copied it to /usr/lib. After that, I executed command convert, and it turn a lot of errors:
Error: /invalidfont in findfont
Operand stack:
Times-Roman-ISO Times-Roman-ISO Times-Roman Font Times-Roman 221098 Times-Roman --nostringval-- Times-Roman NimbusRomNo9L-Regu Courier NimbusMonL-Regu
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- 3 3 %oparray_pop 4 3 %oparray_pop --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 7 4 %oparray_pop --nostringval-- --nostringval-- --nostringval-- 1 -1 1 --nostringval-- %for_neg_int_continue
Dictionary stack:
--dict:1126/1686(ro)(G)-- --dict:0/20(G)-- --dict:72/200(L)-- --dict:17/17(ro)(G)-- --dict:1126/1686(ro)(G)--
Current allocation mode is local
Last OS error: 2
Current file position is 263
AFPL Ghostscript 8.51: Unrecoverable error, exit code 1
Error: /invalidfont in findfont
Operand stack:
Times-Roman-ISO Times-Roman-ISO Times-Roman Font Times-Roman 221098 Times-Roman --nostringval-- Times-Roman NimbusRomNo9L-Regu Courier NimbusMonL-Regu
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- 3 3 %oparray_pop 4 3 %oparray_pop --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 7 4 %oparray_pop --nostringval-- --nostringval-- --nostringval-- 1 -1 1 --nostringval-- %for_neg_int_continue
Dictionary stack:
--dict:1126/1686(ro)(G)-- --dict:0/20(G)-- --dict:72/200(L)-- --dict:17/17(ro)(G)-- --dict:1126/1686(ro)(G)--
Current allocation mode is local
Last OS error: 2
Current file position is 263
AFPL Ghostscript 8.51: Unrecoverable error, exit code 1
convert: no decode delegate for this image format `/tmp/magick-XXx2mftL'.
Error: /invalidfont in findfont
Operand stack:
Times-Roman-ISO Times-Roman-ISO Times-Roman Font Times-Roman 221098 Times-Roman --nostringval-- Times-Roman NimbusRomNo9L-Regu Courier NimbusMonL-Regu
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- 3 3 %oparray_pop 4 3 %oparray_pop --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 7 4 %oparray_pop --nostringval-- --nostringval-- --nostringval-- 1 -1 1 --nostringval-- %for_neg_int_continue
Dictionary stack:
--dict:1126/1686(ro)(G)-- --dict:0/20(G)-- --dict:72/200(L)-- --dict:17/17(ro)(G)-- --dict:1126/1686(ro)(G)--
Current allocation mode is local
Last OS error: 2
Current file position is 263
AFPL Ghostscript 8.51: Unrecoverable error, exit code 1
Error: /invalidfont in findfont
Operand stack:
Times-Roman-ISO Times-Roman-ISO Times-Roman Font Times-Roman 221098 Times-Roman --nostringval-- Times-Roman NimbusRomNo9L-Regu Courier NimbusMonL-Regu
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- 3 3 %oparray_pop 4 3 %oparray_pop --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 7 4 %oparray_pop --nostringval-- --nostringval-- --nostringval-- 1 -1 1 --nostringval-- %for_neg_int_continue
Dictionary stack:
--dict:1126/1686(ro)(G)-- --dict:0/20(G)-- --dict:72/200(L)-- --dict:17/17(ro)(G)-- --dict:1126/1686(ro)(G)--
Current allocation mode is local
Last OS error: 2
Current file position is 263
AFPL Ghostscript 8.51: Unrecoverable error, exit code 1
convert: no decode delegate for this image format `/tmp/magick-XXaeZjBL'.
Can anyone help me fix the problem?
04-27-2005, 05:37 PM
#14
Member
Registered: Aug 2004
Location: Australia
Distribution: Fedora
Posts: 282
Rep:
You should not just copy the so file over to new location.
The proper way is to (while the file stays where it was) include the path /usr/local/lib in ld.so.conf and then run ldconfig
It is akin to register a so file
04-27-2005, 06:22 PM
#15
Member
Registered: Oct 2004
Posts: 229
Rep:
You need to install the ghostscript-fonts package. As you seem to be lacking fonts.
All times are GMT -5. The time now is 06:52 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News