Skip to content

fix: v1.8.3 - build sodium + ship pecl on Linux#18

Merged
devhardiyanto merged 2 commits into
mainfrom
fix/v1.8.3-linux-sodium-pecl
Jun 22, 2026
Merged

fix: v1.8.3 - build sodium + ship pecl on Linux#18
devhardiyanto merged 2 commits into
mainfrom
fix/v1.8.3-linux-sodium-pecl

Conversation

@devhardiyanto

Copy link
Copy Markdown
Owner

Problem

On Linux, two missing ./configure flags break common Laravel setups:

  1. ext-sodium never compiled--with-sodium was absent. composer install fails on packages like lcobucci/jwt / kreait/firebase-tokens with "ext-sodium is missing from your system".
  2. pecl never installed--with-pear was absent. phpvm ext install <name> and phpvm ext laravel (redis via PECL) fail with "pecl not found. It should be installed with PHP."

Fix

  • Add --with-sodium and --with-pear to the build's configure_opts.
  • Add libsodium dev headers to the dependency hints (apt / dnf / yum / pacman / zypper).
  • Bump version to 1.8.3.

Windows is unaffected — it uses prebuilt binaries that already bundle sodium and fetch PECL DLLs.

Note: existing installed versions must be rebuilt to pick up the new flags (phpvm uninstall <ver> && phpvm install <ver>).

🤖 Generated with Claude Code

devhardiyanto and others added 2 commits June 22, 2026 16:09
The Linux from-source build omitted two things that break common
Laravel projects:

- `--with-sodium` was missing, so ext-sodium was never compiled.
  Packages like lcobucci/jwt require ext-sodium and composer install
  fails with "ext-sodium is missing from your system".
- `--with-pear` was missing, so the `pecl` binary was never installed.
  `phpvm ext install <name>` and `phpvm ext laravel` (redis via PECL)
  failed with "pecl not found. It should be installed with PHP."

Also add libsodium dev headers to the dependency hints for apt / dnf /
yum / pacman / zypper.

Windows is unaffected (it uses prebuilt binaries that already bundle
sodium and fetch PECL DLLs).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@devhardiyanto devhardiyanto merged commit 2adc86a into main Jun 22, 2026
3 checks passed
@devhardiyanto devhardiyanto deleted the fix/v1.8.3-linux-sodium-pecl branch June 22, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant