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.

Error loading shared library ld-linux-x86-64.so.2 on Alpine

See original GitHub issue

What version of Next.js are you using?

12.0.2

What version of Node.js are you using?

16.x

What browser are you using?

none

What operating system are you using?

alpine

How are you deploying your application?

next build

Describe the Bug

next 12.0.2 app is failing to build on Alpine linux with following error. It was first appeared in 12.0.0, then fixed in 12.0.1. Now it’s back in 12.0.2.

Error: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by ....)

Expected Behavior

next build should work

To Reproduce

create next app using 12.0.2, then try to build on Alpine linux.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:20
  • Comments:44 (15 by maintainers)

github_iconTop GitHub Comments

21reactions
timneutkenscommented, Nov 4, 2021

Thanks for confirming @mtsewrs, we’ll get it out on stable soon (today/tomorrow) 👍 Going to close this issue as we close issues when the fix has landed 👍

9reactions
benkiefercommented, Nov 3, 2021

Can this be re-opened?

#14 3.162 Error: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /usr/src/app/node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node)
#14 3.162     at Object.Module._extensions..node (internal/modules/cjs/loader.js:1144:18)
#14 3.162     at Module.load (internal/modules/cjs/loader.js:950:32)
#14 3.162     at Function.Module._load (internal/modules/cjs/loader.js:790:12)
#14 3.162     at Module.require (internal/modules/cjs/loader.js:974:19)
#14 3.162     at require (internal/modules/cjs/helpers.js:93:18)
#14 3.162     at Object.<anonymous> (/usr/src/app/node_modules/next/dist/build/swc/index.js:29:20)
#14 3.162     at Module._compile (internal/modules/cjs/loader.js:1085:14)
#14 3.162     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
#14 3.162     at Module.load (internal/modules/cjs/loader.js:950:32)
#14 3.162     at Function.Module._load (internal/modules/cjs/loader.js:790:12) {
#14 3.162   code: 'ERR_DLOPEN_FAILED'

on 12.0.2 Docker image: node:14.18.1-alpine

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error loading shared library ld-linux-x86-64.so.2 - Julien Voisin
Error loading shared library ld-linux-x86-64.so.2: on Alpine Linux ... Since I've encountered this issue so much, here is how to fix it:.
Read more >
lib64/ld-linux-x86-64.so.2: No such file or directory error
If the elasticsearch distribution you are trying to install is for x86_64, then it attempts to link to the x86-64-native ld.so, ...
Read more >
Virgil crypto on Alpine linux v3.8
Let's look at the following error message: Error loading shared library ld-linux-x86-64.so.2 . We need to figure out where ld-linux-x86-64.so.2 file resides.
Read more >
Alpine Linux packages
File, Package, Branch, Repository, Architecture. /lib/ld-linux-x86-64.so.2, gcompat, edge, community · x86_64. /lib64/ld-linux-x86-64.so.2, gcompat, edge ...
Read more >
Running Spark in Docker image with Alpine Linux 3.9.0 ...
... /tmp/snappy-1.1.7-2b4872f1-7c41-4b84-bda1-dbcb8dd0ce4c-libsnappyjava.so: Error loading shared library ld-linux-x86-64.so.2: Noded by ...
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