CONTENTS


Lastmodified 2022-07-01 (金) 08:23:01


python 3.6 to 3.7

python 3.6 で動作している212というサーバがあって、3.6から3.7へ以降したいので、

/etc/make.conf

DEFAULT_VERSIONS+=  perl5=5.28
#DEFAULT_VERSIONS+=  perl5=5.26
NO_SENDMAIL= true
#DEFAULT_VERSIONS+=python=3.6 pythonr3=3.6
DEFAULT_VERSIONS+=python=3.7 pythonr3=3.7
DEFAULT_VERSIONS+=ruby=2.6
pkg set -o lang/python36:lang/python37
Change origin from lang/python36 to lang/python37 for all dependencies? [y/N]: y

として、この段階では、

# pkg delete python36-3.6.9_3
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 9 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        python36-3.6.9_3
        munin-node-2.0.52
        llvm80-8.0.1_3
        glib-2.56.3_6,1
        rrdtool-1.7.2_1
        harfbuzz-2.6.4
        pango-1.42.4_3
        cairo-1.16.0,2
        munin-master-2.0.52

Number of packages to be removed: 9

The operation will free 992 MiB.

Proceed with deinstalling packages? [y/N]:

となるが、

# pkg delete python37-3.7.6
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:
        python37-3.7.6

Number of packages to be removed: 1

The operation will free 110 MiB.

Proceed with deinstalling packages? [y/N]:

となる。

https://www.freebsd.org/doc/ja_JP.eucJP/books/handbook/pkgng-intro.html

https://ja.stackoverflow.com/questions/53587/python%E3%81%AE%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E3%82%923-7%E3%81%AB%E3%81%97%E3%81%9F%E3%81%84

/usr/local/sbin/portversion -vl'<' すると、

Ports tree is already up to date.
[Reading data from pkg(8) ... - 441 packages found - done]
help2man-1.47.11            <  needs updating (port has 1.47.12)
oniguruma-6.9.3             <  needs updating (port has 6.9.4)
python36-3.6.9_3            <  needs updating (port has 3.7.6)
vulnxml file up-to-date
0 problem(s) in 0 installed package(s) found.

portupgrade -arR (--batch)

すると、一番に python36 > python37 される模様。

Installing python37-3.7.6...
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

py37-gdbm       databases/py-gdbm@py37
py37-sqlite3    databases/py-sqlite3@py37
py37-tkinter    x11-toolkits/py-tkinter@py37

ports/UPDATING には次のように書かれていますので、

```

 This may ease the upgrade for users of pre-build packages:
 # sh
 # for i in $(pkg query -g %n 'py36-*'); do pkg set -yn ${i}:py37-${i#py36-}; done
 # pkg upgrade

Performing sanity check on apache24 configuration: [Mon Jan 06 11:49:20.552895 2020] [php7:crit] [pid 12786:tid 34397577216] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. AH00013: Pre-configuration failed


Total access 1426:本日 1:昨日 0

Counter: 1426, today: 1, yesterday: 0

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS