[nycphp-talk] Pear Mail error
Jon Baer
jonbaer at jonbaer.com
Mon Mar 20 15:09:30 EST 2006
Normally it would fall into the location of where it was specified in
your ./configure when you built php ...
./configure --with-pear=/my/pear/location
For example on my box is /usr/lib/php
Id try running 'pear install Net_SMTP' or 'pear upgrade Net_SMTP' ...
The one puzzling thing for me is why you would have 2 PEAR locations
here, for example why Zend/Core would need its own setup, Id think it
would be best to have a single location in your include_path and
*before* any additional framework setups.
- Jon
On Mar 20, 2006, at 10:59 AM, Cliff Hirsch wrote:
> I am bringing up a new server and received the following errors
> when trying to send mail. Do I just have a php.ini include path
> problem? It looks like PEAR landed in a strange location. Where do
> you put PEAR files?
>
> Wait a minute -- I think I have two PEAR install on this machine.
> (include_path='.:/usr/local/Zend/Core/share/pear:/var/tmp/php-root/
> usr/share/pear')
> Time for more digging...
>
> ERRNO: 2
> TEXT: Mail_smtp::send(Net/SMTP.php) [function.send]: failed to open
> stream: No such file or directory
> LOCATION: /var/tmp/php-root/usr/share/pear/Mail/smtp.php, line 185,
> at March 20, 2006, 10:34 am
> Showing backtrace:
> Mail_smtp.send() # line 185, file: /var/tmp/php-root/usr/share/
> pear/Mail/smtp.php
>
> ERRNO: 2
> TEXT: Mail_smtp::send() [function.include]: Failed opening 'Net/
> SMTP.php' for inclusion (include_path='.:/usr/local/Zend/Core/share/
> pear:/var/tmp/php-root/usr/share/pear')
> LOCATION: /var/tmp/php-root/usr/share/pear/Mail/smtp.php, line 185,
> at March 20, 2006, 10:34 am
> Showing backtrace:
> Mail_smtp.send() # line 185, file: /var/tmp/php-root/usr/share/
> pear/Mail/smtp.php
>
> ERRNO: 2
> TEXT: __autoload(/var/www/html/business_objects/net_smtp.php)
> [function.--autoload]: failed to open stream: No such file or
> directory
> LOCATION: /var/www/html/include/app_top.php, line 22, at March 20,
> 2006, 10:34 am
> Showing backtrace:
> __autoload() # line 22, file: /var/www/html/include/app_top.php
> __autoload("Net_SMTP") # line 189, file: /var/tmp/php-root/usr/
> share/pear/Mail/smtp.php
> Cliff Hirsch
> ______________________________
> Pinestream Communications, Inc.
> Publisher of Semiconductor Times & Telecom Trends
> 52 Pine Street, Weston, MA 02493 USA
> Tel: 781.647.8800, Fax: 781.647.8825
> http://www.pinestream.com
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
> New York PHP Conference and Expo 2006
> http://www.nyphpcon.com
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20060320/50883427/attachment.html>
More information about the talk
mailing list