#author("2024-01-26T09:32:58+09:00","default:kuji","kuji") #author("2024-01-26T09:34:52+09:00","default:kuji","kuji") CONTENTS #contents ---- Lastmodified &lastmod; ---- * portupgrade freetds [#a58e3149] すると、 pkg-static: Unable to access file /usr/ports/databases/freetds-devel/work/stage/usr/local/include/odbcss.h:No such file or directory *** Error code 1 というエラーがでる。グーグル先生に尋ねると、このサイトがでるが、ほかに、 https://bugs-freebsd-org.translate.goog/bugzilla/show_bug.cgi?id=276314&_x_tr_sl=en&_x_tr_tl=ja&_x_tr_hl=ja&_x_tr_pto=sc というサイトもヒットするので、読んでみると、なんと、この手のエラーは ** make deinstall clean && make install clean [#mf6fd94c] するとエラー解消するそうな。~ で、やってみたところ・・・ cd /usr/ports/databases/freetds make deinstall clean && make install clean [#c6199c35] : : : ===> Cleaning for freetds-1.4.10_1,1 SOLVED! ついでに php81-readline-8.1.2 もこれで解決した。 ---- 以下はオブソルートw *freetds-devel は pkgupgrade で [#uefa46de] portversion -vl'<' すると、 freetds-devel-1.3.40,1 < needs updating (port has 1.3.118,1) と言われるので portupgrade -r freetds-devel-1.3.40,1 すると、freetds の時と同じエラーがでるようになった。 ===> Installing for freetds-devel-1.3.118,1 ===> Checking if freetds-devel is already installed ===> Registering installation for freetds-devel-1.3.118,1 pkg-static: Unable to access file /usr/ports/databases/freetds-devel/work/stage/usr/local/include/odbcss.h:No such file or directory *** Error code 1 Stop. で、pkgupgrade してみたところ、 C # pkg upgrade freetds-devel Updating FreeBSD repository catalogue... Fetching packagesite.pkg: 100% 6 MiB 6.8MB/s 00:01 Processing entries: 100% FreeBSD repository update completed. 32289 packages processed. All repositories are up to date. Updating database digests format: 100% The following 1 package(s) will be affected (of 0 checked): Installed packages to be UPGRADED: freetds-devel: 1.3.40,1 -> 1.3.118,1 Number of packages to be upgraded: 1 1 MiB to be downloaded. Proceed with this action? [y/N]: y [1/1] Fetching freetds-devel-1.3.118,1.pkg: 100% 1 MiB 1.2MB/s 00:01 Checking integrity... done (0 conflicting) [1/1] Upgrading freetds-devel from 1.3.40,1 to 1.3.118,1... [1/1] Extracting freetds-devel-1.3.118,1: 100% # portversion -vl'<' [Reading data from pkg(8) ... - 518 packages found - done] とCleanになった。 *freetds freetds-devel [#v0696e3c] freetds を portupgrade すると、 ===> Registering installation for freetds-1.3.10,1 as automatic pkg-static: Unable to access file /usr/ports/databases/freetds/work/stage/usr/local/include/odbcss.h:No such file or directory *** Error code 1 Stop. make[1]: stopped in /usr/ports/databases/freetds *** Error code 1 と言われてしまう。 ということで、freetds-devel というのを試してみる。 ま、案の定w? ===> Registering installation for freetds-devel-1.3.40,1 Installing freetds-devel-1.3.40,1... pkg-static: freetds-devel-1.3.40,1 conflicts with freetds-1.3.9,1 (installs files into the same place). Problematic file: /usr/local/bin/bsqldb *** Error code 1 Stop. make[2]: stopped in /usr/ports/databases/freetds-devel *** Error code 1 Stop. make[1]: stopped in /usr/ports/databases/freetds-devel *** Error code 1 Stop. make: stopped in /usr/ports/databases/freetds-devel ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20220426-28641-1xtdveb env make reinstall ** Fix the installation problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! databases/freetds-devel (install error) root@smb212:/usr/local/www/OpenPNE # pkg delete freetds-1.3.9,1 Updating database digests format: 100% Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 3 packages (of 0 packages in the universe): Installed packages to be REMOVED: freetds: 1.3.9,1 php80-extensions: 1.1 php80-pdo_dblib: 8.0.18 Number of packages to be removed: 3 The operation will free 15 MiB. Proceed with deinstalling packages? [y/N]: y [1/3] Deinstalling php80-extensions-1.1... [2/3] Deinstalling php80-pdo_dblib-8.0.18... [2/3] Deleting files for php80-pdo_dblib-8.0.18: 100% [3/3] Deinstalling freetds-1.3.9,1... [3/3] Deleting files for freetds-1.3.9,1: 100% *portinstall freetds-devel [#x76f0bcd] status of this software, see the following webpage: http://www.freetds.org/ ===> Cleaning for freetds-devel-1.3.40,1 # cd /usr/ports/lang/php80-extensions # make install clean これで、php80-pdo_dblib も一緒にインストールされる。 freetds がupgrade できない件は一件落着か? * sum [#v5fa7d58] pkg delete freetds-1.3.9,1 portinstall freetds-devel cd /usr/ports/lang/php80-extensions && make reinstall clean or cd /usr/ports/lang/php74-extensions && make reinstall clean ---- Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday); #counter([total|today|yesterday]);