On 2025/01/17 20:07, Lydia Sobot wrote:
> > xml is in the main php package and enabled by default
> >
> > iconv is in php-intl-$version, see /usr/local/share/doc/pkg-readmes/php*
> > for how to create symlinks to enable it after installing
oh actually, iconv is in the main php package too
> > Might get better help with explicit error messages
> It is complaining about mbstring, openssl, xml, dom, iconv, and tokenizer:
>
> % doas -u www composer install --no-dev
> PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring' (tried: /usr/local/lib/php-8.2/modules/mbstring (File not found), /usr/local/lib/php-8.2/modules/mbstring.so (File not found)) in Unknown on line 0
> PHP Warning: PHP Startup: Unable to load dynamic library 'openssl' (tried: /usr/local/lib/php-8.2/modules/openssl (File not found), /usr/local/lib/php-8.2/modules/openssl.so (File not found)) in Unknown on line 0
> PHP Warning: PHP Startup: Unable to load dynamic library 'xml' (tried: /usr/local/lib/php-8.2/modules/xml (File not found), /usr/local/lib/php-8.2/modules/xnl.s0 (File not found)) in Unknown on line 0
> PHP Warning: PHP Startup: Unable to load dynamic library 'dom' (tried: /usr/local/lib/php-8.2/modules/dom (File not found), /usr/local/lib/php-8.2/modules/dom.so (File not found)) in Unknown on line 0
> PHP Warning: PHP Startup: Unable to load dynamic library 'iconv' (tried: /usr/local/lib/php-8.2/modules/iconv (File not found), /usr/local/lib/php-8.2/modules/iconv.so (File not found)) in Unknown on line 0
> PHP Warning: PHP Startup: Unable to load dynamic library 'tokenizer' (tried: /usr/local/lib/php-8.2/modules/tokenizer (File not found), /usr/local/lib/php-8.2/modules/tokenizer.so (File not found)) in Unknown on line 0
>
> I'm wondering if this is Bookstack's Composer file itself complaining,
> or just Composer not being aware of OpenBSD including XML for instance
No idea what's happening there.
I have composer installed with pkg_add, then following the first
couple of instructions from
https://www.bookstackapp.com/docs/admin/installation/ I have this:
$ git clone https://github.com/BookStackApp/BookStack.git --branch release --single-branch
Cloning into 'BookStack'... remote: Enumerating objects: 67236, done. remote: Counting objects: 100% (192/192), done.
remote: Compressing objects: 100% (192/192), done. remote: Total 67236 (delta 0), reused 192 (delta 0), pack-reused 67044 (from 1)
Receiving objects: 100% (67236/67236), 41.74 MiB | 10.51 MiB/s, done. Resolving deltas: 100% (49843/49843), done. Updating files: 100% (2292/2292), done.
$ cd BookStack
$ composer install --no-dev
> @php -r "!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');"
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 110 installs, 0 updates, 0 removals
- Downloading aws/aws-crt-php (v1.2.7)
- Downloading dasprid/enum (1.0.6)
- Downloading bacon/bacon-qr-code (v3.0.1)
- Downloading doctrine/deprecations (1.1.4)
- Downloading masterminds/html5 (2.9.0)
- Downloading sabberworm/php-css-parser (v8.7.0)
- Downloading dompdf/php-svg-lib (1.0.0)
- Downloading dompdf/php-font-lib (1.0.1)
- Downloading dompdf/dompdf (v3.0.2)
- Downloading symfony/http-foundation (v6.4.16)
- Downloading intervention/gif (4.2.0)
- Downloading intervention/image (3.10.2)
- Downloading symfony/process (v6.4.15)
- Downloading knplabs/knp-snappy (v1.5.0)
- Downloading symfony/string (v6.4.15)
- Downloading symfony/service-contracts (v3.5.1)
- Downloading symfony/console (v6.4.17)
- Downloading voku/portable-ascii (2.0.3)
- Downloading tijsverkoyen/css-to-inline-styles (v2.3.0)
- Downloading symfony/var-dumper (v6.4.15)
- Downloading symfony/routing (v6.4.16)
- Downloading symfony/mime (v6.4.17)
- Downloading symfony/event-dispatcher-contracts (v3.5.1)
- Downloading egulias/email-validator (4.0.3)
- Downloading ssddanbrown/symfony-mailer (6.4.x-dev 0497d6e)
- Downloading symfony/error-handler (v6.4.17)
- Downloading symfony/http-kernel (v6.4.17)
- Downloading symfony/finder (v6.4.17)
- Downloading nunomaduro/termwind (v1.17.0)
- Downloading symfony/translation-contracts (v3.5.1)
- Downloading nesbot/carbon (2.72.6)
- Downloading monolog/monolog (3.8.1)
- Downloading league/commonmark (2.6.1)
- Downloading laravel/serializable-closure (v1.3.7)
- Downloading laravel/framework (v10.48.25)
- Downloading phpseclib/phpseclib (3.0.43)
- Downloading league/oauth1-client (v1.11.0)
- Downloading firebase/php-jwt (v6.10.2)
- Downloading laravel/socialite (v5.16.1)
- Downloading nikic/php-parser (v5.4.0)
- Downloading psy/psysh (v0.12.7)
- Downloading mtdowling/jmespath.php (2.8.0)
- Downloading aws/aws-sdk-php (3.336.8)
- Downloading league/flysystem-aws-s3-v3 (3.29.0)
- Downloading league/html-to-markdown (5.1.1)
- Downloading league/oauth2-client (2.8.0)
- Downloading robrichards/xmlseclibs (3.1.3)
- Downloading onelogin/php-saml (4.2.0)
- Downloading pragmarx/google2fa (v8.0.3)
- Downloading predis/predis (v2.3.0)
- Downloading socialiteproviders/manager (v4.8.0)
- Downloading socialiteproviders/discord (4.2.0)
- Downloading socialiteproviders/gitlab (4.1.0)
- Downloading socialiteproviders/microsoft-azure (5.2.0)
- Downloading socialiteproviders/okta (4.4.0)
- Downloading socialiteproviders/twitch (5.4.0)
- Downloading ssddanbrown/htmldiff (v1.0.4)
- Installing aws/aws-crt-php (v1.2.7): Extracting archive
- Installing dasprid/enum (1.0.6): Extracting archive
- Installing bacon/bacon-qr-code (v3.0.1): Extracting archive
- Installing psr/log (3.0.2): Extracting archive
- Installing psr/cache (3.0.0): Extracting archive
- Installing doctrine/event-manager (2.0.1): Extracting archive
- Installing doctrine/deprecations (1.1.4): Extracting archive
- Installing doctrine/cache (2.2.0): Extracting archive
- Installing doctrine/dbal (3.9.3): Extracting archive
- Installing doctrine/inflector (2.0.10): Extracting archive
- Installing doctrine/lexer (3.0.1): Extracting archive
- Installing masterminds/html5 (2.9.0): Extracting archive
- Installing symfony/polyfill-mbstring (v1.31.0): Extracting archive
- Installing sabberworm/php-css-parser (v8.7.0): Extracting archive
- Installing dompdf/php-svg-lib (1.0.0): Extracting archive
- Installing dompdf/php-font-lib (1.0.1): Extracting archive
- Installing dompdf/dompdf (v3.0.2): Extracting archive
- Installing symfony/polyfill-ctype (v1.31.0): Extracting archive
- Installing webmozart/assert (1.11.0): Extracting archive
- Installing dragonmantank/cron-expression (v3.4.0): Extracting archive
- Installing symfony/polyfill-php83 (v1.31.0): Extracting archive
- Installing symfony/deprecation-contracts (v3.5.1): Extracting archive
- Installing symfony/http-foundation (v6.4.16): Extracting archive
- Installing fruitcake/php-cors (v1.3.0): Extracting archive
- Installing guzzlehttp/promises (2.0.4): Extracting archive
- Installing symfony/polyfill-php80 (v1.31.0): Extracting archive
- Installing guzzlehttp/uri-template (v1.0.3): Extracting archive
- Installing intervention/gif (4.2.0): Extracting archive
- Installing intervention/image (3.10.2): Extracting archive
- Installing symfony/process (v6.4.15): Extracting archive
- Installing knplabs/knp-snappy (v1.5.0): Extracting archive
- Installing symfony/polyfill-intl-normalizer (v1.31.0): Extracting archive
- Installing symfony/polyfill-intl-grapheme (v1.31.0): Extracting archive
- Installing symfony/string (v6.4.15): Extracting archive
- Installing psr/container (2.0.2): Extracting archive
- Installing symfony/service-contracts (v3.5.1): Extracting archive
- Installing symfony/console (v6.4.17): Extracting archive
- Installing voku/portable-ascii (2.0.3): Extracting archive
- Installing phpoption/phpoption (1.9.3): Extracting archive
- Installing graham-campbell/result-type (v1.1.3): Extracting archive
- Installing vlucas/phpdotenv (v5.6.1): Extracting archive
- Installing symfony/css-selector (v6.4.13): Extracting archive
- Installing tijsverkoyen/css-to-inline-styles (v2.3.0): Extracting archive
- Installing symfony/var-dumper (v6.4.15): Extracting archive
- Installing symfony/polyfill-uuid (v1.31.0): Extracting archive
- Installing symfony/uid (v6.4.13): Extracting archive
- Installing symfony/routing (v6.4.16): Extracting archive
- Installing symfony/polyfill-intl-idn (v1.31.0): Extracting archive
- Installing symfony/mime (v6.4.17): Extracting archive
- Installing psr/event-dispatcher (1.0.0): Extracting archive
- Installing symfony/event-dispatcher-contracts (v3.5.1): Extracting archive
- Installing symfony/event-dispatcher (v6.4.13): Extracting archive
- Installing egulias/email-validator (4.0.3): Extracting archive
- Installing ssddanbrown/symfony-mailer (6.4.x-dev 0497d6e): Extracting archive
- Installing symfony/error-handler (v6.4.17): Extracting archive
- Installing symfony/http-kernel (v6.4.17): Extracting archive
- Installing symfony/finder (v6.4.17): Extracting archive
- Installing ramsey/collection (2.0.0): Extracting archive
- Installing brick/math (0.12.1): Extracting archive
- Installing ramsey/uuid (4.7.6): Extracting archive
- Installing psr/simple-cache (3.0.0): Extracting archive
- Installing nunomaduro/termwind (v1.17.0): Extracting archive
- Installing symfony/translation-contracts (v3.5.1): Extracting archive
- Installing symfony/translation (v6.4.13): Extracting archive
- Installing psr/clock (1.0.0): Extracting archive
- Installing carbonphp/carbon-doctrine-types (2.1.0): Extracting archive
- Installing nesbot/carbon (2.72.6): Extracting archive
- Installing monolog/monolog (3.8.1): Extracting archive
- Installing league/mime-type-detection (1.16.0): Extracting archive
- Installing league/flysystem (3.29.1): Extracting archive
- Installing league/flysystem-local (3.29.0): Extracting archive
- Installing nette/utils (v4.0.5): Extracting archive
- Installing nette/schema (v1.3.2): Extracting archive
- Installing dflydev/dot-access-data (v3.0.3): Extracting archive
- Installing league/config (v1.2.0): Extracting archive
- Installing league/commonmark (2.6.1): Extracting archive
- Installing laravel/serializable-closure (v1.3.7): Extracting archive
- Installing laravel/prompts (v0.1.25): Extracting archive
- Installing laravel/framework (v10.48.25): Extracting archive
- Installing paragonie/random_compat (v9.99.100): Extracting archive
- Installing paragonie/constant_time_encoding (v3.0.0): Extracting archive
- Installing phpseclib/phpseclib (3.0.43): Extracting archive
- Installing ralouphie/getallheaders (3.0.3): Extracting archive
- Installing psr/http-message (2.0): Extracting archive
- Installing psr/http-factory (1.1.0): Extracting archive
- Installing guzzlehttp/psr7 (2.7.0): Extracting archive
- Installing psr/http-client (1.0.3): Extracting archive
- Installing guzzlehttp/guzzle (7.9.2): Extracting archive
- Installing league/oauth1-client (v1.11.0): Extracting archive
- Installing firebase/php-jwt (v6.10.2): Extracting archive
- Installing laravel/socialite (v5.16.1): Extracting archive
- Installing nikic/php-parser (v5.4.0): Extracting archive
- Installing psy/psysh (v0.12.7): Extracting archive
- Installing laravel/tinker (v2.10.0): Extracting archive
- Installing mtdowling/jmespath.php (2.8.0): Extracting archive
- Installing aws/aws-sdk-php (3.336.8): Extracting archive
- Installing league/flysystem-aws-s3-v3 (3.29.0): Extracting archive
- Installing league/html-to-markdown (5.1.1): Extracting archive
- Installing league/oauth2-client (2.8.0): Extracting archive
- Installing robrichards/xmlseclibs (3.1.3): Extracting archive
- Installing onelogin/php-saml (4.2.0): Extracting archive
- Installing pragmarx/google2fa (v8.0.3): Extracting archive
- Installing predis/predis (v2.3.0): Extracting archive
- Installing socialiteproviders/manager (v4.8.0): Extracting archive
- Installing socialiteproviders/discord (4.2.0): Extracting archive
- Installing socialiteproviders/gitlab (4.1.0): Extracting archive
- Installing socialiteproviders/microsoft-azure (5.2.0): Extracting archive
- Installing socialiteproviders/okta (4.4.0): Extracting archive
- Installing socialiteproviders/twitch (5.4.0): Extracting archive
- Installing ssddanbrown/htmldiff (v1.0.4): Extracting archive
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
INFO Discovering packages.
laravel/socialite ................................................. DONE
laravel/tinker .................................................... DONE
nesbot/carbon ..................................................... DONE
nunomaduro/termwind ............................................... DONE
socialiteproviders/manager ........................................ DONE
59 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan cache:clear
INFO Application cache cleared successfully.
> @php artisan view:clear
INFO Compiled views cleared successfully.
$
...
Looks the same in -current and 7.6-stable.
If you're seeing errors when you do the same thing then please show
output from:
$ file /etc/php-8.2/*
$ diff -wu /usr/local/share/examples/php-8.2/php.ini-production /etc/php-8.2.ini
$ pkg_info | grep php
No comments:
Post a Comment