2006년 12월 16일 토요일

Linux에서 CPAN 모듈 설치..

date: 2008.4.22
10번 서버에 모듈 설치 중
DBD::mysql에서 오류 발생
* DBD-mysql-3.0002 까지 version을 내려서 설치함 - 아래 설명이 있었음.

date: 2007.4.20
새로운 Linux서버에 모듈 설치 중
DBI는 설치가 됐는데..DBD::mysql 가 설치가 안된다. 버젼을 낮춰야 할까?

Q. 뭐냐? Time::Format이 오류가 발생해서 Time::Simple로 대체 함
A. Date::Manip 을 설치한 후 Time::Format을 설치하면 됨

Q. Net::MySQL 설치가 안되네
Try:  
     install Digest::SHA1 설치 해보려 한다.
     install YAML 설치
Result:
    설치는 되지만 뭔가 이상이 있음 아래의 case실행 하려 함

Q. install Bundle::DBD::mysql 설치 안됨
Try:
  install Digest::SHA

* DBD-mysql-3.0002 까지 version을 내려서 설치함
  mysql root의 password를 없애야 설치 가능함

# .bashrc
# 여기에 mysql의 설치 위치를 정의 해야 함
export LANG=C

PATH=$PATH:/usr/local/mysql/bin
export PATH

Q. WWW::Mechanize 를 설치하기 위해 필요한 모듈 들
        Test::Pod
        Test::Memory::Cycle
        Test::Warn
        Test::Taint
       
Q. install Spreadsheet::ParseExcel
       OLE::Storage_Lite
       Jcode.pm    (if you are using FmtJapan, or FmtJapan2)
       Unicode::Map    (if you are using FmtJapan2 or FmtUnicode)
       IO::Scalar if PERLIO is not available
       Spreadsheet::WriteExcel (to use Spreadsheet::ParseExcel::SaveParser)

Q. install Number::Format

html2xls.pl 을 사용하기 위해 필요한 module - 2007.5.30
Spreadsheet::WriteExcel
 Unicode::String
 install Unicode::Map
 install Date::Manip

========================

The easiest way to install Perl modules on Linux is by using the CPAN module. Login to your server by SSH or Telnet as root. Then type:-
perl -MCPAN -e shell;
If this is the first time you have used this method then you will need to answer a few configuration questions. Make sure you answer these correctly (usually just do what it suggests). If it suggests 'yes' then type 'yes' not 'y' or 'return'. If it offers automatic config then go for it. From now all you have to do to install Perl modules is type:-
install MODULENAME
From the CPAN shell. The CPAN module will do all the installing for you. Most usefully it'll install any dependencies. So if a module requires others in able to work, installing perl modules this way will install them all for you. This can save a lot of time. Note that this method always tests a module before installing. Some modules will pass most tests and fail on some because the module is old but still working perfectly well. If this is the case, for example with the LWP module, you must force the install by typing:-
force install LWP


Suggested modules to install

From time to time you'll need to install or update new perl modules. Here is a list of common modules that you'll probably want to install at some point. Get them done now and you'll save time later. It only takes 2 minutes using the methods above! (Note. if installing on windows, swap :: in module names for - to make DBD-mysql).

  • LWP
  • DBI
  • DBD::mysql
  • DBD::ODBC
  • URI
  • CGI
  • CGI::Carp
  • Image::Size
  • Archive::Zip
  • Compress::Zlib


install HTTP::Response
install DBI


install LWP
install DBI
install DBD::mysql
install DBD::ODBC
install URI
install CGI
install CGI::Carp

install Module::Build::Compat
install Image::Size

install Archive::Zip
install Compress::Zlib

install URI::Escape

install HTTP::Request::Common

instsll Time::Format

install WWW::Mechanize

4.20 추가
install Digest::SHA1
install YAML
install Net::MySQL


install Date::Manip
install Date::Format
install Date::Simple

댓글 없음:

댓글 쓰기