View previous topic :: View next topic |
Author |
Message |
Rukie l33t
Joined: 26 Jan 2004 Posts: 692 Location: SE Wi, Home of cheese and cowtippers.......
|
Posted: Mon May 26, 2008 4:18 pm Post subject: any2dvd ghostscript imagemagick |
|
|
I'm tryign to use any2dvd but I keep getting an error about not having ghostscript support installed with imagemagick
this is the part of the script that looks for the ghostscript
Quote: |
GS_XML=`convert -list font | grep Path: | grep ghostscript | awk '{print $2}'`
if [ ! -f "$GS_XML" ] || [ ! -f "`cat $GS_XML | grep glyphs | tail -n1 | cut -d= -f2 | sed 's/\"//g'`" ]; then
errmsg Error: "GNU-Ghostscript fonts were not found"
echo " Please install GNU-Ghostscript fonts package found here ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/fonts/"
echo -e " Then re-install Imagemagick with Ghostscript support\n"
exit
|
i have both imagemagick installed and ghostscript-gnu installed, but I don't think it has an imagemagick use flag...
any ideas on what I should do? _________________ Gentoomania! Support the Open Source!
http://www.rukie.ath.cx |
|
Back to top |
|
|
Rukie l33t
Joined: 26 Jan 2004 Posts: 692 Location: SE Wi, Home of cheese and cowtippers.......
|
Posted: Mon May 26, 2008 8:31 pm Post subject: |
|
|
here's the error from the program
_________________ Gentoomania! Support the Open Source!
http://www.rukie.ath.cx |
|
Back to top |
|
|
Rukie l33t
Joined: 26 Jan 2004 Posts: 692 Location: SE Wi, Home of cheese and cowtippers.......
|
Posted: Wed May 28, 2008 5:19 am Post subject: |
|
|
any ideas? I don't know what to do.. _________________ Gentoomania! Support the Open Source!
http://www.rukie.ath.cx |
|
Back to top |
|
|
anthonyw n00b
Joined: 17 Jun 2008 Posts: 13 Location: Dundalk, Ireland
|
Posted: Tue Jun 17, 2008 12:03 pm Post subject: |
|
|
I had the same problem the other day, I'm using the any2dvd-0.36_beta-r2.ebuild from https://bugs.gentoo.org/show_bug.cgi?id=126994
And on my system, Imagemagick was compiled with the gs flag and both media-fonts/gnu-gs-fonts-std media-fonts/gnu-gs-fonts-other are installed
The problem is with the right hand side of the OR in the IF statement
Code: | GS_XML=`convert -list font | grep Path: | grep ghostscript | awk '{print $2}'`
if [ ! -f "$GS_XML" ] || [ ! -f "`cat $GS_XML | grep glyphs | tail -n1 | cut -d= -f2 | sed 's/\"//g'`" ]; then |
The format of the file being processed must have changed and it does not return a 'path to a file' string at all.
You get this string from the command: cat /usr/lib/ImageMagick-6.3.8/config/type-ghostscript.xml | grep glyphs | tail -n1
Code: | <type name="Symbol" fullname="Symbol" family="Symbol" foundry="URW" weight="400" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/default/ghostscript/s050000l.afm" glyphs="/usr/share/fonts/default/ghostscript/s050000l.pfb" version="0.1" encoding="AdobeCustom"/> |
And i modified the right hand side of the IF statement to grab the file and path string from the glyphs field (this was a guess on the file to check for but i chose glyphs since there was an earlier grep on glyphs)
Here's the modified IF statement
Code: | if [ ! -f "$GS_XML" ] || [ ! -f "`cat $GS_XML | grep glyphs | tail -n1 | sed -n 's/^.*glyphs="\([0-9a-zA-Z./]*\)".*$/\1/p'`" ]; then |
This worked for my system - i have no idea if it will work for others! |
|
Back to top |
|
|
blubbi Guru
Joined: 27 Apr 2003 Posts: 564 Location: Halle (Saale), Germany
|
Posted: Sun Jun 22, 2008 4:22 pm Post subject: |
|
|
I'll have a look at it, thanks fot the note.
kind regards
blubbi _________________ -->Please add [solved] to the initial post's subject line if you feel your problem is resolved.
-->Help answer the unanswered
http://olausson.de |
|
Back to top |
|
|
blubbi Guru
Joined: 27 Apr 2003 Posts: 564 Location: Halle (Saale), Germany
|
Posted: Sat Jul 05, 2008 11:17 am Post subject: |
|
|
Sry for my long absence.
I'll update the ebuild on monday! Promised!
regards
blubbi _________________ -->Please add [solved] to the initial post's subject line if you feel your problem is resolved.
-->Help answer the unanswered
http://olausson.de |
|
Back to top |
|
|
blubbi Guru
Joined: 27 Apr 2003 Posts: 564 Location: Halle (Saale), Germany
|
Posted: Mon Jul 07, 2008 8:10 pm Post subject: |
|
|
anthonyw wrote: |
Here's the modified IF statement
Code: | if [ ! -f "$GS_XML" ] || [ ! -f "`cat $GS_XML | grep glyphs | tail -n1 | sed -n 's/^.*glyphs="\([0-9a-zA-Z./]*\)".*$/\1/p'`" ]; then |
|
- I added a patch and updated the ebuild
- Fixed the new URL to my server.
will update it on bugs.gentoo.org soon.
http://dev.olausson.de/index.php?dir=any2dvd%2F
Thanks and kind regards
blubbi _________________ -->Please add [solved] to the initial post's subject line if you feel your problem is resolved.
-->Help answer the unanswered
http://olausson.de |
|
Back to top |
|
|
anthonyw n00b
Joined: 17 Jun 2008 Posts: 13 Location: Dundalk, Ireland
|
Posted: Sun Jul 20, 2008 8:08 pm Post subject: |
|
|
Thanks for maintaining the ebuild, it would have been a right pain to install any2dvd by myself. |
|
Back to top |
|
|
blubbi Guru
Joined: 27 Apr 2003 Posts: 564 Location: Halle (Saale), Germany
|
Posted: Sun Jul 20, 2008 9:32 pm Post subject: |
|
|
anthonyw wrote: | Thanks for maintaining the ebuild, it would have been a right pain to install any2dvd by myself. |
np, you are welcome
I am happy that someone is using the ebuild
mmh, if someone could add [SOLVED] to the subject
Kind regards
Blubbi _________________ -->Please add [solved] to the initial post's subject line if you feel your problem is resolved.
-->Help answer the unanswered
http://olausson.de |
|
Back to top |
|
|
|