diff --git a/theia/ide/theia-base/Dockerfile b/theia/ide/theia-base/Dockerfile index fd66f952f..a16e2ae5b 100644 --- a/theia/ide/theia-base/Dockerfile +++ b/theia/ide/theia-base/Dockerfile @@ -33,7 +33,7 @@ RUN set -ex; \ libffi-dev libexpat1-dev \ libgdbm-dev liblzma-dev zlib1g-dev \ libsqlite3-dev libssl-dev openssl \ - libsecret-1-0 sqlite3 bzip2; \ + libsecret-1-0 sqlite3 libbz2-dev bzip2; \ apt remove -y python python-pip python3-pip python3; \ cd /; \ wget https://www.python.org/ftp/python/$PY_VERSION/Python-$PY_VERSION.tgz; \ diff --git a/theia/ide/theia-xv6/Dockerfile b/theia/ide/theia-xv6/Dockerfile index f7e5fb55f..a07902c3a 100644 --- a/theia/ide/theia-xv6/Dockerfile +++ b/theia/ide/theia-xv6/Dockerfile @@ -6,9 +6,19 @@ USER root RUN set -ex; \ apt-get update; \ apt-get install -y --no-install-recommends \ - gdb git make cmake \ + git make cmake \ gcc-multilib g++-multilib libc6-dev \ - clangd qemu-system-i386; \ + clangd qemu-system-i386 libgmp-dev; \ + cd /; \ + wget https://ftp.gnu.org/gnu/gdb/gdb-11.2.tar.xz; \ + tar xJf gdb-11.2.tar.xz; \ + rm gdb-11.2.tar.xz; \ + cd gdb-11.2; \ + ./configure --with-python=python3.10 --prefix=/usr/local; \ + make -j $(nproc); \ + make install; \ + cd ..; \ + rm -rf gdb-11.2; \ echo 'set auto-load safe-path /' > /etc/anubis/skel/.gdbinit; \ echo 'source /opt/pwndbg/gdbinit.py' >> /etc/anubis/skel/.gdbinit; \ git clone https://github.com/pwndbg/pwndbg.git /opt/pwndbg; \