Re: [PHP] Installing PEAR
At 01:44 PM 1/25/2011, Shawn McKenzie wrote: On 01/25/2011 11:25 AM, Nilesh Govindarajan wrote: > On 01/25/2011 10:32 PM, Ethan Rosenberg wrote: >> Dear List -- >> >> How do install PEAR on Linux? I installed lynx and as root, I ran the >> command lynx -source http://pear.php.net/go-pear | php. It seemed to >> install, but the command pear did not work. From the root directory I >> ran the command find . -name pear. There was no file found. I also >> tried Pear, with the same results. >> >> Help and advice, please. >> >> Ethan >> >> MySQL 5.1 PHP 5.3.3-6 Linux [Debian (sid)] >> >> > > If you are using php from the repositories, there must be a pear package > as well in the repos. Check for them. > Yes, I'm on Ubuntu and just used 'apt-get install php-pear'. -- Thanks! -Shawn http://www.spidean.com -- Used apt-get install php-pear. It works!! Thanks to all. Ethan PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing PEAR
On Tue, Jan 25, 2011 at 13:33, Ethan Rosenberg wrote: > > As far as I can tell, the PHP is installed directly on my computer. Now > what? From the command line, type: which pear If it gives you a path, PEAR is installed, and you can use it as you desire. If it indicates that nothing was found, then you need to install it. PEAR is not part of the PHP packages provided by any OS vendors (or any package maintainers of which I'm aware). -- Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing PEAR
At 12:25 PM 1/25/2011, Nilesh Govindarajan wrote: On 01/25/2011 10:32 PM, Ethan Rosenberg wrote: > Dear List -- > > How do install PEAR on Linux? I installed lynx and as root, I ran the > command lynx -source http://pear.php.net/go-pear | php. It seemed to > install, but the command pear did not work. From the root directory I > ran the command find . -name pear. There was no file found. I also > tried Pear, with the same results. > > Help and advice, please. > > Ethan > > MySQL 5.1 PHP 5.3.3-6 Linux [Debian (sid)] > > If you are using php from the repositories, there must be a pear package as well in the repos. Check for them. -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr Website: http://www.itech7.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Thanks. As far as I can tell, the PHP is installed directly on my computer. Now what? Ethan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing PEAR
Am 25.01.2011 20:09, schrieb Daniel Brown: > On Tue, Jan 25, 2011 at 14:07, Ronny Tiebel wrote: >> oh, ok, sorry for that. >> ive missunderstood your post. >> >> but he wrote that he's using debian sid so its a possible solution for him. >> >> never mind >> >> just wanted to help > It is helpful, just correcting for the archives. Nothing against > you at all, and no need to apologize. > > I think the solutions you guys have given the OP are just what he needs. > Yes indeed, i didnt realized during writing that ive generalized that over all linux distributions. so youre right at that point. ;) Best Regards, Ronny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing PEAR
On Tue, Jan 25, 2011 at 14:07, Ronny Tiebel wrote: > oh, ok, sorry for that. > ive missunderstood your post. > > but he wrote that he's using debian sid so its a possible solution for him. > > never mind > > just wanted to help It is helpful, just correcting for the archives. Nothing against you at all, and no need to apologize. I think the solutions you guys have given the OP are just what he needs. -- Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing PEAR
Am 25.01.2011 20:01, schrieb Daniel Brown: > On Tue, Jan 25, 2011 at 13:54, Ronny Tiebel wrote: >> ubuntu (10.10) == debian sid, so there are no diferences on that > I didn't need an explanation of what equals what, I was correcting > your generalized statement that apt-get worked on Linux. Consider RH > derivatives, SUSE, et al --- yes, I know you can get apt to work on > them, too, but that introduces complexity. The OP is using Debian, > but not all users who check the archives for a solution, who may come > across your message, will be using it. The correction was for that > purpose. > oh, ok, sorry for that. ive missunderstood your post. but he wrote that he's using debian sid so its a possible solution for him. never mind just wanted to help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing PEAR
On Tue, Jan 25, 2011 at 13:54, Ronny Tiebel wrote: > > ubuntu (10.10) == debian sid, so there are no diferences on that I didn't need an explanation of what equals what, I was correcting your generalized statement that apt-get worked on Linux. Consider RH derivatives, SUSE, et al --- yes, I know you can get apt to work on them, too, but that introduces complexity. The OP is using Debian, but not all users who check the archives for a solution, who may come across your message, will be using it. The correction was for that purpose. -- Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing PEAR
(sorry for top post) As he mentioned using lynx ( and I'm assuming the OS rather than the browser here, as I'm not aware of the browser having those sorts of capabilities) then could it be that all the pear packages don't exist? Mostly, pear packages can just be copied into your app directories or in an include path that apache is aware of and things will just work, so that might be a viable solution if the repositories don't work out. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Shawn McKenzie" Date: Tue, Jan 25, 2011 18:44 Subject: [PHP] Installing PEAR To: "Nilesh Govindarajan" Cc: On 01/25/2011 11:25 AM, Nilesh Govindarajan wrote: > On 01/25/2011 10:32 PM, Ethan Rosenberg wrote: >> Dear List -- >> >> How do install PEAR on Linux? I installed lynx and as root, I ran the >> command lynx -source http://pear.php.net/go-pear | php. It seemed to >> install, but the command pear did not work. From the root directory I >> ran the command find . -name pear. There was no file found. I also >> tried Pear, with the same results. >> >> Help and advice, please. >> >> Ethan >> >> MySQL 5.1 PHP 5.3.3-6 Linux [Debian (sid)] >> >> > > If you are using php from the repositories, there must be a pear package > as well in the repos. Check for them. > Yes, I'm on Ubuntu and just used 'apt-get install php-pear'. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing PEAR
On Tue, Jan 25, 2011 at 13:43, Ronny Tiebel wrote: > > erm, on linux you could just install it with apt/aptitude !? 's/linux/Ubuntu or Debian as root' -- Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing PEAR
Am 25.01.2011 18:25, schrieb Nilesh Govindarajan: > On 01/25/2011 10:32 PM, Ethan Rosenberg wrote: >> Dear List -- >> >> How do install PEAR on Linux? I installed lynx and as root, I ran the >> command lynx -source http://pear.php.net/go-pear | php. It seemed to >> install, but the command pear did not work. From the root directory I >> ran the command find . -name pear. There was no file found. I also >> tried Pear, with the same results. >> >> Help and advice, please. >> >> Ethan >> >> MySQL 5.1 PHP 5.3.3-6 Linux [Debian (sid)] >> >> > If you are using php from the repositories, there must be a pear package > as well in the repos. Check for them. > Hi Ethan, erm, on linux you could just install it with apt/aptitude !? e.g. aptitude install php5-pear after installing that package you could simply type "pear" at your shell and install pear packages or what ever you want to do with it ;) Regards, Ronny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing PEAR
On 01/25/2011 11:25 AM, Nilesh Govindarajan wrote: > On 01/25/2011 10:32 PM, Ethan Rosenberg wrote: >> Dear List -- >> >> How do install PEAR on Linux? I installed lynx and as root, I ran the >> command lynx -source http://pear.php.net/go-pear | php. It seemed to >> install, but the command pear did not work. From the root directory I >> ran the command find . -name pear. There was no file found. I also >> tried Pear, with the same results. >> >> Help and advice, please. >> >> Ethan >> >> MySQL 5.1 PHP 5.3.3-6 Linux [Debian (sid)] >> >> > > If you are using php from the repositories, there must be a pear package > as well in the repos. Check for them. > Yes, I'm on Ubuntu and just used 'apt-get install php-pear'. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing PEAR
On 01/25/2011 10:32 PM, Ethan Rosenberg wrote: > Dear List -- > > How do install PEAR on Linux? I installed lynx and as root, I ran the > command lynx -source http://pear.php.net/go-pear | php. It seemed to > install, but the command pear did not work. From the root directory I > ran the command find . -name pear. There was no file found. I also > tried Pear, with the same results. > > Help and advice, please. > > Ethan > > MySQL 5.1 PHP 5.3.3-6 Linux [Debian (sid)] > > If you are using php from the repositories, there must be a pear package as well in the repos. Check for them. -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr Website: http://www.itech7.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Installing PEAR
Dear List -- How do install PEAR on Linux? I installed lynx and as root, I ran the command lynx -source http://pear.php.net/go-pear | php. It seemed to install, but the command pear did not work. From the root directory I ran the command find . -name pear. There was no file found. I also tried Pear, with the same results. Help and advice, please. Ethan MySQL 5.1 PHP 5.3.3-6 Linux [Debian (sid)] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Installing PEAR on machines without internet access.
I've been going through the hoops documenting installation and recovery notes for my customer sites. The majority of these run local web services with no internet access from the servers, so with the increasing reliance on PEAR extensions, I'm looking to the correct way to 'install' PEAR packages. Currently I just clone the PEAR directory from another machine. Is this the only way ? -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing PEAR on Windows
[EMAIL PROTECTED] wrote: Hi Matt (et al), I've added the c:\www\pear path to both the windows path and also the path in the php.ini file. However it's still coming up with the same error. Is there a way of putting in a temporary path in the go-pear.php file? Yes... ini_set('include_path', 'yourpath'). When I installed PHP5 I had a slight problem... my existing pear installation (with different path etc. from PHP4) was changing the path every time that it ran. If you are also upgrading, it could happen at several points: Your environment variables (PHP_INSTALL_DIR, others) Your pear.bat file Your PEAR.php file Rogue php.ini file (perhaps in system root) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing PEAR on Windows
Hi Matt (et al), I've added the c:\www\pear path to both the windows path and also the path in the php.ini file. However it's still coming up with the same error. Is there a way of putting in a temporary path in the go-pear.php file? Nunners Quoting "Matt M." <[EMAIL PROTECTED]>: > > Warning: main(PEAR.php): failed to open stream: No such file or directory > in C:\ > > www\pear\Archive\Tar.php on line 21 > > > > Fatal error: main(): Failed opening required 'PEAR.php' > (include_path='/C:\DOCUM > > E~1\ADMINI~1.DEV\LOCALS~1\Temp\gop1.tmp') in C:\www\pear\Archive\Tar.php on > line > > 21 > > > pear is requiring that PEAR.php be included in the script and it can't > find it. I think adding C:\www\pear\ to your include path might solve > this problem > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing PEAR on Windows
> Warning: main(PEAR.php): failed to open stream: No such file or directory in C:\ > www\pear\Archive\Tar.php on line 21 > > Fatal error: main(): Failed opening required 'PEAR.php' (include_path='/C:\DOCUM > E~1\ADMINI~1.DEV\LOCALS~1\Temp\gop1.tmp') in C:\www\pear\Archive\Tar.php on line > 21 > pear is requiring that PEAR.php be included in the script and it can't find it. I think adding C:\www\pear\ to your include path might solve this problem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Installing PEAR on Windows
I've had no luck with the PEAR General List... so... I've successfully "manually" installed PEAR onto my windows server after trying many attempts at installing it properly - however, it's prooving a pain in the arse to upgrade the packages, and install any new ones. So, can anyone assist in why it won't install? Loading zlib: ok Using local package: PEAR.ok Using local package: Archive_Tar..ok Using local package: Console_Getoptok Using local package: XML_RPC..ok Bootstrapping: PEAR...(local) ok Bootstrapping: Archive_Tar Bootstrapping: Console_Getopt. Using local package: DB...ok Using local package: Net_Socket...ok Using local package: Net_SMTP.ok Using local package: Mail.ok Using local package: XML_Parser...ok Using local package: PHPUnit..ok Extracting installer.. Warning: main(PEAR.php): failed to open stream: No such file or directory in C:\ www\pear\Archive\Tar.php on line 21 Fatal error: main(): Failed opening required 'PEAR.php' (include_path='/C:\DOCUM E~1\ADMINI~1.DEV\LOCALS~1\Temp\gop1.tmp') in C:\www\pear\Archive\Tar.php on line 21 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Installing PEAR on windows
Hi people, I have a question, i would like to use PEAR in some of my applications, how can i download and iinstall PEAR on windows. I have Apache 2.0.43 with PHP 4.3.0 RC3 installed on a windows XP machine. I read on http://pear.php.net/manual/en/faq.windows.php . To make PEAR work on Windows, you simple need to add the PEAR installation dir (e.g. c:\php\pear) to the include_path directive in your php.ini. Well i thats easy, but i dont have a pear directory? Making a new directory is easy also;-), but.. How and where do i download and instal the PEAR packages on my machine... Thanks... Best regards,.. Davy Obdam mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing PEAR
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes >Ok, IM a bit confused as to how PEAR is installed. I read through the README >file in the php source but found no explanation. > >I am tryin to use the PEARs DB abstracion. I have DB.php and DB/ in >/usr/local/lib/php. I added: 'include_once(DB/mysql.php);' to the top of my >script but it failed since it is not finding it. Do I need to assign a path in >the php.ini file or have I missed an installation step? > >Can somebody please explain or point me to some docs on how I get up and going >with PEAR. Hi, Try something like: query ($sql))) handle_db_error ($result); else $resultArray = $result -> fetchRow (DB_FETCHMODE_ASSOC); $db_con -> commit(); if ($db_con && (! $usePersistentConnects)) $db_con -> disconnect(); ?> I hope the line wraps still leave the above readable. I made a separate function of my own, handle_db_error (), to handle errors - you might like to do something like: echo DB::errorMessage($result); ... instead. I recommend putting all the db connection stuff in a file which resides outside of the document root and including it where you need it. The following links may prove useful - the user comments in the phpbuilder article were particularly helpful in pointing me in the right direction. http://cvs.php.net/viewcvs.cgi/php4/pear/DB/ http://www.phpdoc.de/pear/index2.html http://www.phpbuilder.com/columns/allan20010115.php3 http://pear.php.net http://www.php.net/manual/en/pear.php All the best, -- Paul Rees Web Application Programmer/Developer surfEU.com GmbH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Installing PEAR
Ok, IM a bit confused as to how PEAR is installed. I read through the README file in the php source but found no explanation. I am tryin to use the PEARs DB abstracion. I have DB.php and DB/ in /usr/local/lib/php. I added: 'include_once(DB/mysql.php);' to the top of my script but it failed since it is not finding it. Do I need to assign a path in the php.ini file or have I missed an installation step? Can somebody please explain or point me to some docs on how I get up and going with PEAR. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]