Created
November 15, 2012 15:53
-
-
Save tdkn/4079338 to your computer and use it in GitHub Desktop.
CentOS6.3にscrotをインストール
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 作業ディレクトリへ | |
$ cd /tmp | |
# http://linuxbrit.co.uk/downloads/ から scrot の src.rpm をゲット。 | |
# '*' はバージョン数 | |
$ wget http://linuxbrit.co.uk/downloads/scrot*.src.rpm | |
# rpmbuild入って無かったので入れた | |
$ sudo yum install rpm-build | |
# ソースRPMをインストール(必要ファイルが~/rpmbuild配下に展開される) | |
$ rpm -ivh scrot*.src.rpm | |
# Copyright: BSD の行を License: BSD に書き換える | |
$ vi ~/rpmbuild/SPECS.scrot.spec | |
# バイナリパッケージをビルド | |
# 途中でライブラリが無いとか言われたら yum で入れる (yum install giblib-devel libXext-devel freetype-devel) | |
$ rpmbuild -bb --define="__check_files %{nil}" scrot.spec | |
# scrot をインストール | |
$ sudo rpm -ivh ~/rpmbuild/RPMS/i386/scrot*i386.rpm | |
# [参考文献] | |
# | |
# makeで「/usr/bin/ld: cannot find」と表示されるときは | |
# http://www.atmarkit.co.jp/flinux/rensai/linuxtips/a115makeerror.html | |
# | |
# RPMパッケージのリビルドで.specにエラーが発生するときは | |
# http://www.atmarkit.co.jp/flinux/rensai/linuxtips/a071rpmerror.html | |
# | |
# 「インストール済み(ただし未伸張)ファイルが見つかりました」の対処 | |
# http://d.hatena.ne.jp/bokuju/20100830/1283138481 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment