question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing on amazonlinux fails

See original GitHub issue

I’m trying to install node-libcurl in an amazonlinux docker container. libcurl and libcurl-devel are both installed. But the build process is bailing trying to link libcurl-gnutls. That package doesn’t seem to be available for amazonlinux.

For reference sake I’m using amazonlinux because I’m building node-libcurl to run on an AWS Lambda container.

Here’s the relevant error:

> node-libcurl@1.3.2 install /cts-monitor-serverless/node_modules/node-libcurl
> node-pre-gyp install --fallback-to-build

[node-libcurl] Success: "/cts-monitor-serverless/node_modules/node-libcurl/lib/binding/node_libcurl.node" is installed via remote

> node-libcurl@1.3.2 postinstall /cts-monitor-serverless/node_modules/node-libcurl
> node scripts/postinstall

node-libcurl WARN Could not finish postinstall
node-libcurl ERR! Error: Command failed: node "/cts-monitor-serverless/node_modules/node-libcurl/lib/Curl.js"
module.js:604
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: libcurl-gnutls.so.4: cannot open shared object file: No such file or directory
    at Error (native)
    at Object.Module._extensions..node (module.js:604:18)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/cts-monitor-serverless/node_modules/node-libcurl/lib/Curl.js:28:15)
    at Module._compile (module.js:577:32)
    at Object.Module._extensions..js (module.js:586:10)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JCMaiscommented, May 2, 2019

The prebuilt version of the addon is now static linked against their dependencies. This is fixed on develop branch and on node-libcurl@next version, which is going to become v2 the following week.

1reaction
JCMaiscommented, Jul 3, 2018

Nop that is not expected, npm probably is not cleaning correctly the package before reinstalling. It’s a good idea to always remove the package before reinstalling.

I will keep that open so I can remember to take a look into that later on, thanks for reporting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot errors when using yum on AL1 or AL2 EC2 ...
Why am I receiving errors when using yum on my Amazon Elastic Compute Cloud (Amazon EC2) instance running Amazon Linux 1 or Amazon...
Read more >
Install on Amazon Linux EC2 fails. 'Requires: libc.so.6 ...
1. Output of caddy version : N/A (can't install it) · 2. How I run Caddy: N/A (cannot install it) · 3. The...
Read more >
install fails on Amazon Linux 2 · Issue #781 - GitHub
pyodbc simply won't install on my Amazon Linux 2 server. I've read in some old support issues here about needing python3-dev and unixodbc-dev ......
Read more >
Pip Install On Amazon Linux ec2 PEP 517 Error - Stack Overflow
This sounds more like a pip issue, it's unlikely that it relates to the EC2 itself. Try the following: python -m pip install...
Read more >
Problem installing MongoDB 6.0 on Amazon Linux 2
I would follow the general tutorial to Install MongoDB Community Edition on Amazon Linux and replace x86_64 with aarch64 . Thanks, Stennie.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found