Skip to content

Missing libraries, README.md PATH incorrect #2

@tomchiverton

Description

@tomchiverton
execFile("/opt/bin/phantomjs", ["-h"], null, function (err, stdout, stderr) {
  console.log("webshotCreator out:", JSON.stringify(stdout))
  console.log("webshotCreator err:", JSON.stringify(stderr))
})

Fails saying

2021-01-26 10:16:11.669 (+00:00) 7aa98208-60a4-466a-b8b6-0a73a757ae44 INFO webshotCreator err: "/opt/bin/phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory\n"

Also

export PATH="/opt/phantom-js/bin/:$PATH"; # Add the layer in the path

should be

export PATH="/opt/bin/:$PATH"; # Add the layer in the path

at least for how it's being deployed for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions