前回clang-17環境が壊れていたために再コンパイルがまともにできなかった。
なのでサーバー環境の再構築をすることにした。
先ず、今迄のmacから別のmacに移動することにする。
どうせだから最新の環境を構築しよう。
1.webサーバーを入れる。
phpが85まで上がっていた(今まで84を使っていた)ので、そっちを入れる。
php85-apache2handlerを入れたらphp85とApache2が自動で入った。
2.databaseを入れる
MariaDBが11.4まで上がっていた(今までのは10.11)ので、そっちを新規で入れる。
此方はmariadb-11.4-serverを入れればmariadb-11.4が自動で入る。
3.mariadbのインターフェースを入れる。
mysql8-serverをインストールすればmysql8(8.4)も入る。
ここ迄で大体、web環境が揃う。
ここ迄で入ったportsは下記の通り。(結構入るよね)
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
port installed The following ports are currently installed: apache2 @2.4.66_1+preforkmpm (active) apr @1.7.5_0 (active) apr-util @1.6.3_2 (active) argon2 @20190702_1 (active) autoconf @2.72_0 (active) bison @3.8.2_2 (active) bison-runtime @3.8.2_0 (active) boost187 @1.87.0_4+no_single+no_static+python313 (active) brotli @1.2.0_0 (active) bzip2 @1.0.8_0 (active) cmake @3.31.10_0 (active) curl @8.19.0_0+brotli+http2+idn+psl+ssl+zstd (active) curl-ca-bundle @8.19.0_0 (active) cyrus-sasl2 @2.1.28_1+kerberos (active) db48 @4.8.30_5 (active) expat @2.7.4_0 (active) gdbm @1.26_0 (active) gettext-runtime @1.0_0 (active) gsed @4.9_1 (active) icu @78.3_1 (active) judy @1.0.5_1 (active) kerberos5 @1.22.2_0 (active) libarchive @3.8.5_2 (active) libb2 @0.98.1_1 (active) libcbor @0.13.0_0 (active) libcomerr @1.47.1_0 (active) libcxx @5.0.1_5 (active) libedit @20251016-3.1_0 (active) libevent @2.1.12_2 (active) libfetch @9.0.0-RELEASE_3 (active) libffi @3.4.8_0 (active) libfido2 @1.16.0_2 (active) libiconv @1.18_0 (active) libidn2 @2.3.8_0 (active) libpsl @0.21.5-20240306_0 (active) libtextstyle @1.0_0 (active) libtool @2.5.4_0 (active) libunistring @1.4.2_0 (active) libxml2 @2.15.2_1 (active) lmdb @0.9.35_0 (active) lz4 @1.10.0_0 (active) lzma @26.00_0 (active) lzo2 @2.10_0 (active) m4 @1.4.21_0 (active) mariadb-11.4 @11.4.7_1 (active) mariadb-11.4-server @11.4.7_0 (active) mhash @0.9.9.9_1 (active) mpdecimal @4.0.1_0 (active) mysql8 @8.4.8_1 (active) mysql8-server @8.4.8_0 (active) mysql_select @0.1.2_5 (active) ncurses @6.6_0 (active) nghttp2 @1.68.1_0 (active) openldap @2.6.13_0 (active) openssl @3_29 (active) openssl3 @3.6.1_0 (active) pcre @8.45_0 (active) pcre2 @10.47_0 (active) perl5 @5.34.3_0+perl5_34 (active) perl5.34 @5.34.3_1 (active) php85 @8.5.4_0+libedit (active) php85-apache2handler @8.5.4_0 (active) php_select @1.0_1 (active) pkgconfig @0.29.2_0 (active) protobuf3-cpp @3.21.12_2 (active) python3_select @0.1_0 (active) python3_select-313 @0.1_1 (active) python313 @3.13.12_0+lto+optimizations (active) python_select @0.3_10 (active) python_select-313 @0.3_1 (active) readline @8.3.003_0 (active) sqlite3 @3.51.3_0 (active) tcp_wrappers @20_5 (active) texinfo @7.3_0+perl5_34 (active) xz @5.8.2_0 (active) zlib @1.3.2_0 (active) zstd @1.5.7_0 (active) |
幾つか調べてみたけれど、大体最新が入っている模様。
perlは5.40があったけれど、インストールされたのは5.34.3だった。
pythonは3.14.3ではなく、3.13.12だった。3.15は3.15.0a7ってことだからalphaバージョンなのだろう。
次はmail server環境。
|
1 |
sudo port install postfix +dovecot-sasl +ldap +tls |
多分これだけでdovecotも入る筈。
……入らなかった。なら個別に入れようdovecot。
clamav-serverとclamsmtpを入れる。
その前にclang-22を標準のコンパイラにしようとしたが、
sudo port select clang mp-clang-22
Selecting ‘mp-clang-22’ for ‘clang’ failed: could not create new link “/opt/local/bin/c-index-test”: target “/opt/local/bin/c-index-test-mp-22” doesn’t exist
となって選択できない。
なのでclang-21を入れて標準化した。幾らか良くなるかな?
放って置いても仕方がないのでclang-22のセットはuninstallすることにした。
|
1 |
sudo port uninstall clang-22 clang_select-22 llvm-22 llvm_select-22 |
である。
続けてp5.34-mail-spamassassinを入れる。
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
sudo port install p5.34-mail-spamassassin ---> Upgrading already installed dependencies of p5.34-mail-spamassassin ---> Computing dependencies for p5.34-mail-spamassassin The following dependencies will be installed: db62 +sql gmp gnupg2 +openldap+pinentry_mac gnutls libassuan libgcrypt libgeoip libgpg-error libidn libksba libtasn1 libusb libusb-compat libxslt nettle npth p11-kit p5.34-algorithm-diff p5.34-archive-tar p5.34-authen-sasl p5.34-berkeleydb +db62 p5.34-clone p5.34-common-sense p5.34-compress-raw-bzip2 p5.34-compress-raw-lzma p5.34-compress-raw-zlib p5.34-crypt-openssl-bignum p5.34-crypt-openssl-random p5.34-crypt-openssl-rsa p5.34-crypt-urandom p5.34-cryptx p5.34-data-dump p5.34-data-optlist p5.34-dbd-sqlite p5.34-dbi p5.34-digest-bubblebabble p5.34-digest-hmac p5.34-digest-sha1 p5.34-email-address-xs p5.34-encode p5.34-encode-detect p5.34-encode-locale p5.34-error p5.34-file-listing p5.34-geo-ip p5.34-getopt-long p5.34-getopt-long-descriptive p5.34-gssapi p5.34-html-form p5.34-html-parser p5.34-html-tagset p5.34-http-cookies p5.34-http-daemon p5.34-http-date p5.34-http-message p5.34-http-negotiate p5.34-io p5.34-io-compress p5.34-io-compress-lzma p5.34-io-html p5.34-io-socket-ip p5.34-io-socket-ssl p5.34-io-string p5.34-io-zlib p5.34-json p5.34-json-xs p5.34-libwww-perl p5.34-lwp-mediatypes p5.34-lwp-protocol-https p5.34-mail-authenticationresults p5.34-mail-dkim p5.34-mail-spf p5.34-mailtools p5.34-math-bigint p5.34-math-complex p5.34-mime-base32 p5.34-mime-base64 p5.34-module-implementation p5.34-module-load p5.34-module-runtime p5.34-mozilla-ca p5.34-net p5.34-net-cidr-lite p5.34-net-dns p5.34-net-http p5.34-net-libidn p5.34-net-libidn2 p5.34-net-patricia p5.34-net-ssleay p5.34-netaddr-ip p5.34-params-util p5.34-params-validate p5.34-regexp-ipv6 p5.34-scalar-list-utils p5.34-socket p5.34-socket6 p5.34-sub-exporter p5.34-sub-install p5.34-sub-name p5.34-text-diff p5.34-time-hires p5.34-time-local p5.34-timedate p5.34-try-tiny p5.34-types-serialiser p5.34-uri p5.34-www-robotrules p5.34-xsloader pinentry-mac pth re2c Continue? [Y/n]: |
と、無茶入ってくる。
いやぁ、これは大変だわ(^_^;;
まぁ、いいかぁ〜、と思っていたらすぐに終わった。
mysqlやmariadbに比べて、ほぼバイナリをダウンロードするだけみたいだ。おまけに小さいファイルばかりのようだし。
今日はここ迄にしておいてやるか。(疲れた……
あ、その前にopenssl3とopendkimにopenldapを入れておこう。
確か何かに使っていた筈。

