anza-xyz / anza-xyz/platform-tools

Add to README that platform-tools is built against Ubuntu 20.04

Abierto
#73 0 comentarios 2 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Shell
Estrellas
87
Forks
47
Merge medio
9 d 25 min
PR fusionados (30 d)
6

Descripción

I recently wanted to run platform-tools on my Linux machine (Arch Linux, x86_64). Unfortunately, this didn't work as there were shared libraries missing:

```
./lldb: error while loading shared libraries: libncurses.so.6: cannot open shared object file: No such file or directory
```

I couldn't find the right library anywhere and ran into errors when trying to compile it myself.

After a while, I realized that `platform-tools` is compiled in a Ubuntu 20.04 environment.

When I tried to run it inside a Docker container, it finally worked!

Here's the Dockerfile (it might help someone):
```
FROM ubuntu:20.04

RUN apt-get update && \
apt-get install -y \
wget \
python3-dev \
libxml2

RUN cd /root && \
mkdir -p .cache/solana/v1.37/platform-tools && \
wget "https://github.com/solana-labs/platform-tools/releases/download/v1.37/platform-tools-linux-x86_64.tar.bz2" && \
tar jxf platform-tools-linux-x86_64.tar.bz2 -C /root/.cache/solana/v1.37/platform-tools
```

To help other developers who might also run into this, we could add a note to the README saying that the Linux release is compiled in Ubuntu 20.04 and thus expects the (somewhat older) libraries that it ships with.

I'm aware that the workflow already contains `os: ubuntu-20.04`, but it may take a while to actually notice that.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.