< ページ移動: 1 2 >
# cd /usr/local/src# wget --no-check-certificate https://sourceforge.net/projects/porg/files/porg-0.10.tar.gz
3.configure の実行# tar xvfz porg-0.10.tar.gzporg-0.10/porg-0.10/ChangeLog.pacoporg-0.10/aclocal.m4porg-0.10/doc/porg-0.10/doc/index.htmlporg-0.10/doc/porgrc.5.inporg-0.10/doc/porgball.8.inporg-0.10/doc/grop.png<略>porg-0.10/grop/porgball.hporg-0.10/grop/lock.hporg-0.10/grop/preferences.hporg-0.10/INSTALLporg-0.10/config-bot.h.in# cd porg-0.10
CentOS 6.5 環境 + g++ 4.4.7 という環境だが、そのまま configure を行うと、cc1plus: error: unrecognized command line option "-std=c++11"というエラーが出てしまう。このサイトによると、4.4系だと -std=c++0x にしろということのようなので、そのように修正する。configure ファイルの 17,437行目をMY_CXXFLAGS="$MY_CXXFLAGS -ansi -pedantic -Wall -fno-operator-names -std=c++0x -Wno-deprecated-declarations"と修正した。で、configure 実行。# ./configure --prefix=/usr/local --disable-gropFHS(Filesystem Hierarchy Standard)的には --sysconfdir=/etc を付けるべきだったが、ま、いっか(^^;
# makemake install 時に porg 自体も porg でパッケージとして管理するため、make したばかりの porg を使って make install を行う。# ./porg/porg -lD make installオプションの意味は、'l'がログを取る、'D'がディレクトリ名(porg-0.10)をパッケージ名にするという意。