702NK / NK II menu

Unicode::Japanese インストール

vCardConv を走らせるための準備(その1)です

注)UNIX 初心者なので、手順が間違っているかもしれません
  この通り実行して不具合が生じても、いっさい責任をとりません!!
  また、この記事に関する質問には答えられません!
  全て、自己責任でお願いします

1. ダウンロード → こちら

2. Mac 上で zip 解凍

3. 解凍したフォルダをデスクトップ上に置いておく

4. ターミナルを起動し、以下のコマンドを打ち込む
=キー入力した文字/=[Enter] /黒=自動的に現れた文字列)

iBook-G4:~ arz$ cd ./Desktop/Unicode-Japanese-0.34[改行]
iBook-G4:~/Desktop/Unicode-Japanese-0.34 arz$ perl Makefile.PL[改行]
>> invoke WriteMakefile **** CONFIGURE **** >> no hints ran (maybe no info on this platform [darwin]) >> enableXS... >> write mediate.c, mediate.h Checking XS Compiling... : cc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -c memmap_unix.c -o memmap_unix.o >> ok, test succeed. check word sizes... compile... : cc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG wordsize.c -o wordsize Writing Makefile for Unicode::Japanese
iBook-G4:~/Desktop/Unicode-Japanese-0.34 arz$ make[改行]
cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" Japanese.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" memmap_common.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" memmap_unix.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" conv.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" ucs2_utf8.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" getcode.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" getcode_map.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" sjis.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" eucjp.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" jis.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" sjis_imode1.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" sjis_imode2.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" sjis_jsky1.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" sjis_jsky2.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" sjis_doti.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" utf16.c cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -DNDEBUG -Os -DVERSION=?"0.34?" -DXS_VERSION=?"0.34?" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -DUJ_UINT32="unsigned int" -DUJ_UINT16="unsigned short" -DUJ_UINT8="unsigned char" mediate.c Running Mkbootstrap for Unicode::Japanese () chmod 644 Japanese.bs rm -f blib/arch/auto/Unicode/Japanese/Japanese.bundle LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib Japanese.o memmap_common.o memmap_unix.o conv.o ucs2_utf8.o getcode.o getcode_map.o sjis.o eucjp.o jis.o sjis_imode1.o sjis_imode2.o sjis_jsky1.o sjis_jsky2.o sjis_doti.o utf16.o mediate.o -o blib/arch/auto/Unicode/Japanese/Japanese.bundle chmod 755 blib/arch/auto/Unicode/Japanese/Japanese.bundle cp Japanese.bs blib/arch/auto/Unicode/Japanese/Japanese.bs chmod 644 blib/arch/auto/Unicode/Japanese/Japanese.bs cp bin/ujguess blib/script/ujguess /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/ujguess cp bin/ujconv blib/script/ujconv /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/ujconv Manifying blib/man3/Unicode::Japanese.3pm
iBook-G4:~/Desktop/Unicode-Japanese-0.34 arz$ make test[改行]
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/0.loadxs................ok t/base....................ok t/emoji...................ok t/fromutf8................ok t/getcode.................ok t/hirakata................ok t/illegal.................ok t/illlet..................ok t/jis.....................ok t/outrange................ok t/toutf8..................ok t/utf16...................ok t/utf8flag................ok t/util....................ok t/v031_getcode_jiskana....ok t/z2h.....................ok All tests successful. Files=16, Tests=770, 5 wallclock secs ( 2.23 cusr + 0.59 csys = 2.82 CPU)
iBook-G4:~/Desktop/Unicode-Japanese-0.34 arz$ sudo make install[改行]
Password:******[改行]
Installing /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/Unicode/Japanese/Japanese.bs Installing /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/Unicode/Japanese/Japanese.bundle Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /Library/Perl/5.8.6/darwin-thread-multi-2level/Unicode/Japanese.pm Installing /usr/local/man/man3/Unicode::Japanese.3pm Installing /usr/bin/ujconv Installing /usr/bin/ujguess Writing /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/Unicode/Japanese/.packlist Appending installation info to //System/Library/Perl/5.8.6/darwin-thread-multi-2level/perllocal.pod
iBook-G4:~/Desktop/Unicode-Japanese-0.34 arz$

これでおしまい

Post