#author("2022-05-13T17:44:47+09:00","default:kuji","kuji")
#author("2022-05-19T08:29:12+09:00","default:kuji","kuji")
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*munin and Nextcloud [#u35ed711]

munin が動作停止しているサーバがあって、そこにはNextcloud が正常稼働している。Nextcloud は、ports では無く手動インストールしているので、迂闊に pkg autoremove
すると、停止するなど影響がでかねないので、要注意。ということで、Nextcloud のports がどんなライブラリが必要かというと、

/usr/ports/www/nextcloud/Makefile

 ORTNAME=	nextcloud
 PORTVERSION=	23.0.4
 CATEGORIES=	www
 MASTER_SITES=	https://download.nextcloud.com/server/releases/
 PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
 DIST_SUBDIR=	${PORTNAME}
 
 MAINTAINER=	brnrd@FreeBSD.org
 COMMENT=	Personal cloud which runs on your own server
 
 LICENSE=	AGPLv3
 
 I GNORE_WITH_PHP=81
 
 USES=		cpe gettext-runtime php:flavors,web tar:bzip2
 USE_PHP=	bcmath bz2 ctype curl dom fileinfo filter gd gmp hash iconv \
 		json mbstring pcntl pdo posix session simplexml xml xmlreader \
 		xmlwriter xsl zip zlib

となっている。2022年5月6日時点では、Nextcloud 24.0.0 が最新なので、一個前のバージョンの様。でも、良い感じでキャッチアップしてるかも。ports版にしてみようかしらん?
ともあれ、munin の動作言語、python 関連は使用していない模様。

手動インストール版のnextcloud 23.0.4 のバックアップを取って、ports 版を上書きし、package delete すれば、依存関係アプリが正確に把握出来るかも?

*ports 版 Nextcloud install [#j98c7c6c]

 portinstall -f www/nextcloud

これで、パッケージ名、nextcloud-php80-23.0.4 がインストールされた。

  # pkg delete nextcloud-php80-23.0.4
 Updating database digests format: 100%
 Checking integrity... done (0 conflicting)
 Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):
 
 Installed packages to be REMOVED:
        nextcloud-php80: 23.0.4
 
 Number of packages to be removed: 1
 
 The operation will free 419 MiB.
 
 Proceed with deinstalling packages? [y/N]:
 
 # pkg info -r nextcloud-php80-23.0.4
 nextcloud-php80-23.0.4:

と、依存関係は素っ気ないw。

インストール時の記録からは、以下のパッケージが必要の模様。

 ===>   nextcloud-php80-23.0.4 depends on package: php80-pecl-APCu>0 - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/include/php/main/php.h - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/bcmath.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/bz2.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/ctype.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/curl.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/dom.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/fileinfo.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/filter.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/gd.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/gmp.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/iconv.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/mbstring.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/pcntl.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/pdo.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/posix.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/session.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/simplexml.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/xml.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/xmlreader.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/xmlwriter.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/xsl.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/zip.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/zlib.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/exif.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/intl.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/ldap.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/pdo_mysql.so - found
 ===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/opcache.so - found
 ===>   Generating temporary packing list
 install  -m 555 /usr/ports/www/nextcloud/work-php80/config.sample.php  /usr/ports/www/nextcloud/work-php80/stage/usr/local/www/nextcloud/config/config.sample.php


いずれにせよ、python のライブラリは不要の模様。ということで、munin が動作しないサーバの、python38 と munin を入れ直してみる。

*munin [#wfbc6ae0]
error は、次のようなもの。

/ver/log/munin/munin-node.log
 2022/05/06-13:56:07 Munin::Node::Server (type Net::Server::Fork) starting! pid(79553)
 2022/05/06-13:56:07 panic: XSUB Socket6::getaddrinfo (Socket6.c) failed to extend arg stack: base=801a12518, sp=801a12570, hwm=801a12558
 
   at line 78 in file /usr/local/lib/perl5/site_perl/Net/Server/Proto.pm
 2022/05/06-13:56:07 Server closing!

*pkg install python38 [#mc3b6bfb]
 Updating FreeBSD repository catalogue...
 FreeBSD repository is up to date.
 All repositories are up to date.
 Checking integrity... done (0 conflicting)
 The following 1 package(s) will be affected (of 0 checked):
 
 New packages to be INSTALLED:
         python38: 3.8.13
 
 Number of packages to be installed: 1
 
 The process will require 128 MiB more space.
 
 Proceed with this action? [y/N]: y
 [1/1] Installing python38-3.8.13...
 [1/1] Extracting python38-3.8.13: 100%
 =====
 Message from python38-3.8.13:
 
 --
 Note that some standard Python modules are provided as separate ports
 as they require additional dependencies. They are available as:
 
 py38-gdbm       databases/py-gdbm@py38
 py38-sqlite3    databases/py-sqlite3@py38
 py38-tkinter    x11-toolkits/py-tkinter@py38
 
 root@blackcube:/usr/ports/lang/python38:22_05_07:8:08 #

* /usr/local/bin/ld: /usr/bin/../lib/LLVMgold.so: error loading plugin: Cannot open "/usr/bin/../lib/LLVMgold.so" [#cd823c34]

[[LLVM gold plugin has failed to create LTO module]] SOLVED

https://forums.freebsd.org/threads/certbot-python3-7-dependency-error.76808/

 root@blackcube:~:22_05_13:17:16 # pkg shlib -qR libffi.so.7
 python38-3.8.13
 py38-cffi-1.15.0_1
 glib-2.70.4_6,2
 gobject-introspection-1.72.0_1,1
 p11-kit-0.24.1_1

----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS