Posts Tagged ‘howto’

ERROR: Date_Calc is not installed – Dreamhost

September 2, 2008

ERROR: Date_Calc is not installed. You must install the date library. (with Dreamhost shared hosting)

ssh into ~

pear config-create $HOME .pearrc

install pear:

pear install -o PEAR

then install the date module

pear install pear/date

update the paths (can never get this part to work, so using the other method below)

export PHP_PEAR_PHP_BIN=/usr/local/php5/bin/php
export PATH=/home/*****/pear:/usr/local/php5/bin:$PATH

or include it this way: (index.php)

ini_set(
  'include_path',
  ini_get( 'include_path' ) . PATH_SEPARATOR . "/home/*****/pear/php"
);