Stop data retention! Click here & act! Are you a webmaster and want to participate? Here you can find all necessary material for your website - Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:
Chris Karakas Online Forum Index Karakas Online
 FAQFAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
How to install all PEAR modules at once



 
Post new topic   Reply to topic
   Chris Karakas Online Forum Index -> PHP Forum RSS Feed of this Forum
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea  View previous topic :: View next topic  
Author Message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6262
Location: Outer Space

PostPosted: Sun Sep 05, 2004 11:40 pm    Post subject: How to install all PEAR modules at once
Reply with quote

Question Problem: You want to install, if not all, then at least almost all PEAR modules in your local PHP system. Maybe you are a developer and need them all. Maybe you are traveling around a lot and you are offline each and every time you need a specific PEAR module, so you would like to grab them all at once. Maybe you want to see how they are programmed and learn from them. Or maybe you just hate having to install a new PEAR module every so often.

There are many reasons why you would like to download and install the whole PEAR library - but there is no way to do this officially! Sad

I have searched the Web and, unless I am becoming progressively blind, I have not been able to find any single tar.gz or zip package that would allow a one-click installation of the whole PEAR module library.

Maybe there are reasons behind such a decision of the PEAR developers. Maybe they wanted to save bandwidth. Or maybe they did not want to load your system with modules you might never need.

Or maybe they wanted to make you hate PHP just as you hate Perl for its eternal and never-ending module installations - installations you just hate to make at a time you are interested in only one thing and nothing else: run that f....fine script of yours!

Happily, if you are working under Linux, the force is with you:

Arrow Solution:I am assuming that you are running PHP > 4.3.0, so that you already have the PEAR Package Manager installed on your system. To download all PEAR packages at once, you have first to get a list of them:

Code:

pear remote-list | awk '{print $1}' > pear-list


Edit the pear-list file manually - most probably you will only need to delete the first 2 lines of header text, that's all!

Now type

Code:

cat pear-list | xargs -n 1 pear install


Some packages may fail to be installed, in this case just rerun the above once more:

Code:

cat pear-list | xargs -n 1 pear install


You may not manage to get them all installed (this depends on the versions of your installed components), but you will at least have 99% of them - and that's enough for the start. Wink

Arrow Note: Would you like to be able to type such magic incantations yourself? Are you impressed by the power of the command-line? Have a look in the GNU/Linux command-line tools summary.
_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
moverspacker
Private
Private


Joined: 20 Mar 2010
Posts: 1
Location: New Delhi

PostPosted: Sat Mar 20, 2010 8:12 am    Post subject:
Reply with quote

This is a very helpful posting.

I wants to know how i can make changes in php.ini. If there is no any php.ini at my server side how i can send emails.
_________________
Sansar Grewal
Packers And Movers, Cheap Airlines Tickets in India
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea 
Display posts from previous:   
Post new topic   Reply to topic
   Chris Karakas Online Forum Index -> PHP Forum
Page 1 of 1
This page contains valid HTML 4.01 Transitional - click here to check it!
This page contains a valid CSS - click here to check it!

 

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


Powered by phpBB © 2001, 2005 phpBB Group