如何在 AWS 上安装 FTGL Linux 2

How to install FTGL on AWS Linux 2

我有一个 EC2 实例 运行ning,所以我可以在 lambda 上将一些 c++ 程序编译为 运行。我正在尝试在我的 EC2 实例上构建 opencascade,但 运行 遇到以下错误:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FTGL_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/ec2-user/oce/adm/cmake/TKOpenGl
FTGL_LIBRARY (ADVANCED)
    linked by target "TKOpenGl" in directory /home/ec2-user/oce/adm/cmake/TKOpenGl

我通过安装所需的库修复了类似的错误,但我似乎找不到 FTGL 的 yum 包。我试过以下方法:

sudo yum install ftgl
sudo yum install ftgl-dev
sudo yum install ftgl-devel
sudo yum install libftgl-dev

我也搜索过没有成功:

yum search *ftgl*

我在哪里可以找到这个库来将它安装到我的 EC2 实例上?

EPEL. To enable it and install on Amazon Linux 2中的包:

sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

sudo yum-config-manager --enable epel

sudo yum install ftgl-devel