カスタム検索
このエントリーをはてなブックマークに追加
tomo.gif (1144 ツバツイツト)line.gif (927 ツバツイツト)line.gif (927 ツバツイツト)line.gif (927 ツバツイツト)To previous pageTo home pageMailing to me

Jcodeのインストール

Modified: 18 December 2005


Jcodeのインストールの確認

以下のコマンドで、Jcodeのインストールの確認をします。

# find `perl -e 'print "@INC"'` -name '*.pm' -print | grep Jcode
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode.pm
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/H2Z.pm
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Constants.pm
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/_Classic.pm
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Tr.pm
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Unicode.pm
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Unicode/NoXS.pm
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Unicode/Constants.pm

インストールされておれば上のように、"Jcode.pm" が表示されます。


ダウンロードします

Jcodeは、以下の本家?からダウンロードできます。

http://openlab.jp/Jcode/index-j.html

CPANからでもOKです。

CPAN modules, distributions, and authors (search.cpan.org)」を開くと検索窓が現れますので、モジュール名("Jcode")を入力して検索するとリストが出てきます。


インストールする

初めての人のために、すべての表示を掲載します。

# tar zxvf Jcode-2.03.tar.gz 
Jcode-2.03
Jcode-2.03/t
Jcode-2.03/t/stripped.euc
Jcode-2.03/t/unibench.pl
Jcode-2.03/t/table.sjis
Jcode-2.03/t/tr.t
Jcode-2.03/t/x0212.ucs2
Jcode-2.03/t/table.euc
Jcode-2.03/t/benchmark.pl
Jcode-2.03/t/convert.t
Jcode-2.03/t/table.ucs2
Jcode-2.03/t/_test_unicode.pl
Jcode-2.03/t/length.t
Jcode-2.03/t/ambiguous.pl
Jcode-2.03/t/table.jis
Jcode-2.03/t/mime.t
Jcode-2.03/t/fun.pl
Jcode-2.03/t/hiragana.euc
Jcode-2.03/t/jfold.t
Jcode-2.03/t/regex.t
Jcode-2.03/t/h2z.t
Jcode-2.03/t/zenkaku.euc
Jcode-2.03/t/x0212.jis
Jcode-2.03/t/table.utf8
Jcode-2.03/t/perl581.t
Jcode-2.03/t/x0212.euc
Jcode-2.03/t/new.t
Jcode-2.03/t/append.t
Jcode-2.03/t/getcode.t
Jcode-2.03/t/hankaku.euc
Jcode-2.03/t/x0212.utf8
Jcode-2.03/Changes
Jcode-2.03/MANIFEST
Jcode-2.03/Jcode
Jcode-2.03/Jcode/Unicode
Jcode-2.03/Jcode/Unicode/Constants.pm
Jcode-2.03/Jcode/Unicode/NoXS.pm
Jcode-2.03/Jcode/_Classic.pm
Jcode-2.03/Jcode/Nihongo.pod
Jcode-2.03/Jcode/H2Z.pm
Jcode-2.03/Jcode/Constants.pm
Jcode-2.03/Jcode/Tr.pm
Jcode-2.03/Unicode
Jcode-2.03/Unicode/Unicode.xs
Jcode-2.03/Unicode/Unicode.pm
Jcode-2.03/Unicode/Makefile.PL
Jcode-2.03/Unicode/uni.c
Jcode-2.03/Unicode/uni2euc.h
Jcode-2.03/Unicode/euc2uni.h
Jcode-2.03/META.yml
Jcode-2.03/Changes.ver0X
Jcode-2.03/Jcode.pm
Jcode-2.03/README
Jcode-2.03/Makefile.PL
# cd Jcode-2.03
# perl Makefile.PL 
Checking if your kit is complete...
Looks good
Writing Makefile for Jcode::Unicode
Writing Makefile for Jcode
# make
cp Jcode/Nihongo.pod blib/lib/Jcode/Nihongo.pod
cp Jcode/H2Z.pm blib/lib/Jcode/H2Z.pm
cp Jcode/Constants.pm blib/lib/Jcode/Constants.pm
cp Jcode/Unicode/NoXS.pm blib/lib/Jcode/Unicode/NoXS.pm
cp Jcode/Unicode/Constants.pm blib/lib/Jcode/Unicode/Constants.pm
cp Jcode/_Classic.pm blib/lib/Jcode/_Classic.pm
cp Jcode.pm blib/lib/Jcode.pm
cp Jcode/Tr.pm blib/lib/Jcode/Tr.pm
make[1]: 入ります ディレクトリ `/home/tomo/Jcode-2.03/Unicode'
cp Unicode.pm ../blib/lib/Jcode/Unicode.pm
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap  Unicode.xs > Unicode.xsc && mv Unicode.xsc Unicode.c
gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686   -DVERSION=\"2.00\" -DXS_VERSION=\"2.00\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"   Unicode.c
Running Mkbootstrap for Jcode::Unicode ()
chmod 644 Unicode.bs
rm -f ../blib/arch/auto/Jcode/Unicode/Unicode.so
LD_RUN_PATH="" gcc  -shared -L/usr/local/lib Unicode.o  -o ../blib/arch/auto/Jcode/Unicode/Unicode.so     
chmod 755 ../blib/arch/auto/Jcode/Unicode/Unicode.so
cp Unicode.bs ../blib/arch/auto/Jcode/Unicode/Unicode.bs
chmod 644 ../blib/arch/auto/Jcode/Unicode/Unicode.bs
Manifying ../blib/man3/Jcode::Unicode.3pm
make[1]: 出ます ディレクトリ `/home/tomo/Jcode-2.03/Unicode'
Manifying blib/man3/Jcode::Nihongo.3pm
Jcode/Nihongo.pod:1: Unknown command paragraph "=encoding euc-jp"
Manifying blib/man3/Jcode::Unicode::Constants.3pm
Manifying blib/man3/Jcode.3pm
Manifying blib/man3/Jcode::Unicode::NoXS.3pm
[root@recipeweb5 Jcode-2.03]# make install
make[1]: 入ります ディレクトリ `/home/tomo/Jcode-2.03/Unicode'
make[1]: 出ます ディレクトリ `/home/tomo/Jcode-2.03/Unicode'
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Jcode/Unicode/Unicode.so
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Jcode/Unicode/Unicode.bs
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Nihongo.pod
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/H2Z.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Constants.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/_Classic.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Tr.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Unicode.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Unicode/NoXS.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Unicode/Constants.pm
Installing /usr/share/man/man3/Jcode::Unicode.3pm
Installing /usr/share/man/man3/Jcode::Nihongo.3pm
Installing /usr/share/man/man3/Jcode::Unicode::Constants.3pm
Installing /usr/share/man/man3/Jcode.3pm
Installing /usr/share/man/man3/Jcode::Unicode::NoXS.3pm
Writing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Jcode/.packlist
Appending installation info to /usr/lib/perl5/5.8.0/i386-linux-thread-multi/perllocal.pod
# make install
make[1]: 入ります ディレクトリ `/home/tomo/Jcode-2.03/Unicode'
make[1]: 出ます ディレクトリ `/home/tomo/Jcode-2.03/Unicode'
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Jcode/Unicode/Unicode.so
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Jcode/Unicode/Unicode.bs
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Nihongo.pod
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/H2Z.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Constants.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/_Classic.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Tr.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Unicode.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Unicode/NoXS.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Jcode/Unicode/Constants.pm
Installing /usr/share/man/man3/Jcode::Unicode.3pm
Installing /usr/share/man/man3/Jcode::Nihongo.3pm
Installing /usr/share/man/man3/Jcode::Unicode::Constants.3pm
Installing /usr/share/man/man3/Jcode.3pm
Installing /usr/share/man/man3/Jcode::Unicode::NoXS.3pm
Writing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Jcode/.packlist
Appending installation info to /usr/lib/perl5/5.8.0/i386-linux-thread-multi/perllocal.pod
#

以上でOKです。

再度以下のコマンドで、Jcodeのインストールの確認をします。

# find `perl -e 'print "@INC"'` -name '*.pm' -print | grep Jcode 

To previous pageTo home pageMailing to meJump to Top of pageline.gif (927 ツバツイツト)line.gif (927 ツバツイツト)tomo.gif (1144 ツバツイツト)
カスタム検索



このエントリーをはてなブックマークに追加