トップページ -> コンピュータ -> FreeBSD を使ってソフトウエア開発環境を作る -> FreeBSD で各種アプリケーションのインストール(ポーツ・ツリー を使用)
[サイトマップへ], サイト内検索:

FreeBSD で各種アプリケーションのインストール(ポーツ・ツリー を使用)

サイト構成 連絡先,業績など 実践知識 コンピュータ 教材 サポートページ

FreeBSD に種々のソフトウエアのインストールするための手順を記述しました.

X.Org X Window System, GNOME バージョン 2, 開発用ソフトウエアのインストール手順についての記述は,別の Web ページに移しました

参考 Web ページ:

http://gihyo.jp/admin/clip/01/fdt/200908/19,

http://gihyo.jp/admin/clip/01/fdt/200908/19


前準備

システムの更新

「FreeBSD システムやアプリケーションの維持更新」 のページを参考に,次のことを行っておく.

※ 次のように「/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 のインストール

  1. /etc/rc.conf に「linux_enable="YES"」の1行を入れておく

    linux_enable="YES"
    

    ※ /etc/rc.conf を書き換えた場合には再起動

  2. /etc/sysctl.conf

    compat.linux.osrelease=2.6.16
    
  3. コマンドを使って、linux.ko の組み込み操作を行ってみる

    エラーメッセージが出ないことを確認しておく

    kldload linux.ko
    

  4. linux.ko の組み込みができていることの確認

    kldstat | grep linux
    

  5. linux_base-f10 のインストール

    portupgrade -Npv -B 'make rmconfig' emulators/linux_base-f10
    nspluginwrapper -i /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so
    

  6. 再起動

  7. linux プロセスファイルシステム

    /etc/fstab に次の行を追加しておくこと

    linprocfs /compat/linux/proc linprocfs rw 0 0
    

アプリケーション等のインストール

よく使うソフトを,下記の手順でインストールします.

  • バイナリエディタ

  • ファイル、ディレクトリ操作

  • 圧縮復元・アーカイバ

  • スペルチェッカ

  • ページャ

  • 漢字コード,改行コード変換ツール

  • MS-Word, MS-Excel, MS-PowerPoint ファイルの操作

  • テキストファイルをポストスクリプトに/ポストスクリプトをテキストファイルに

  • HTMLファイルをポストスクリプトに

  • detex

  • ネットワークツール

  • フォント

  • ウインドウマネージャ

  • 画面キャプチャ

  • システム管理/監視

  • ゲームなど

    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' www/flashplugin-mozilla
    portupgrade -Npv -B 'make rmconfig' www/nspluginwrapper
    nspluginwrapper -i /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so
    portupgrade -Npv -B 'make rmconfig' www/linux-f10-flashplugin10
    
    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
    

    
    


    インストール後の設定

    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))