運用ネタ(FreeBSD) freebsd-update がエラーメッセージをはいてこける件
なんか、freebsd-updateがエラー吐いて死ぬのよ。とりあえず fetch して install してみると
# freebsd-update fetch Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 8.1-RELEASE from update4.FreeBSD.org... done. Fetching metadata index... done. Inspecting system... The following files will be added as part of updating to 8.1-RELEASE-p7: /usr/src/lib/libc/gen/libc_dlopen.c # freebsd-update install Installing updates...install: ///usr/src/lib/libc/gen/libc_dlopen.c: No such file or directory done.
ということで、 libc_dlopen.c がないとか何とか。原因は単純で、libc_dlopen.c を格納するディレクトリが存在しないから。root 権限でディレクトリを掘ってやれば解決。
# ls /usr/src/ ./ ../ # mkdir -p /usr/src/lib/libc/gen/ # freebsd-update fetch install Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 8.1-RELEASE from update4.FreeBSD.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. The following files will be added as part of updating to 8.1-RELEASE-p7: /usr/src/lib/libc/gen/libc_dlopen.c Installing updates... done. # reboot
たいした話じゃないけど、日本語の情報が引っかからなかったので。