Skip to content

Commit 4d28258

Browse files
committed
Drop libxml2 from apt install so it works on newer Ubuntu
> [!CAUTION] > This is preliminary since I can't test it on my Mac. But some research and AI suggested this was the best solution, so I'm curious to get feedback. A student reported that the rbenv dependency install fails on both Windows (WSL) and Ubuntu: sudo apt install -y build-essential tklib zlib1g-dev libssl-dev \ libffi-dev libxml2 libxml2-dev libxslt1-dev libreadline-dev libyaml-dev libxml2 2.14 changed its library version, so Ubuntu 25.10 and later renamed the runtime package from libxml2 to libxml2-16. On those releases `libxml2` no longer exists and apt aborts the whole command. The feedback suggested replacing libxml2 with libxml2-16, but that package doesn't exist on Ubuntu 22.04/24.04, so it would break the command for students on those versions. Instead, drop the explicit runtime package: libxml2-dev depends on the right runtime library on each release (libxml2 on older Ubuntu, libxml2-16 on newer), so apt _should_ install it automatically. Or so I'm told. This is preliminary: it hasn't been tested on Ubuntu yet (written on macOS). Ideally, we would test on 24.04 and 26.04/WSL before merging. But no idea how we do that
1 parent 5eb48f3 commit 4d28258

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎_partials/cn/rbenv.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rm -rf ~/.rbenv
1414
然后在终端里运行:
1515

1616
```bash
17-
sudo apt install -y build-essential tklib zlib1g-dev libssl-dev libffi-dev libxml2 libxml2-dev libxslt1-dev libreadline-dev libyaml-dev
17+
sudo apt install -y build-essential tklib zlib1g-dev libssl-dev libffi-dev libxml2-dev libxslt1-dev libreadline-dev libyaml-dev
1818
```
1919

2020
```bash

‎_partials/es/rbenv.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rm -rf ~/.rbenv
1414
Luego ejecuta lo siguiente en tu terminal:
1515

1616
```bash
17-
sudo apt install -y build-essential tklib zlib1g-dev libssl-dev libffi-dev libxml2 libxml2-dev libxslt1-dev libreadline-dev libyaml-dev
17+
sudo apt install -y build-essential tklib zlib1g-dev libssl-dev libffi-dev libxml2-dev libxslt1-dev libreadline-dev libyaml-dev
1818
```
1919

2020
```bash

‎_partials/fr/rbenv.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rm -rf ~/.rbenv
1414
Puis dans le terminal, exécute :
1515

1616
```bash
17-
sudo apt install -y build-essential tklib zlib1g-dev libssl-dev libffi-dev libxml2 libxml2-dev libxslt1-dev libreadline-dev libyaml-dev
17+
sudo apt install -y build-essential tklib zlib1g-dev libssl-dev libffi-dev libxml2-dev libxslt1-dev libreadline-dev libyaml-dev
1818
```
1919

2020
```bash

‎_partials/pt/rbenv.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rm -rf ~/.rbenv
1414
Então no terminal, execute:
1515

1616
```bash
17-
sudo apt install -y build-essential tklib zlib1g-dev libssl-dev libffi-dev libxml2 libxml2-dev libxslt1-dev libreadline-dev libyaml-dev
17+
sudo apt install -y build-essential tklib zlib1g-dev libssl-dev libffi-dev libxml2-dev libxslt1-dev libreadline-dev libyaml-dev
1818
```
1919

2020
```bash

‎_partials/rbenv.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rm -rf ~/.rbenv
1414
Then in the terminal, run:
1515

1616
```bash
17-
sudo apt install -y build-essential tklib zlib1g-dev libssl-dev libffi-dev libxml2 libxml2-dev libxslt1-dev libreadline-dev libyaml-dev
17+
sudo apt install -y build-essential tklib zlib1g-dev libssl-dev libffi-dev libxml2-dev libxslt1-dev libreadline-dev libyaml-dev
1818
```
1919

2020
```bash

0 commit comments

Comments
 (0)