FreeBSD で各種アプリケーションのインストール(ポーツ・ツリー を使用)
FreeBSD に種々のソフトウェアのインストールするための手順を記述しました.
* X.Org X Window System, GNOME バージョン 2, 開発用ソフトウェアのインストール手順についての記述は,別の Web ページに移しました
【関連する外部ページ】:
前準備
システムの更新
「FreeBSD システムの更新,ポーツコレクションの維持更新」 のページを参考に,次のことを行っておく.
- FreeBSD のセキュリティパッチ
- ポーツ・コレクション(ports collection) のダウンロード,アップデート(更新)
* 次のように「/libexec/ld-elf.so.1: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.11 required by /usr/local/lib ... not found」というエラーメッセージが出たときの回避策. この設定で、エラーを回避できる可能性がある. これはポーツ・ツリーでのビルドに gcc45 などを使っている(デフォルトの設定を使っていない)場合によく出てくるエラー. 仕方がないので,環境変数 LD_LIBRARY_PATH の設定で対処する. 上のように、環境変数 LD_LIBRARY_PATH を設定しているのは,/usr/lib/libstdc++.so.6 ではなく,/usr/local/lib/gcc45/libstdc++.so.6 を使いたいときの設定.
Linux エミュレータ linux_base-f10 のインストール
- /etc/rc.conf に「linux_enable="YES"」の1行を入れておく
linux_enable="YES"
* /etc/rc.conf を書き換えた場合には再起動
- /etc/sysctl.conf
compat.linux.osrelease=2.6.16
- コマンドを使って、linux.ko の組み込み操作を行ってみる
エラーメッセージが出ないことを確認しておく
kldload linux.ko
- linux.ko の組み込みができていることの確認
kldstat | grep linux
- linux_base-f10 のインストール
portupgrade -Npv -B 'make rmconfig' emulators/linux_base-f10
- 再起動
- linux プロセスファイルシステム
/etc/fstab に次の行を追加しておくこと
linprocfs /compat/linux/proc linprocfs rw 0 0
アプリケーション等のインストール
よく使うソフトを,下記の手順でインストールします.
- ライブラリ類
- multimedia/avifile: AVI player/converter with numerous codecs, includeing MPEG-4(DivX ;-))
- multimedia/libdvdcss: libdvdcss, Portable abstraction library for DVD decription
- textproc/libxml: libxml, XML parser library for GNOME
- textproc/libxml++: libxml++, XML API for C++
- devel/libgsf: libgsf, An extensible i/o abstraction for dealing with structured file formats
- devel/qt4-corelib: qt4, Qt core library
- x11-toolkits/qt4-gui: Qt graphical user interface library
- print/freetype2: FreeType, A free and portable TrueType font rendering engine
- Web ブラウザ
- www/firefox, www/firefox-i18n: Firefox, Web browser based on the browser portion of Mozilla
- メーラ
- mail/evolution: Evolution, An integrated mail, claendar and address book dsitributed suite
- mail/thunderbird3, mail/thunderbird3-i18n: Thunderbird, Mozilla Thunderbird is standalone mail and news that stands above
- インスタントメッセンジャー,IP 電話
- ワープロ、表計算、プレゼンテーション
- editor/openoffice.org-3: OpenOffice.org, Integrated wordprocessor/dbase/spreadsheet/drawing/chart/browser
- math/gnumeric: Gnumeric, The GNOME 2 spreadsheet
- misc/magicpoint: MagicPoint, An X11-based presentation tool
- PDF ビューワ,文書ビューワ,ポストスクリプトファイルビューワ
- graphics/evince: Evince, GNOME 2 multi-format document viewer
- japanese/acroread9: Adobe Reader 9, Adobe Reader for view, print, and search PDF documents (JPN)
- graphics/xpdf, japanese/xpdf: Xpdf, Display PDF files, and convert them to other format
- print/ggv: GGv, GNOME 2 ghostscript viewer
- print/gv: A PostScript and PDF previewer
- print/ghostscript8, print/ghostview, print/gsfonts: Ghostscript 8.x PostScript interpreter
- print/psutils-a4: Utilities for manipulating PostScript documents (ポストスクリプトファイルからページ抜き出し, 2ページを1ページになど)
- Real プレイヤー
- multimedia/linux-realplayer: RealPlayer, Linux RealPlayer 10 from RealNetworks
- ビデオ(プレイヤー、編集)、音楽(プレイヤー)
- multimedia/totem, multimedia/totem-parser: Totem, A gstreamer-based video player for GNOME 2 Desktop
- multimedia/pitivi: PiTiVi, Gstreamer based non-linear audio/video editor
- multimedia/kdenlive: Kdenlive, non-linear video editing suite
- multimedia/vlc: VLC, Qt4 based multimedia player and streaming server
- multimedia/kaffeine: Kaffeine, multimedia/kaffeine-mozilla: A xine-based multimedia player
- audio/rhythmbox: Rhythmbox, Audio player for GNOME
- multimedia/gnome-mplayer: GNOME Mplayer, MPlayer, High performance media player supporting many formats
- audio/amarok: Amarok, Media player for KDE
- multimedia/audacious, multimedia/audacious-plugins: Audacious, A media player based on BMP and XMMS
- CD-R, DVD イメージ作成等
- multimedia/k9copy: K9Copy, DVD 9 to DVD-5 shrinking application for KDE
- multimedia/handbrake: HandBrake, A DVD to MPEG-4 ripper and encoder
- sysutils/brasero: Brasero, CD/DVD mastering tools for the GNOME desktop
- sysutils/cdrtools: cdrtoolsl, CD/CD-R[W] and ISO-9660 iamge creation and extraction tools
- audio/grip: Grip, GTK front-end to external cd rippier and audio encoder
- 画像ビューワ
- graphics/shotwell: Shotwell, Open source photo manager for GNOME
- graphics/f-spot: F-Spot, Personal photo management to the GNOME desktop
- graphics/gwenview, misc/gwenview-i18n: Gwenview, An image viewer and browser for the KDE environment
- graphics/gthumb: gThumb, An image viewer and browser for the GNOME 2 environment
- multimedia/ffmpegthumbnailer: Lightweight video thumbnailer that can be used by file managers
- graphics/gqview: GQview, Another gtk2-based graphics file viewer
- graphics/gtksee: GtkSee, Image viewer
- ペイント, 画像処理
- graphics/gimp, graphics/gimp-app, graphics/gimp-data-extra, graphics/gimp-focusblur-plugin, graphics/gimp-gap, graphics/gimp-greycstoration, graphics/gimp-help, graphics/gimp-resynthesizer, japanese/gimp-help: The GIMP,
- graphics/ImageMagick: ImageMagick, Image processing tools
- graphics/GraphicsMagick: GraphicsMagick, Fast image processing tools based on ImageMagick
- graphics/ruby-rmagick:
- graphics/xv: xv, An X11 program that displays images of various formats
- games/tuxpaint, games/tuxpaint-config, games/tuxpaint-fonts, games/tuxpaint-stamps:
- ベクター系のドロー
- graphics/inkscape: Inkscape, A program seeks to become a full featured open source SVG editor
- 作図
- graphics/dia: dia, Diagram creation program, similar to Visio
- graphics/tgif, japanese/tgif: tgif, Diagram creation program, similar to Visio
- graphics/ruby-tgif:
- 数値処理、グラフ作成
- math/gnuplot, math/xgfe: gnuplot, A command-driven interactive function plotting program
- math/ngraph, japanese/ngraph-fonts: Ngraph, A XY plotting tool for students, scientists and engineers,
- math/xgraph
- スケジューラ、カレンダー
- deskutils/xcalendar: xcalendar, A calendar with a notebook for X11 (internationalized version)
- エディタ
- editors/vim: vim, Vi "workalike", with many additional features
- editors/emacs, editors/tamago, print/yatex: emacs, GNU editing macros
- editors/gedit: gedit, A small but powerful text editor for GNOME 2 Desktop Environment
- editors/tea: TEA, A simple and powerful Qt4-based text editor
- deskutils/tomboy: Personal note taking system for the GNOME desktop
- editors/beav: beav, Binary Editor And Viewer, a full featured binary file editor
- shells/fd: fd, A CUI-based file and directory management tool
- archivers/zip: Create/update ZIP files compatible with pkzip
- archivers/unzip: List, test and extract compressed files in a ZIP achive
- archivers/lha: Archive file using LZSS and Huffman compression (.lzh files)
- archivers/bzip2: A block-sorting file compressor
- textproc/ispell: An interactive spelling checker for multiple languages
- japanese/less: Lezz + zcat + ISO-2022 -a pager similar to more and pg
- misc/lv: Powerfil Multilingual File Viewer
- japanese/nkf: Network Kanji code conversion Filter
- japanese/qkc: Quick Kanji Code Converter (C version)
- converters/unix2dos: Translate ASCII files from DOS (cr/lf) to UNIX (lf)
- textproc/xlhtml: Convert Excel and PowerPoint files to HTML and text
- textproc/wv: A library and executables to access Microsoft Word files
- textproc/wv2: A library providing routines to access Microsoft Word files
- textproc/catdoc: MS Word/Excel converter to plain ASCII or TeX. Tk Viewer included
- editors/softmaker-office: Microsoft Word/Excel OpenDocument and OpenOffice.org editor
- graphics/tonicpoint-viewer: PowerPoint presentation viewer
- japanese/a2ps: Text file to postscript converter (with Japanese support)
- print/pstotext: A PostScript to Text converter
- print/html2ps-a4: HTML to PostScript converter
- detex:
- net/tsclient: A GNOME 2 frontend for rdesktop and vncviewer
- net/rsync: A network file distribution/synchronization utility
- ftp/wget: Retrieve file from the Net via HTTP(S) and FTP
- ftp/filezilla: Fast and reliable cross-platform FTP, FTPS and SFTP client
- japanese/font-std:
- japanese/font-ipa:
- japanese/font-ipaex:
- japanese/font-ipa-uigothic:
- japanese/sazanami-ttf:
- japanese/ja-kochi-ttfonts:
- japanese/alias-fonts:
- x11-fontsintlfonts:
- x11-fonts/urwfonts-ttf:
- x11-wm/fvwm2-i18n:
- xll/lxde-meta:
- x11-wm/lxsession:
- graphics/scrot: A screen capture utility that utilized Imlib2
- security/klamav: KlamAV, A KDE 3 front-end to Clam Anti-Virus
- www/dansguardian: A fast, feature-rich web content filter for Squid proxy servers
- secutiry/nmap: Port scanning utility for large networks
- net-mgmt/nagios2: Nagios, Extremely powerful network monitoring system
- games/childsplay, games/childsplay_plugins: Educative games for children
- astro/stellarium: A 3D photo-realistic sky renderer
portupgrade -Npv -B 'make rmconfig' multimedia/win32-codecs
portupgrade -Npv -B 'make rmconfig' multimedia/libdvdcss
portupgrade -Npv -B 'make rmconfig' textproc/libxml
portupgrade -Npv -B 'make rmconfig' textproc/libxml++
portupgrade -Npv -B 'make rmconfig' devel/libgsf
portupgrade -Npv -B 'make rmconfig' devel/qt4-corelib
portupgrade -Npv -B 'make rmconfig' x11-toolkits/qt4-gui
portupgrade -Npv -B 'make rmconfig' print/freetype2
portupgrade -Npv -B 'make rmconfig' www/firefox
portupgrade -Npv -B 'make rmconfig' www/firefox-i18n
portupgrade -Npv -B 'make rmconfig' mail/evolution
portupgrade -Npv -B 'make rmconfig' mail/thunderbird3
portupgrade -Npv -B 'make rmconfig' mail/thunderbird3-i18n
portupgrade -Npv -B 'make rmconfig' mail/enigmail-thunderbird3
portupgrade -Npv -B 'make rmconfig' net-im/pidgin
portupgrade -Npv -B 'make rmconfig' net/ekiga3
portupgrade -Npv -B 'make rmconfig' net/skype
portupgrade -Npv -B 'make rmconfig' editors/openoffice.org-3
portupgrade -Npv -B 'make rmconfig' editors/abiword
portupgrade -Npv -B 'make rmconfig' editors/abiword-docs
portupgrade -Npv -B 'make rmconfig' math/gnumeric
portupgrade -Npv -B 'make rmconfig' misc/magicpoint
portupgrade -Npv -B 'make rmconfig' graphice/evince
portupgrade -Npv -B 'make rmconfig' japanese/acroread9
portupgrade -Npv -B 'make rmconfig' graphics/xpdf
portupgrade -Npv -B 'make rmconfig' japanese/xpdf
portupgrade -Npv -B 'make rmconfig' print/ggv
portupgrade -Npv -B 'make rmconfig' print/gv
portupgrade -Npv -B 'make rmconfig' print/ghostscript8
portupgrade -Npv -B 'make rmconfig' print/gsfonts
portupgrade -Npv -B 'make rmconfig' print/ghostview
portupgrade -Npv -B 'make rmconfig' print/gsfonts
portupgrade -Npv -B 'make rmconfig' print/psutils-a4
portupgrade -Npv -B 'make rmconfig' multimedia/linux-realplayer
portupgrade -Npv -B 'make rmconfig' multimedia/totem
portupgrade -Npv -B 'make rmconfig' multimedia/totem-parser
portupgrade -Npv -B 'make rmconfig' multimedia/pitivi
portupgrade -Npv -B 'make rmconfig' multimedia/kdenlive
portupgrade -Npv -B 'make rmconfig' multimedia/vlc
portupgrade -Npv -B 'make rmconfig' multimedia/kaffeine
portupgrade -Npv -B 'make rmconfig' multimedia/xmms
portupgrade -Npv -B 'make rmconfig' multimedia/xmms-avi
portupgrade -Npv -B 'make rmconfig' audio/rhythmbox
portupgrade -Npv -B 'make rmconfig' multimedia/gnome-mplayer
portupgrade -Npv -B 'make rmconfig' multimedia/smplayer
portupgrade -Npv -B 'make rmconfig' audio/amarok
portupgrade -Npv -B 'make rmconfig' multimedia/audacious
portupgrade -Npv -B 'make rmconfig' multimedia/audacious-plugins
portupgrade -Npv -B 'make rmconfig' multimedia/k9copy
portupgrade -Npv -B 'make rmconfig' multimedia/handbrake
portupgrade -Npv -B 'make rmconfig' sysutils/brasero
portupgrade -Npv -B 'make rmconfig' sysutils/cdrtools
portupgrade -Npv -B 'make rmconfig' audio/grip
portupgrade -Npv -B 'make rmconfig' graphics/shotwell
portupgrade -Npv -B 'make rmconfig' graphice/f-spot
portupgrade -Npv -B 'make rmconfig' graphice/gwenview
portupgrade -Npv -B 'make rmconfig' misc/gwenview-i18n
portupgrade -Npv -B 'make rmconfig' graphice/gthumb
portupgrade -Npv -B 'make rmconfig' multimedia/ffmpegthumbnailer
portupgrade -Npv -B 'make rmconfig' graphice/gqview
portupgrade -Npv -B 'make rmconfig' graphice/gtksee
portupgrade -Npv -B 'make rmconfig' graphice/gimp
portupgrade -Npv -B 'make rmconfig' graphics/gimp-app
portupgrade -Npv -B 'make rmconfig' graphics/gimp-data-extra
portupgrade -Npv -B 'make rmconfig' graphics/gimp-focusblur-plugin
portupgrade -Npv -B 'make rmconfig' graphics/gimp-gap
portupgrade -Npv -B 'make rmconfig' graphics/gimp-greycstoration
portupgrade -Npv -B 'make rmconfig' graphics/gimp-help
portupgrade -Npv -B 'make rmconfig' graphics/gimp-resynthesizer
portupgrade -Npv -B 'make rmconfig' japanese/gimp-help
portupgrade -Npv -B 'make rmconfig' graphics/ImageMagick
portupgrade -Npv -B 'make rmconfig' graphics/GraphicsMagick
portupgrade -Npv -B 'make rmconfig' graphics/ruby-rmagick
portupgrade -Npv -B 'make rmconfig' japanese/xv
portupgrade -Npv -B 'make rmconfig' games/tuxpaint
portupgrade -Npv -B 'make rmconfig' games/tuxpaint-config
portupgrade -Npv -B 'make rmconfig' games/tuxpaint-fonts
portupgrade -Npv -B 'make rmconfig' games/tuxpaint-stamps
portupgrade -Npv -B 'make rmconfig' graphics/inkscape
portupgrade -Npv -B 'make rmconfig' graphics/dia
portupgrade -Npv -B 'make rmconfig' graphics/tgif
portupgrade -Npv -B 'make rmconfig' japanese/tgif
portupgrade -Npv -B 'make rmconfig' graphics/ruby-tgif
portupgrade -Npv -B 'make rmconfig' math/gnuplot
portupgrade -Npv -B 'make rmconfig' math/xgfe
portupgrade -Npv -B 'make rmconfig' math/ngraph
portupgrade -Npv -B 'make rmconfig' japanese/ngraph-fonts
portupgrade -Npv -B 'make rmconfig' math/xgraph
portupgrade -Npv -B 'make rmconfig' deskutils/xcalendar
portupgrade -Npv -B 'make rmconfig' editors/vim
portupgrade -Npv -B 'make rmconfig' editors/emacs
portupgrade -Npv -B 'make rmconfig' editors/tamago
portupgrade -Npv -B 'make rmconfig' print/yatex
portupgrade -Npv -B 'make rmconfig' editors/gedit
portupgrade -Npv -B 'make rmconfig' editors/tea
portupgrade -Npv -B 'make rmconfig' deskutils/tomboy
portupgrade -Npv -B 'make rmconfig' editors/beav
portupgrade -Npv -B 'make rmconfig' shells/fd
portupgrade -Npv -B 'make rmconfig' archivers/zip
portupgrade -Npv -B 'make rmconfig' archivers/unzip
portupgrade -Npv -B 'make rmconfig' archivers/lha
portupgrade -Npv -B 'make rmconfig' archivers/bzip2
portupgrade -Npv -B 'make rmconfig' textproc/ispell
portupgrade -Npv -B 'make rmconfig' japanese/less
portupgrade -Npv -B 'make rmconfig' misc/lv
portupgrade -Npv -B 'make rmconfig' japanese/nkf
portupgrade -Npv -B 'make rmconfig' japanese/qkc
portupgrade -Npv -B 'make rmconfig' converters/unix2dos
portupgrade -Npv -B 'make rmconfig' textproc/xlhtml
portupgrade -Npv -B 'make rmconfig' textproc/wv
portupgrade -Npv -B 'make rmconfig' textproc/wv2
portupgrade -Npv -B 'make rmconfig' textproc/catdoc
portupgrade -Npv -B 'make rmconfig' editors/softmaker-office
portupgrade -Npv -B 'make rmconfig' graphics/tonicpoint-viewer
portupgrade -Npv -B 'make rmconfig' japanese/a2ps
portupgrade -Npv -B 'make rmconfig' print/pstotext
portupgrade -Npv -B 'make rmconfig' print/html2ps-a4
portupgrade -Npv -B 'make rmconfig' print/detex
portupgrade -Npv -B 'make rmconfig' net/tsclient
portupgrade -Npv -B 'make rmconfig' net/rsync
portupgrade -Npv -B 'make rmconfig' ftp/wget
portupgrade -Npv -B 'make rmconfig' ftp/filezilla
portupgrade -Npv -B 'make rmconfig' japanese/font-std
portupgrade -Npv -B 'make rmconfig' japanese/font-ipa
portupgrade -Npv -B 'make rmconfig' japanese/font-ipaex
portupgrade -Npv -B 'make rmconfig' japanese/font-ipa-uigothic
portupgrade -Npv -B 'make rmconfig' japanese/sazanami-ttf
portupgrade -Npv -B 'make rmconfig' japanese/ja-kochi-ttfonts
portupgrade -Npv -B 'make rmconfig' japanese/alias-fonts
portupgrade -Npv -B 'make rmconfig' x11-fonts/intlfonts
portupgrade -Npv -B 'make rmconfig' x11-fonts/urwfonts-ttf
portupgrade -Npv -B 'make rmconfig' x11-wm/fvwm2-i18n
portupgrade -Npv -B 'make rmconfig' graphics/scrot
portupgrade -Npv -B 'make rmconfig' security/klamav
portupgrade -Npv -B 'make rmconfig' www/dansguardian
portupgrade -Npv -B 'make rmconfig' secutiry/nmap
portupgrade -Npv -B 'make rmconfig' net-mgmt/nagios2
portupgrade -Npv -B 'make rmconfig' games/childsplay
portupgrade -Npv -B 'make rmconfig' games/childsplay_plugins
portupgrade -Npv -B 'make rmconfig' astro/stellarium
- このときダウンロードされたファイルは、/usr/ports/distfile に保存されていきます.
- ports についての参考情報: http://www.jp.freebsd.org/www.FreeBSD.org/ja/ports/
- ports の手順についての情報: /usr/ports/Mk に書いてあります.
インストール後の設定
IPA フォント等の設定
xorg.conf に,フォントパスを追加
FontPath "/usr/local/lib/X11/fonts/TrueType/"
FontPath "/usr/local/lib/X11/fonts/bitstream-vera/"
FontPath "/usr/local/lib/X11/fonts/cyrillic/"
.emacs の設定例
ホームディレクトリの .emacs を設定します.この作業は、root でなく、一般ユーザで行なって下さい。
;; turn on font-lock mode
(when (fboundp 'global-font-lock-mode)
(global-font-lock-mode t))
;; enable visual feedback on selections
;(setq transient-mark-mode t)
;; default to better frame titles
(setq frame-title-format
(concat "%b - emacs@" system-name))
; window and font
(cond
(window-system
(set-frame-font "-*-*-medium-r-*-*-16-*-*-*-*-*-*-*")
(mouse-wheel-mode)))
; other settings
(setq next-line-add-newlines nil)
(load-library "term/bobcat")
(display-time)
(setq line-number-mode t)
(setq text-mode-hook (list
(function (lambda ()
(auto-fill-mode 1)))))
(setq display-warning-suppressed-classes ' (font))
; supress messages
(setq inhibit-startup-message t)
(setq initial-scratch-message nil)
; cc-mode
(add-hook 'c-mode-common-hook
'(lambda ()
(c-set-style "CC-MODE")))
; anthy
; (set-input-method "japanese-anthy")
(setq default-input-method "japanese-egg-anthy")
(global-set-key [(control backslash)] 'toggle-input-method)
; kanji code
(set-language-environment "Japanese")
(set-default-coding-systems 'euc-japan)
(set-keyboard-coding-system 'euc-japan)
(set-terminal-coding-system 'euc-japan)
(set-clipboard-coding-system 'euc-japan)
; (set-w32-system-coding-system 'euc-japan)
(setq default-file-name-coding-system 'japanese-shift-jis)
;(setq default-process-coding-system
; '(euc-japan euc-japan))