Lib64 ld linux x86 64 so 2 no such file or directory

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu-x86_64: Could not open ‘/lib64/ld-linux-x86-64.so.2’: No such file or directory #12

qemu-x86_64: Could not open ‘/lib64/ld-linux-x86-64.so.2’: No such file or directory #12

Comments

% **docker run -e URL=https://jsonplaceholder.typicode.com -v $(pwd)/results:/usr/src/app/results check-accessibility:latest** node:internal/process/promises:261 triggerUncaughtException(err, true /* fromPromise */); ^ browserType.launch: Protocol error (Browser.getVersion): Browser closed. ==================== Browser output: ==================== /ms-playwright/chromium-857950/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --user-data-dir=/tmp/playwright_chromiumdev_profile-gnq6ei --remote-debugging-pipe --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-startup-window pid=25 [pid=25][err] qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory =========================== logs =========================== /ms-playwright/chromium-857950/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --user-data-dir=/tmp/playwright_chromiumdev_profile-gnq6ei --remote-debugging-pipe --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-startup-window pid=25 [pid=25][err] qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory ============================================================ Note: use DEBUG=pw:api environment variable to capture Playwright logs. Error at Object.captureStackTrace (/usr/src/app/node_modules/playwright/lib/utils/stackTrace.js:48:19) at Connection.sendMessageToServer (/usr/src/app/node_modules/playwright/lib/client/connection.js:69:48) at Proxy. (/usr/src/app/node_modules/playwright/lib/client/channelOwner.js:64:61) at /usr/src/app/node_modules/playwright/lib/client/browserType.js:64:67 at BrowserType._wrapApiCall (/usr/src/app/node_modules/playwright/lib/client/channelOwner.js:77:34) at BrowserType.launch (/usr/src/app/node_modules/playwright/lib/client/browserType.js:55:21) at /usr/src/app/test-a11y.js:47:64 at step (/usr/src/app/test-a11y.js:33:23) at Object.next (/usr/src/app/test-a11y.js:14:53) at /usr/src/app/test-a11y.js:8:71 Node.js v18.16.0 SyntaxError: accessibility-results.json: Unexpected end of JSON input at JSON.parse () at Object._readFile (/usr/src/app/node_modules/jsonfile/index.js:25:16) at async /usr/src/app/node_modules/@naturalcycles/json2html/dist/json2html.js:35:22 at async /usr/src/app/node_modules/@naturalcycles/js-lib/dist/promise/pMap.js:80:42 

The text was updated successfully, but these errors were encountered:

Читайте также:  Linux dhcp server ubuntu

Источник

Emulate x86 on rasbian

I want to run a Starbound server on my Raspberry Pi running rasbian.
The server is built to run on an x86 architecture, so my goal is to emulate an x86 architecture to run the server. Edit: box86 does not run 64-bit x86 binary

To do so, I tried using box86.
It allowed to run a x86 program (steamcmd the program that allowed me to download the server). But running the server resulted in

bash: ./program: cannot execute binary file: Exec format error 
sudo apt install qemu-user qemu-system qemu sudo qemu-x86_64 starbound_server 
/lib64/ld-linux-x86-64.so.2: No such file or directory 

It seems like some dynamic library are missing.
I thought that those libraries would be shipped with qemu, so I tried to use the -L argument to specify a different ld- file. But it seems like the program only look at the /lib64 folder.
My last try was to create this folder using lib files from an x86 system. But this results in

ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-$.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored. 

To fix this problem, people suggest to change /etc/ld.so.preload to remove the reference to libarmmem , but this file does not exist on the rasbian system. I’d like to know if there is a better way to emulate the x86 program?
If there is none, where to find the appropriate libraries to fill the /lib64 folder? Here are some infos I got with readelf.

machine: Advanced Micro Devices X86-64 type: EXEC class: ELF64 
[libpthread.so.0] [libdl.so.2] librt.so.1] [libm.so.6] [libc.so.6] [ld-linux-x86-64.so.2] 

Источник

qemu-x86_64: Could not open ‘/lib64/ld-linux-x86-64.so.2’: No such file or directory

I have a Rancher Deskop(dockerd) on M1 MacOS and when I am trying to build below dockerfile I am getting an error such as below. Here is the command how I am trying to build the image docker build -t te-grafana-dashboards-toolchain —no-cache . I tried to change the platforms but nonae of them worked for me. I am a bit lost about this platform issue for M1 but any help will be appreciated, What I am doing wrong? What might the root cause of this?

