CONTENTS
#contents
----
Lastmodified &lastmod;
----
[[freebsd-update upgrade -r 9.1-RELEASE]]
*FreeBSD 9.3 to 10.2 [#v758ae98]

幾つか気になる情報もあるが・・・

http://www.uconst.org/blog/archives/433

http://dwl.cocolog-nifty.com/wetware/2015/01/freebsd-101-upg.html

アップグレードしてみることに・・・

 freebsd-update -r 10.2-RELEASE upgrade

 # freebsd-update -r 10.2-RELEASE upgrade
 Looking up update.FreeBSD.org mirrors... none found.
 Fetching metadata signature for 9.3-RELEASE from update.FreeBSD.org... done.
 Fetching metadata index... done.
 Fetching 1 metadata patches. done.
 Applying metadata patches... done.
 Inspecting system... done.
 
 The following components of FreeBSD seem to be installed:
 kernel/generic src/src world/base world/doc world/games world/lib32 
 
 The following components of FreeBSD do not seem to be installed:
 
 Does this look reasonable (y/n)? y
 
 Fetching metadata signature for 10.2-RELEASE from update.FreeBSD.org... done.
 Fetching metadata index... done.
 Fetching 1 metadata patches. done.
 Applying metadata patches... done.
 Fetching 1 metadata files... done.
 Inspecting system... done.
 Fetching files from 9.3-RELEASE for merging... done.
 Preparing to download files...
 Fetching 40097 
 patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150....160....170
 ....180....190....200....210....220....230....240....250....260....270....280....290....300....310....320....330....340
 ....350....360....370....380....390....400....410....420
                      :                     :
 ....39970....39980....39990....40000....40010....40020....40030....40040....40050....40060....40070....40080....40090... done.
 Applying patches... done.
 Fetching 14262 files...
 Attempting to automatically merge changes in files... done.
 
 The following file could not be merged automatically: /etc/defaults/periodic.conf
 Press Enter to edit this file in vi and resolve the conflicts
 manually...
 
 /var/db/mergemaster.mtree
 /var/empty
 /var/yp/Makefile.dist
   To install the downloaded upgrades, run "/usr/sbin/freebsd-update install".
 
 # /usr/sbin/freebsd-update install
 Installing updates...
 
 Kernel updates have been installed.  Please reboot and run
 "/usr/sbin/freebsd-update install" again to finish installing updates.

 # reboot

 FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015

 # /usr/sbin/freebsd-update install
 Installing updates...
 
 Completing this upgrade requires removing old shared object files.
 Please rebuild all installed 3rd party software (e.g., programs
 installed from the ports tree) and then run "/usr/sbin/freebsd-update install"
 again to finish installing updates.

ここで、念のため # portsnap fetch update してから、# portversion -vl'<' すると

 # portversion -vl'<'
 pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
 pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
 pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
 pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
 [Reading data from pkg(8) ... pkg: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
 - 388 packages found - done]
 [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 25201 port entries found 
 .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000
 .........9000.........10000.........11000.........12000.........13000.........14000.........15000.......
 ..16000.........17000.........18000.........19000.........20000.........21000.........22000.........23000
 .........24000.........25000.. ..... done]
 libEGL-9.1.7_5              <  needs updating (port has 10.4.6)
 libGL-9.1.7_4               <  needs updating (port has 10.4.6)
 libglapi-9.1.7_2            <  needs updating (port has 10.4.6)


 # pkg-static install -f pkg
 pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
 Updating FreeBSD repository catalogue...
 Repository FreeBSD has a wrong packagesite, need to re-create database
 Fetching meta.txz: 100%    944 B   0.9kB/s    00:01
 Fetching packagesite.txz: 100%    5 MiB   1.4MB/s    00:04
 Processing entries: 100%
 FreeBSD repository update completed. 24532 packages processed.
 New version of pkg detected; it needs to be installed first.
 The following 1 package(s) will be affected (of 0 checked):
 
 Installed packages to be REINSTALLED:
         pkg-1.5.6 (ABI changed: 'freebsd:9:x86:64' -> 'freebsd:10:x86:64')
 
 The process will require 2 MiB more space.
 2 MiB to be downloaded.
 
 Proceed with this action? [y/N]: y
 
 Fetching pkg-1.5.6.txz: 100%    2 MiB   1.2MB/s    00:02
 Checking integrity... done (0 conflicting)
 [1/1] Reinstalling pkg-1.5.6...
 You may need to manually remove /usr/local/etc/pkg.conf if it's no longer needed.
 [1/1] Extracting pkg-1.5.6: 100%
 Message for pkg-1.5.6:
  If you are upgrading from the old package format, first run:
 
   # pkg2ng
 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):
 
 Installed packages to be REINSTALLED:
         pkg-1.5.6
 
 Proceed with this action? [y/N]: y
 [1/1] Reinstalling pkg-1.5.6...
 You may need to manually remove /usr/local/etc/pkg.conf if it's no longer needed.
 [1/1] Extracting pkg-1.5.6: 100%
 Message for pkg-1.5.6:
  If you are upgrading from the old package format, first run:
 
   # pkg2ng

 Installing mysql-server-5.5.33...
 pkg: mysql-server-5.5.33 conflicts with mysql55-server-5.5.44 (installs files into the same place).  Problematic file: /usr/local/man/man1/my_print_defaults.1.gz
 Converting curl-7.33.0_2...
 pkg: Unable to access file /usr/local/share/licenses/curl-7.33.0_2/catalog.mk: No such file or directory
 pkg: Unable to access file /usr/local/share/licenses/curl-7.33.0_2/LICENSE: No such file or directory
 pkg: Unable to access file /usr/local/share/licenses/curl-7.33.0_2/MIT: No such file or directory
 pkg: Unable to access file /usr/local/lib/libcurl.la: No such file or directory
 pkg: lstat(/usr/local/share/licenses/curl-7.33.0_2/): No such file or directory
 pkg: Unable to access file /usr/local/share/doc/curl/README.netware: No such file or directory
 pkg: Unable to access file /usr/local/share/doc/curl/README.win32: No such file or directory
 pkg: Unable to access file /usr/local/share/examples/curl/imap.c: No such file or directory
 pkg: Unable to access file /usr/local/share/examples/curl/pop3s.c: No such file or directory
 pkg: Unable to access file /usr/local/share/examples/curl/pop3slist.c: No such file or directory
 pkg: Unable to access file /usr/local/share/examples/curl/simplesmtp.c: No such file or directory
 Installing curl-7.33.0_2...
 Analysing shared libraries, this will take a while...
 Checking all packages: 100%

 portversion -vl'<'
       :               :
 ruby-1.9.3.448,1            <  needs updating (port has 2.0.0.645,1) (=> 'lang/ruby20')

