为 Codebeamer 配置 PhantomJS
某些
Codebeamer 功能 (如图表导出) 需要在
Codebeamer 服务器上安装
PhantomJS 软件包。PhantomJS 是一种无头 WebKit 浏览器,可通过 JavaScript API 对其编写脚本,并可用于将 JavaScript 图表导出到 MS Word。
Codebeamer 需要 PhantomJS 2.1.1 或更高版本。
在 Windows 和 Codebeamer Docker 镜像上安装
不需要在 Windows 和 Codebeamer Docker 镜像上进行额外安装。PhantomJS 随默认 Codebeamer 发行版一起预装。
Linux
在 Linux 和其他 Unix 发行版上,必须单独安装 PhantomJS。如果可能,PTC 强烈建议使用软件包管理器,从您现有的发行版中安装此程序。
Ubuntu LTS 和其他 Linux 发行版上的 PhantomJS 手动安装
要在 Linux 操作系统上手动安装 PhantomJS,请参照以下步骤:
1. 直接或通过 SSH 登录服务器。
2. 安装 PhantomJS 及其依存项:
sudo apt-get install phantomjs
3. 浏览到 /usr/local/share 目录:
cd /usr/local/share
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
|
如果您的 Linux 操作系统是 64 位架构,请确保下载 64 位版本的发行版。
|
5. 将其提取到 /usr/local/share:
sudo tar xvfj phantomjs-2.1.1-linux-x86_64.tar.bz2
6. 创建符号链接,使该二进制文件可从任何位置访问:
sudo ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64 /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/bin/phantomjs
7. 安装 fontconfig 依存项:
sudo apt-get install fontconfig
8. 验证已安装的 PhantomJS 版本:
phantomjs --version
上述命令必须显示 2.1.1。