If you write to and save .bash_profile using an FTP editor you will sometimes get this error.
To correct it, log in with Putty (ignoring the error) then use :-
pico -w .bash_profile
to open the file.
Add a space/character somewhere then delete same space/character just to get the modified marker to show.
Now close and save back to .bash_profile with control-o and then control-x
Log off and then back in with Putty and it should be okay.
I did not add those lines to the bash profile I use the lines added to each PHP file as needed.
(This is my .bash_profile if you lose anything )
PS1='[\u@\h \w]\$ '
alias l='ls -als | more'
Where the PS1 environment setting just makes the prompt show me which dimension/universe I am in and the alias is just me being lazy in typing l instead of list!
I think my original domain used PHP4 so I am running PEAR under PHP4 but it will run okay if you use PHP5 on another domain providing you add the lines to your PEAR setup as per the wiki.
Try repeating pear install -a HTML_Common again but this time use the -a option option. It will just overwrite the one already downloaded but may include optional HTML modules as well. If not just install the pear module you ned as per the error the message.
Opinions are my own views and not the views of DreamHost.
Any advice offered by me should be acted upon at your own risk.