LoginSignup
3
3

More than 5 years have passed since last update.

unzipコマンドの日本語パッチ

Last updated at Posted at 2014-11-19

unzipコマンドが日本語ファイル名だと文字化けるので対応。

# cd /usr/local/src/
# wget 'http://sourceforge.jp/frs/g_redir.php?m=jaist&f=%2Finfozip%2FUnZip+6.x+%28latest%29%2FUnZip+6.0%2Funzip60.tar.gz' -O unzip60.tar.gz
# tar zxvf unzip60.tar.gz
# cd unzip60
# yum -y install bzip2-devel.x86_64
# wget http://gist.github.com/raw/573753/unzip-6.0-japanese_charset.patch
# patch -p1 < unzip-6.0-japanese_charset.patch
# make -f unix/Makefile LOCAL_UNZIP="-D_FILE_OFFSET_BITS=64 -DNO_LCHMOD -D_MBCS -DNO_WORKING_ISPRINT" generic_gcc
# make -f unix/Makefile LOCAL_UNZIP="-D_FILE_OFFSET_BITS=64 -DNO_LCHMOD -D_MBCS -DNO_WORKING_ISPRINT" install
# which unzip
/usr/local/bin/unzip
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3