PEAR upgrade fails due to tmp directory permissions
Submitted by Bram Schoenmakers on 22 November, 2007 - 22:25.
While upgrading the PEAR port from 1.6.2 to 1.6.2_1 in FreeBSD, I got the following error:
mkdir failed:
******************************************************************************
FATAL ERROR! We cannot initialize the temp directory. Please be sure to give
full write access to this directory and the install directory.
'/tmp' was given.sed: /usr/local/share/pear/peclcmd.php: No such file or directory
*** Error code 1
Stop in /usr/ports/devel/pear.
*** Error code 1
This basically means that the open_basedir restriction is in effect. A bit strange, a little investigation showed me that the issue has been solved since somewhere in 2006.
So relaxing the open_basedir (temporary) may solve this issue. But for now, I'm looking for a better solution.