と言うことのようなので、

 

先ずは、# portupgrade ruby



 # /usr/sbin/freebsd-update install
 Installing updates...rmdir: ///var/run/named: Directory not empty
 rmdir: ///var/named/var/run/named: Directory not empty
 rmdir: ///var/named/var/run: Directory not empty
 rmdir: ///var/named/var: Directory not empty
 rmdir: ///var/named/etc/namedb: Directory not empty
 rmdir: ///var/named/etc: Directory not empty
 rmdir: ///var/named/dev: Device busy
 rmdir: ///var/named: Directory not empty
 rmdir: ///usr/src/contrib/bind9: Directory not empty
  done.


 10.2-RELEASE FreeBSD 10.2-RELEASE #0 
* MySQL55 が起動しない [#db4d232a]

/var/db/mysql/FQDN.err

 150906 13:00:51 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
 Shared object "libstdc++.so.6" not found, required by "mysqld"
 150906 13:00:51 mysqld_safe mysqld from pid file /var/db/mysql/p5k.kuji-clinic.info.pid ended

http://blog.khmersite.net/2014/04/freebsd-10-shared-object-libstdc-so-6-not-found/
 
 portupgrade -fR mysql55-server

で、関連ライブラリを再度インストールして起動できる。念のために、 mysql_upgrade -u root -p しておく。

Shared object "libstdc++.so.6" not found, required by "libicui18n.so.55"

 lang/gcc

*php5 を php55を指すようにする [#t8fd04d8]

 # pkg set -o lang/php5:lang/php55
 Change origin from lang/php5 to lang/php55 for all dependencies? [y/N]: y
 # portinstall lang/php5

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


*** daily security run output [#w2eb679a]
 Warning: Variable $daily_status_security_logdir is deprecated, use $security_status_logdir instead.
 Warning: Variable $daily_status_security_diff_flags is deprecated, use $security_status_diff_flags instead.
 Warning: Variable $daily_status_security_chksetuid_enable is deprecated, use $security_status_chksetuid_enable instead.
 /etc/periodic/security/100.chksetuid: security_status_chksetuid_enable=YES: not found
 /etc/periodic/security/100.chksetuid: security_status_chksetuid_period=daily: not found




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

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