Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unrar and rar no longer supported in nextcloud aio #109

Open
leosamuele221 opened this issue Jan 6, 2024 · 1 comment
Open

unrar and rar no longer supported in nextcloud aio #109

leosamuele221 opened this issue Jan 6, 2024 · 1 comment

Comments

@leosamuele221
Copy link

leosamuele221 commented Jan 6, 2024

Hi,
I'm using nextcloud AIO, the nextcloud container uses Alpine Linux v3.18 that dont support unrar (https://pkgs.alpinelinux.org/packages?name=unrar&branch=v3.18&repo=&arch=&maintainer=)
In fact, support for unrar in alpine linux was removed from v3.15 and now is totally abandoned

Very similar story for php rar extension:
nextcloud aio uses PHP 8.1 while rar extension is supported at most by PHP 8.0 (https://pecl.php.net/package-changelog.php?package=rar see v4.2.0)

There is actually no alternatives to this in alpine linux 3.18
I suggest to move everything to p7zip wich can only extract rar (https://7-zip.org/) but it's better than nothing.

Also this is my error log when trying to install php rar extension:

Installing PHP extension rar ...
error: /usr/src/php/ext/rar does not exist

usage: /usr/local/bin/docker-php-ext-install [-jN] [--ini-name file.ini] ext-name [ext-name ...]
   ie: /usr/local/bin/docker-php-ext-install gd mysqli
       /usr/local/bin/docker-php-ext-install pdo pdo_mysql
       /usr/local/bin/docker-php-ext-install -j5 gd mbstring mysqli pdo pdo_mysql shmop

if custom ./configure arguments are necessary, see docker-php-ext-configure

Possible values for ext-name:
bcmath bz2 calendar ctype curl dba dl_test dom enchant exif ffi fileinfo filter ftp gd gettext gmp hash iconv imap intl json ldap mbstring mysqli oci8 odbc opcache pcntl pdo pdo_dblib pdo_firebird pdo_mysql pdo_oci pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix pspell readline reflection session shmop simplexml snmp soap sockets sodium spl standard sysvmsg sysvsem sysvshm tidy tokenizer xml xmlreader xmlwriter xsl zend_test zip

Some of the above modules are already compiled into PHP; please check
the output of "php -i" to see which modules are already loaded.
Could not install rar from core. Trying to install from PECL...
error: 'rar' does not exist

usage: /usr/local/bin/docker-php-ext-enable [options] module-name [module-name ...]
   ie: /usr/local/bin/docker-php-ext-enable gd mysqli
       /usr/local/bin/docker-php-ext-enable pdo pdo_mysql
       /usr/local/bin/docker-php-ext-enable --ini-name 0-apc.ini apcu apc

Possible values for module-name:
apcu.so bcmath.so bz2.so exif.so gd.so gmp.so imagick.so imap.so intl.so ldap.so memcached.so opcache.so pcntl.so pdo_pgsql.so pgsql.so redis.so smbclient.so sodium.so sysvsem.so zip.so

Some of the above modules are already compiled into PHP; please check
the output of "php -i" to see which modules are already loaded.
Could also not install rar from PECL. The PHP extensions was not installed!
@komoricodrutz
Copy link

@leosamuele221
I had similar issue on debian bookworm. "no installation candidate".
Try and find the package "unrar-free" in repos.
Got this info from here
Installing unrar-free helped in this context

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

No branches or pull requests

2 participants