Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

php: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory #67

Open
deepaksinghcs14 opened this issue Feb 15, 2021 · 1 comment

Comments

@deepaksinghcs14
Copy link

Hi Guys I am trying to use php lambda layer to run my php script on lambda

Here's my python code

def lambda_handler(event, context):
    print(event["body"])
    result = subprocess.run(
        ['php', 'test.php', str(event['body'])],
        capture_output=False
    )
    print(result.stdout)
    return {
        'statusCode': 200,
        'body': json.dumps('Hello from Lambda!')
    }

But I am getting below error when executing this function

php: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory
@ronald2wing
Copy link

Cannot load xmlreader neither.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants