PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Installing PEAR package under ubuntu

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration
View previous topic :: View next topic  
Author Message
JDP91



Joined: 15 Dec 2009
Posts: 1

PostPosted: Tue Dec 15, 2009 2:55 pm    Post subject: Installing PEAR package under ubuntu Reply with quote

Hi,
trying to install a package ($ pear install --alldeps structures_datagrid-0.9.0)
I 1st got :
download directory "/build/buildd/php5-5.2.10.dfsg.1/pear-build-download" is not writeable. Change download_dir config variable to a writeable dir. Change download_dir config variable to a writeable dir
I then modified /etc/pear/pear.conf (in bold):
===================================
#PEAR_Config 0.9
a:31:{s:9:"cache_dir";s:15:"/tmp/pear/cache";s:15:"default_channel";s:12:"pear.php.net";s:16:"preferred_mirror";s:12:"pear.php.net";s:13:"remote_config";s:0:"";s:13:"auto_discover";i:0;s:13:"master_server";s:12:"pear.php.net";s:10:"http_proxy";s:0:"";s:7:"php_dir";s:14:"/usr/share/php";s:7:"ext_dir";s:26:"/usr/lib/php5/20060613+lfs";s:7:"doc_dir";s:18:"/usr/share/php/doc";s:7:"bin_dir";s:8:"/usr/bin";s:8:"data_dir";s:19:"/usr/share/php/data";s:7:"cfg_dir";s:18:"/usr/share/php/cfg";s:7:"www_dir";s:21:"/usr/share/php/htdocs";s:8:"test_dir";s:19:"/usr/share/php/test";s:8:"temp_dir";s:14:"/tmp/pear/temp";s:12:"download_dir";s:52:"/build/buildd/php5-5.2.10.dfsg.1/pear-build-download";s:7:"php_bin";s:12:"/usr/bin/php";s:10:"php_prefix";s:0:"";s:10:"php_suffix";s:0:"";s:7:"php_ini";s:0:"";s:8:"username";s:0:"";s:8:"password";s:0:"";s:7:"verbose";i:1;s:15:"preferred_state";s:6:"stable";s:5:"umask";i:18;s:9:"cache_ttl";i:3600;s:8:"sig_type";s:3:"gpg";s:7:"sig_bin";s:12:"/usr/bin/gpg";s:9:"sig_keyid";s:0:"";s:10:"sig_keydir";s:18:"/etc/pear/pearkeys";}
==============================================================
to /etc/pear/pear.conf as folllows (in bold)
==============================================================
#PEAR_Config 0.9
a:31:{s:9:"cache_dir";s:15:"/tmp/pear/cache";s:15:"default_channel";s:12:"pear.php.net";s:16:"preferred_mirror";s:12:"pear.php.net";s:13:"remote_config";s:0:"";s:13:"auto_discover";i:0;s:13:"master_server";s:12:"pear.php.net";s:10:"http_proxy";s:0:"";s:7:"php_dir";s:14:"/usr/share/php";s:7:"ext_dir";s:26:"/usr/lib/php5/20060613+lfs";s:7:"doc_dir";s:18:"/usr/share/php/doc";s:7:"bin_dir";s:8:"/usr/bin";s:8:"data_dir";s:19:"/usr/share/php/data";s:7:"cfg_dir";s:18:"/usr/share/php/cfg";s:7:"www_dir";s:21:"/usr/share/php/htdocs";s:8:"test_dir";s:19:"/usr/share/php/test";s:8:"temp_dir";s:14:"/tmp/pear/temp";s:12:"download_dir";s:26:"/home/xxxx/Téléchargements";s:7:"php_bin";s:12:"/usr/bin/php";s:10:"php_prefix";s:0:"";s:10:"php_suffix";s:0:"";s:7:"php_ini";s:0:"";s:8:"username";s:0:"";s:8:"password";s:0:"";s:7:"verbose";i:1;s:15:"preferred_state";s:6:"stable";s:5:"umask";i:18;s:9:"cache_ttl";i:3600;s:8:"sig_type";s:3:"gpg";s:7:"sig_bin";s:12:"/usr/bin/gpg";s:9:"sig_keyid";s:0:"";s:10:"sig_keydir";s:18:"/etc/pear/pearkeys";}
===============================================
anf now I get:
Error at offset 661 of 1035 bytes in Config.php on line 1050
ERROR: The default config file is not a valid config file or is corrupted.

Where is my mistake ?
Sad Sad Sad Sad
Back to top
View user's profile Send private message
Fox_Van



Joined: 07 Jan 2010
Posts: 2

PostPosted: Thu Jan 07, 2010 10:28 pm    Post subject: Reply with quote

usuario@equipo:~/$ pear install Log-1.12.0RC1
WARNING: configuration download directory "/build/buildd/php5-5.2.10.dfsg.1/pear-build-download" is not writeable. Change download_dir config variable to a writeable dir to avoid this warning
Cannot install, php_dir for channel "pear.php.net" is not writeable by the current user
usuario@equipo:~/$
usuario@equipo:~/$ pear install Log-1.12.0RC1
WARNING: configuration download directory "/build/buildd/php5-5.2.10.dfsg.1/pear-build-download" is not writeable. Change download_dir config variable to a writeable dir to avoid this warning
Cannot install, php_dir for channel "pear.php.net" is not writeable by the current user
usuario@equipo:~/$ sudo pear install Log-1.12.0RC1
[sudo] password for usuario:
WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
Did not download optional dependencies: pear/DB, pear/MDB2, pear/Mail, use --alldeps to download automatically
pear/Log can optionally use package "pear/DB" (version >= 1.3)
pear/Log can optionally use package "pear/MDB2" (version >= 2.0.0RC1)
pear/Log can optionally use package "pear/Mail"
pear/Log can optionally use PHP extension "sqlite"
downloading Log-1.12.0RC1.tgz ...
Starting to download Log-1.12.0RC1.tgz (44,386 bytes)
............done: 44,386 bytes
install ok: channel://pear.php.net/Log-1.12.0RC1
usuario@equipo:~/$
Back to top
View user's profile Send private message
Fox_Van



Joined: 07 Jan 2010
Posts: 2

PostPosted: Thu Jan 07, 2010 10:30 pm    Post subject: Reply with quote

Arriba se ve que en mi caso que estaba ocurriendo el mismo error solo era que me faltaba ejecutar la instalación del paquete como sudo
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement