Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js AWS Elastic Beanstalk为节点模块安装Poppler和Cairo_Node.js_Amazon Web Services_Amazon Elastic Beanstalk_Cairo_Poppler - Fatal编程技术网

Node.js AWS Elastic Beanstalk为节点模块安装Poppler和Cairo

Node.js AWS Elastic Beanstalk为节点模块安装Poppler和Cairo,node.js,amazon-web-services,amazon-elastic-beanstalk,cairo,poppler,Node.js,Amazon Web Services,Amazon Elastic Beanstalk,Cairo,Poppler,我有一个使用此PDF库的节点应用程序: 在安装说明中,您应该安装 sudo apt get安装libpoppler-qt5-dev libcairo2 dev 在默认的Beanstalk Amazon Linux发行版上,我无法使用apt get,但我在Amazon包repo中找到了poppler和cario。因此,在我的.ebextensions配置中,我有以下包 packages: yum: gcc: [] poppler: [] poppler-data: []

我有一个使用此PDF库的节点应用程序:

在安装说明中,您应该安装 sudo apt get安装libpoppler-qt5-dev libcairo2 dev

在默认的Beanstalk Amazon Linux发行版上,我无法使用apt get,但我在Amazon包repo中找到了poppler和cario。因此,在我的.ebextensions配置中,我有以下包

packages:
  yum:
    gcc: []
    poppler: []
    poppler-data: []
    cairo: []
但当我部署时,npm安装失败。。。你知道如何让这些库正常工作,让npm安装顺利完成吗

在eb-activity.log中,其内容如下:

Package Qt5Core was not found in the pkg-config search path.
  Perhaps you should add the directory containing `Qt5Core.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'Qt5Core' found
  Package Qt5Gui was not found in the pkg-config search path.
  Perhaps you should add the directory containing `Qt5Gui.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'Qt5Gui' found
  Package cairo was not found in the pkg-config search path.
  Perhaps you should add the directory containing `cairo.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'cairo' found
  Package poppler-qt5 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `poppler-qt5.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'poppler-qt5' found
  gyp: Call to 'pkg-config --libs Qt5Core Qt5Gui cairo poppler-qt5' returned exit status 1. while trying to load binding.gyp
  gyp ERR! configure error 
  gyp ERR! stack Error: `gyp` failed with exit code: 1
  gyp ERR! stack     at ChildProcess.onCpExit (/opt/elasticbeanstalk/node-install/node-v0.12.6-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16)
  gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
  gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
  gyp ERR! System Linux 3.14.48-33.39.amzn1.x86_64
  gyp ERR! command "node" "/opt/elasticbeanstalk/node-install/node-v0.12.6-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
  gyp ERR! cwd /tmp/deployment/application/node_modules/pdf-fill-form
  gyp ERR! node -v v0.12.6
  gyp ERR! node-gyp -v v2.0.1
  gyp ERR! not ok

“在pkg配置搜索路径中未找到包Qt5Core。”您还需要什么?你需要安装Qt5-devel软件包(其他软件包也一样)@UliSchlachter我不确定是否安装了所有软件包,但至少安装了一些列表中缺少的软件包(cairo)。cairo-devel?cairo-devel也安装了。最后,我转向docker部署解决方案,因为它对我来说更易于管理。谢谢你的帮助@UliSchlachter