Skip to content

Compile error with node native module #4

@adam-nielsen

Description

@adam-nielsen

It says this supports Node native modules but it doesn't seem to. If I put this into package.json in an empty directory and run awslambda-npm-install, it fails:

{
  "dependencies": {
    "netcdf4": "^0.4.1"
  }
}

I already tried this myself before stumbling across this project and I got the libraries installed into the Amazon Linux instance, but I'm stuck trying to figure out whether I need to compile static or shared libraries. I tried static but I get -fPIC errors, and if I try shared I'm not sure how to set up the library search path in Lambda.

Have you managed to compile any Node native modules with the project? If so, were they static, shared, or were they set up some other way? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions