Troubles using sudo and pear

From: Date: Wed, 09 Feb 2005 14:31:27 +0000
Subject: Troubles using sudo and pear
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17452@lists.php.net to get a copy of this message
Hi all, I am trying to run pear as a regular user ( wheel group ) through sudo, and it seems to create a parallel PEAR install. Symptoms: robert@linux:~> sudo pear install -o phpdocumentor downloading PhpDocumentor-1.2.3.tgz ... Starting to download PhpDocumentor-1.2.3.tgz (2,656,621 bytes) .............................................................................................................................................................................................................................................................................................................................................................................................................................done: 2,656,621 bytes downloading Archive_Tar-1.2.tgz ... Starting to download Archive_Tar-1.2.tgz (14,792 bytes) ...done: 14,792 bytes install ok: Archive_Tar 1.2 robert@linux:~> sudo pear list Installed packages: ===================
Package       Version State
Archive_Tar   1.2     stable
PhpDocumentor 1.2.3 stable robert@linux:~> Running pear as root gives me the correct package listing. I am running pear 4.3.4 (RPMs) on Suse 9.1 with a fresh PEAR install. How can I manage PEAR with sudo ( su - is not acceptable) ? Thanks, Robert

« previous php.pear.general (#17452) next »