wget http://mirrors.kernel.org/gnu/hello/hello-2.7.tar.gz tar xvzf hello-2.7.tar.gz cd hello-2.7 ./configure --help=short
以下のように表示される。
Configuration of GNU Hello 2.7: Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --disable-nls do not use Native Language Support --disable-rpath do not hardcode runtime library paths Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-gnu-ld assume the C compiler uses GNU ld default=no --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib --without-libintl-prefix don't search for libintl in includedir and libdir Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> LIBS libraries to pass to the linker, e.g. -l<library> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to <bug-hello@gnu.org>. GNU Hello home page: <http://www.gnu.org/software/hello/>. General help using GNU software: <http://www.gnu.org/gethelp/>.
ふむふむ。
./configure --prefix=/opt/hello-2.7 make sudo make install
■実行
以下のコマンドを実行する。
hello
以下のように表示される。
Hello, world!
以下のコマンドを実行する。
env LANG=ja_JP.UTF-8 hello
以下のように表示される。
世界よ、こんにちは!