Dear All, There is another way of running this fop.
sh fop.sh will give the same result as ./fop.sh. Make sure that the fop.sh is having executable permission to the user. Ganesh -----Original Message----- From: Clay Leeds [mailto:[EMAIL PROTECTED] Sent: Monday, July 26, 2004 12:24 AM To: [EMAIL PROTECTED] Subject: Re: command line problem On Jul 24, 2004, at 11:14 PM, Conor Quinn wrote: > Hi all! I'm quite new to FOP and have spent the day on this Mac OS > 10.3.4 researching madly and trying every possible installation > combination I can think of for fop-0.20.5, but I must be missing > something very very basic that none of the main sites feel the need to > mention: since no matter what I do, the command line still spits back > nothing but > > -bash: fop: command not found > > in response to a standard > > fop fonts.fo fonts.pdf > > test of the newly added directory and files. Running fop.sh gets the > whole set of usage scenarios and the expected "no input specified" > complaint about lacking, but again, all I get is the above error > message in response to the above command. Can anyone give me a hint > as to what presumably obvious error I am making? > > Many thanks! As you guessed, I believe this has a simple solution. The bash environment is not set up by default to run fop. Since it doesn't 'know' where the fop is, it will give you this error. In addition, you failed to follow the USAGE: fop [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif|-pcl|-ps|-txt|-svg|-at|-print] <outfile> which translates to (using your example): fop.sh -fo fonts.fo -pdf fonts.pdf In addition, to run FOP, You need to either specify the entire PATH to fop.sh (on unix, which is essentially basis of Mac OS X), or the entire PATH to fop.bat (under windows). Instead of what you have, try: /path/to/fop-0.20.5/fop.sh -fo /path/to/fonts.fo -pdf /path/to/fonts.pdf (NOTE: the above should be all on one line) Also, you need to put the entire PATH to the INPUT and OUTPUT files. If you're transforming XML and XSL files to output to a PDF file, each needs the direct PATH: /path/to/fop-0.20.5/fop.sh -xml /path/to/input.xml -xsl /path/to/input.xsl -pdf /path/to/fonts.pdf (NOTE: the above should be all on one line) In my case, since I have FOP installed here: /Users/Shared/_WebDLs/fop-0.20.5/ Since I don't have to put the PATH if I'm in this directory, I can change to it: cd /Users/Shared/_WebDLs/fop-0.20.5/ and then run: ./fop.sh -fo examples/fo/basic/fonts.fo -pdf fonts.pdf which will generate the fonts.pdf file in the /Users/Shared/_WebDLs/fop-0.20.5/ directory. There are many tricks you can do to make this process easier (i.e., add '/Users/Shared/_WebDLs/fop-0.20.5/' to your PATH; create a symbolic link from 'fop' to '/Users/Shared/_WebDLs/fop-0.20.5/fop.sh': In any case, although this has a 'simple' solution, you've made it clear that we need to update the 'Running FOP' page[1] to include examples of running FOP under Unix and Windows. Thank you for making this POST! I hope this helps! Web Maestro Clay [1] http://xml.apache.org/fop/running.html Web Maestro Clay <[EMAIL PROTECTED]> --- There are only 10 kinds of people in the world: those who understand binary and those who don't. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]