pypfop 0.2.0 和环境变量 FOP_CMD [英] pypfop 0.2.0 and environment variable FOP_CMD

查看:29
本文介绍了pypfop 0.2.0 和环境变量 FOP_CMD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 本教程来使用 pypfop 0.2.0.不幸的是,我无法通过第 2.2 步:

I'm trying to get working pypfop 0.2.0 with this tutorial. Unfortunately I'm not able to pass through step 2.2:

解压到任意位置,设置环境变量FOP_CMD到解压文件夹的bin/fop.

Decompress in wherever place you like and set environment variable FOP_CMD to the bin/fop of the decompressed folder.

链接似乎坏了,所以我下载了二进制包从这里但假设它没有'没关系.但是,如果我解压缩包,则不会预定义路径 bin/fop.

Links seem broken so I downloaded binary package from here but suppose it doesn't matter. However, if I decompress the package no path bin/fop is presneted.

我当前的 FOP_CMD 设置(我已经将 fop 包解压到 ~/utils):

My current FOP_CMD setup (I've decompressed fop package into ~/utils):

$ echo $FOP_CMD
~/utils/fop-1.1

现在,如果我尝试运行教程中的示例,则会出现此异常:

Now I get this exception if I try to run example from the tutorial:

Exception: Unable to find the path to execute FOP.Check the environment variable "FOP_CMD"

问题是,环境变量FOP_CMD应该设置什么?

The question is, what should be environment variable FOP_CMD set for?

推荐答案

好的,我终于找到答案了,很简单:正确的方法是fop-1.1/fop.

OK, I've finally found out the answer and it is very simple: the correct way is fop-1.1/fop.

这篇关于pypfop 0.2.0 和环境变量 FOP_CMD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