Removing intermediate container 70af516d5d6b ---> a69229847153 Step 5/6 : RUN GO111MODULE="on" go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb; ln -s $(go env GOPATH)/bin/jb /usr/bin/jb ---> Running in 13545862fffe qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory Removing intermediate container 13545862fffe 
FROM --platform=linux/amd64 ubuntu:focal RUN apt update; apt install -y curl jq build-essential python3.8 python3-pip docker-compose jsonnet bison mercurial RUN ln -s /usr/bin/python3.8 /usr/bin/python RUN curl -OL https://golang.org/dl/go1.17.linux-amd64.tar.gz; mkdir /etc/golang; tar -xvzf go1.17.linux-amd64.tar.gz -C /etc/golang; ln -s /etc/golang/go/bin/go /usr/bin/go; rm -f go1.17.linux-amd64.tar.gz RUN GO111MODULE="on" go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb; ln -s $(go env GOPATH)/bin/jb /usr/bin/jb WORKDIR /workspace 

Источник

Читайте также:  Hplip установка alt linux

Could not open ‘/lib64/ld-linux-x86-64.so.2’ on CentOS8 container

I’ve taken a look online but the people with similar errors, seem to be in quite different scenarios that I can’t replicate in this case. What can I do to actually install golang on this CentOS container?

1 Answer 1

Hope you are enjoying you containers journey,

But I also have some suggestions, that could help you: Since i dont have your dockerfile, i tried with this one:

FROM centos:8 RUN yum -y update && yum -y install wget RUN wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz RUN sudo tar -C /usr/local -xf go1.13.4.linux-amd64.tar.gz RUN echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bash_profile RUN source ~/.bash_profile 
❯ docker build -t so-go-version-centos8 . 

The problem is that with the centos8 docker images, i couldn’t update or install anything: (https://serverfault.com/questions/1091791/the-latest-centos8-docker-image-cannot-run-yum)

❯ docker run -it centos:8 [root@d7c652e4ac65 /]# yum install wget Failed to set locale, defaulting to C.UTF-8 CentOS Linux 8 - AppStream 0.0 B/s | 0 B 00:00 Errors during downloading metadata for repository 'appstream': - Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=container [Could not resolve host: mirrorlist.centos.org] Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=container [Could not resolve host: mirrorlist.centos.org] [root@d7c652e4ac65 /]# yum install golang Failed to set locale, defaulting to C.UTF-8 CentOS Linux 8 - AppStream 95 B/s | 38 B 00:00 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist [root@d7c652e4ac65 /]# yum update Failed to set locale, defaulting to C.UTF-8 CentOS Linux 8 - AppStream 

So I decided to avoid the system update and the installation of wget and use the dockerfile ADD command (the difference between ADD and COPY is that we can directly, with ADD, copy things from URLs instead of only our host filesystem) and adding go path to $PATH env variable with dockerfile ENV command, here is how my df looks like:

FROM centos:8 ADD https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz . RUN tar -C /usr/local -xf go1.13.4.linux-amd64.tar.gz ENV PATH=$PATH:/usr/local/go/bin 
❯ docker build --no-cache -t so-go-version-centos8 -f dockerfile-centos8 . [+] Building 14.2s (8/8) FINISHED => [internal] load build definition from dockerfile-centos8 0.0s => => transferring dockerfile: 218B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/centos:8 1.0s => CACHED https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz 0.0s => CACHED [1/3] FROM docker.io/library/centos:8@sha256:a27fd8080b517143cbbbab9dfb7c8571c40d67d534bbdee55bd6c473f432b177 0.0s => [2/3] ADD https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz . 2.2s => [3/3] RUN tar -C /usr/local -xf go1.13.4.linux-amd64.tar.gz 7.5s => exporting to image 3.2s => => exporting layers 3.2s => => writing image sha256:26a8caea62889668498ca1d513b7db2c95b084a1d0020512e0c16dee365a880c 0.0s => => naming to docker.io/library/so-go-version-centos8 0.0s    /mnt/c/U/b/De/w/p/kind/manifests/stackoverflow/centos8-container-go-version ─────────────────────── 15s   02:21:46  ❯ docker run -it so-go-version-centos8 [root@78947ab8771a /]# go version go version go1.13.4 linux/amd64 [root@78947ab8771a /]# 

Centos8 docker image is then limited since i cant install what i need, So you can replace it by centos:7 docker image instead.

Читайте также:  Аналоги cisco packet tracer linux

solution 2: try yum install golang as @Para suggested, you could also directly install golang with yum, but «yum install -y golang» will not work. SO we have to install it manually, as we have done.

solution3: You can directly use an official golang docker image, i.e:

❯ docker run -it golang:buster root@ed9f31e4a45a:/go# go version go version go1.18.1 linux/amd64 root@ed9f31e4a45a:/go# 

Hope this has helped you, bguess.

Источник

Оцените статью
Adblock
detector