LinuxForum.Fans
Тема

Pear что это такое ?

Автор: Rassol2 48 сообщений 9749 просмотров
#291150

Решил потыкать одну панельку, она требует модуль Pear

Показать

PHP устанавливалось по ману и собственно :

text
aptitude install php5 libapache2-mod-php5 php5-mysql php5-snmp php5-gd php5-memcache php5-imagick php5-recode php5-xmlrpc php5-xsl php5-mcrypt php5-curl [b]php-pear[/b] php5-imap -y

я ушел в гугл и там нашел только PHP-pear
но как видно с команды выше оно ставилось.

может это что то иное ?
ОС debian 6

на вскидку решил

Показать
text
root@localhost:~# aptitude install pear
Не удалось найти пакет "pear". Однако, следующие 
пакеты содержат "pear" в своём имени:
 [b] pear-horde-channel pysycache-dblclick-appleandpear php-pear pearpc lxappearance [/b]
0 пакетов обновлено, 0 установлено новых, 0 пакетов отмечено для удаления, и 0 пакетов не обновлено.
Необходимо получить 0 B архивов. После распаковки 0 B будет занято.

есть какие то идеи что от меня хочет данный скрипт ?

#291158

В федоре пакетов, имена которых начинаются с php-pear, несколько десятков, наверное тебе ещё что-то надо доустановить.

#291160

Посмотрите в php.ini должно быть что-то похожее на:

text
include_path=".;/path/to/php/pear"

Pear это куча файлов типа Name.php каждый из которых представляет собой отдельный класс.

#291161
"Vascom" написал:
В федоре пакетов, имена которых начинаются с php-pear, несколько десятков,

...в Gentoo тоже.

Показать
text

lupo@gentoo-laptop Desktop % eix -c pear -C dev-php
[N] dev-php/PEAR-Archive_Tar (1.3.9): Tar file management class
[N] dev-php/PEAR-Auth (1.6.4): Provides methods for creating an authentication system using PHP.
[N] dev-php/PEAR-Auth_HTTP ((~)2.1.8): Create HTTP authentication systems similar to Apache's realm-based .htaccess mechanism.
[N] dev-php/PEAR-Auth_SASL (1.0.6): Abstraction of various SASL mechanism responses
[N] dev-php/PEAR-Benchmark (1.2.9): Framework to benchmark PHP scripts or function calls.
[N] dev-php/PEAR-Cache (1.5.6): Framework for caching of arbitrary data
[N] dev-php/PEAR-Cache_Lite (1.7.12): Fast and safe little cache system.
[N] dev-php/PEAR-Calendar ((~)0.5.4): A package for building Calendar data structures.
[N] dev-php/PEAR-Config ((~)1.10.12): Provides methods for configuration manipulation. Your configuration's swiss-army knife.
[N] dev-php/PEAR-Console_Color ((~)1.0.2): This Class allows you to easily use ANSI console colors in your application.
[N] dev-php/PEAR-Console_CommandLine (1.1.3): A full featured command line options and arguments parser
[N] dev-php/PEAR-Console_Getargs ((~)1.3.4): A command-line arguments parser.
[N] dev-php/PEAR-Console_Getopt (1.3.1): Command-line option parser
[N] dev-php/PEAR-Console_Table (1.1.3): Class that makes it easy to build console style tables.
[N] dev-php/PEAR-Crypt_Blowfish ((~)1.1.0_rc2): Allows for quick two-way Blowfish encryption without requiring the MCrypt PHP extension.
[N] dev-php/PEAR-Crypt_CHAP (1.5.0): Generating CHAP packets
[N] dev-php/PEAR-Crypt_GPG ((~)1.3.2): GNU Privacy Guard (GnuPG)
[N] dev-php/PEAR-Crypt_HMAC ((~)1.0.1): Calculates RFC 2104 compliant hashes.
[N] dev-php/PEAR-Crypt_HMAC2 ((~)1.0.0): Implementation of Hashed Message Authentication Code for PHP5
[N] dev-php/PEAR-Crypt_RC4 (1.0.2-r1): Encryption class for RC4 encryption.
[N] dev-php/PEAR-DB (1.7.14): Database abstraction layer for PHP.
[N] dev-php/PEAR-DB_DataObject (1.9.6): A SQL Builder, Object Interface to Database Tables
[N] dev-php/PEAR-Date ((~)1.5.0_alpha1): Date and Time Zone classes.
[N] dev-php/PEAR-File (1.4.0): Common file and directory routines
[N] dev-php/PEAR-File_Archive ((~)1.5.4-r1): Lets you manipulate easily the tar, gz, tgz, bz2, tbz, zip, ar (or deb) files.
[N] dev-php/PEAR-File_Find (1.3.0): A class that facillitates the search of filesystems.
[N] dev-php/PEAR-File_Fortune ((~)1.0.0): Interface for reading from and writing to fortune files.
[N] dev-php/PEAR-File_Gettext (0.4.1-r1): GNU Gettext file parser.
[N] dev-php/PEAR-File_PDF ((~)0.3.2): PDF generation using only PHP, without requiring any external libraries.
[N] dev-php/PEAR-File_Passwd (1.1.7-r1): Manipulate many kinds of password files.
[N] dev-php/PEAR-File_SMBPasswd (1.0.3): Class for managing SAMBA style password files.
[N] dev-php/PEAR-HTML_AJAX ((~)0.5.6): PHP and JavaScript AJAX library.
[N] dev-php/PEAR-HTML_BBCodeParser ((~)1.2.2): Parser to replace UBB style tags with their HTML equivalents.
[N] dev-php/PEAR-HTML_CSS ((~)1.5.4): Provides a simple interface for generating a stylesheet declaration.
[N] dev-php/PEAR-HTML_Common (1.2.5): Base class for other HTML classes.
[N] dev-php/PEAR-HTML_Common2 ((~)2.0.0): Abstract base class for HTML classes (PHP5 port of PEAR-HTML_Common package).
[N] dev-php/PEAR-HTML_Javascript (1.1.2): Provides an interface for creating simple JS scripts within PHP
[N] dev-php/PEAR-HTML_QuickForm ((~)3.2.13): The PEAR::HTML_QuickForm package provides methods for creating, validating, processing HTML forms.
[N] dev-php/PEAR-HTML_QuickForm2 ((~)0.6.1): The PEAR::HTML_QuickForm package provides methods for creating, validating, processing HTML forms.
[N] dev-php/PEAR-HTML_QuickForm_Controller ((~)1.0.10): Add-On for HTML_QuickForm that allows building of multipage forms.
[N] dev-php/PEAR-HTML_QuickForm_ElementGrid (0.1.1): An HTML_QuickForm meta-element which holds any other element in a grid
[N] dev-php/PEAR-HTML_QuickForm_advmultiselect (1.5.1): Element for HTML_QuickForm that emulate a multi-select.
[N] dev-php/PEAR-HTML_Select ((~)1.3.0): HTML_Select is a class for generating HTML form select elements.
[N] dev-php/PEAR-HTML_Table (1.8.3): Makes the design of HTML tables easy, flexible, reusable and efficient.
[N] dev-php/PEAR-HTML_Table_Matrix (1.0.10): Autofill a table with data.
[N] dev-php/PEAR-HTML_Template_Flexy (1.3.12): An extremely powerful Tokenizer driven Template engine
[N] dev-php/PEAR-HTML_Template_IT ((~)1.3.0_alpha2): Integrated Templates
[N] dev-php/PEAR-HTML_Template_Sigma (1.2.0-r1): An implementation of Integrated Templates API with template 'compilation' added
[N] dev-php/PEAR-HTML_TreeMenu (1.2.2): Provides an API to create a HTML tree.
[N] dev-php/PEAR-HTTP (1.4.1-r1): Miscellaneous HTTP utilities.
[N] dev-php/PEAR-HTTP_Client (1.2.1): Provides functionality to perform multiple HTTP requests and process their results.
[N] dev-php/PEAR-HTTP_Download (1.1.4): Provides functionality to send HTTP downloads.
[N] dev-php/PEAR-HTTP_Header (1.2.0): Provides interface to handle and modify HTTP headers and status codes.
[N] dev-php/PEAR-HTTP_Request (1.4.4): Provides an easy way to perform HTTP requests
[N] dev-php/PEAR-HTTP_Request2 (2.0.0): Provides an easy way to perform HTTP requests
[N] dev-php/PEAR-HTTP_Session2 ((~)0.7.3): Wraps PHP's session_* functions, providing extras like db storage for session data.
[N] dev-php/PEAR-HTTP_Upload ((~)1.0.0_beta1): Easy and secure managment of files submitted via HTML Forms.
[N] dev-php/PEAR-HTTP_WebDAV_Server (1.0.0_rc4): WebDAV Server Baseclass.
[N] dev-php/PEAR-I18Nv2 (0.11.4-r1): Internationalization - basic support to localize your application.
[N] dev-php/PEAR-Image_Color2 ((~)0.1.5): Color conversion and mixing for PHP5.
[N] dev-php/PEAR-Image_GraphViz ((~)1.3.0): PHP interface to AT&T's GraphViz tools.
[N] dev-php/PEAR-Image_IPTC (1.0.2-r1): This package provides a mechanism for modifying IPTC header information
[N] dev-php/PEAR-Image_Text (0.6.1): Advanced text manipulations in images.
[N] dev-php/PEAR-Log (1.12.7-r1): The Log framework provides an abstracted logging system.@
[N] dev-php/PEAR-MDB (1.3.0-r1): PEAR MDB is a merge of the PEAR DB and Metabase php database abstraction layers.
[N] dev-php/PEAR-MDB2 (2.5.0_beta3): Database Abstraction Layer
[N] dev-php/PEAR-MDB2_Driver_ibase (1.5.0_beta3): Database Abstraction Layer, ibase driver
[N] dev-php/PEAR-MDB2_Driver_mssql (1.5.0_beta3): Database Abstraction Layer, mssql driver
[N] dev-php/PEAR-MDB2_Driver_mysql (1.5.0_beta3): Database Abstraction Layer, mysql driver
[N] dev-php/PEAR-MDB2_Driver_mysqli (1.5.0_beta3): Database Abstraction Layer, mysqli driver
[N] dev-php/PEAR-MDB2_Driver_oci8 (1.5.0_beta3): Database Abstraction Layer, oci8 driver
[N] dev-php/PEAR-MDB2_Driver_pgsql (1.5.0_beta3): Database Abstraction Layer, pgsql driver
[N] dev-php/PEAR-MDB2_Driver_sqlite (1.5.0_beta3): Database Abstraction Layer, sqlite driver
[N] dev-php/PEAR-MIME_Type (1.3.1): Utility class for dealing with MIME types.
[N] dev-php/PEAR-Mail (1.2.0): Class that provides multiple interfaces for sending emails
[N] dev-php/PEAR-Mail_Mime ((~)1.8.3): Provides classes to deal with creation and manipulation of mime messages
[N] dev-php/PEAR-Mail_mimeDecode (1.5.1): Provides a class to decode mime messages (split from PEAR-Mail_Mime)
[N] dev-php/PEAR-Math_Stats (0.9.0_beta3-r1): Classes to calculate statistical parameters.
[N] dev-php/PEAR-Net_CheckIP (1.2.1): Check the syntax of IPv4 addresses.
[N] dev-php/PEAR-Net_DIME (1.0.2): The PEAR::Net_DIME class implements DIME encoding
[N] dev-php/PEAR-Net_DNS (1.0.7): Resolver library used to communicate with a DNS server.
[N] dev-php/PEAR-Net_DNS2 ((~)1.2.0): Object-oriented PHP5 resolver library used to communicate with a DNS server.
[N] dev-php/PEAR-Net_DNSBL (1.3.6): DNSBL Checker
[N] dev-php/PEAR-Net_FTP ((~)1.4.0_alpha3): Provides an OO interface to the PHP FTP functions
[N] dev-php/PEAR-Net_IDNA2 (0.1.1): Punycode encoding and decoding.
[N] dev-php/PEAR-Net_IMAP (1.1.1): Provides an implementation of the IMAP protocol.
[N] dev-php/PEAR-Net_IPv4 ((~)1.3.4): PEAR class for IP v4 calculations
[N] dev-php/PEAR-Net_IPv6 ((~)1.2.1): PEAR class for IP v6 calculations
[N] dev-php/PEAR-Net_LDAP (1.1.5): OO interface for searching and manipulating LDAP-entries
[N] dev-php/PEAR-Net_LDAP2 (2.0.12): OO interface for searching and manipulating LDAP-entries
[N] dev-php/PEAR-Net_LMTP (1.0.1-r1): Provides an implementation of the RFC2033 LMTP protocol.
[N] dev-php/PEAR-Net_POP3 (1.3.8): Provides a POP3 class to access POP3 server.
[N] dev-php/PEAR-Net_Ping ((~)2.4.5): OS independent wrapper class for executing ping calls.
[N] dev-php/PEAR-Net_SMTP (1.6.1): An implementation of the SMTP protocol
[N] dev-php/PEAR-Net_Server (1.0.3): Generic server class for PHP.
[N] dev-php/PEAR-Net_Sieve (1.3.2): Provides an API to talk to the timsieved server that comes with Cyrus IMAPd
[N] dev-php/PEAR-Net_SmartIRC (1.0.1): Net_SmartIRC is a PHP class for communication with IRC networks
[N] dev-php/PEAR-Net_Socket (1.0.9): class interface to TCP sockets
[N] dev-php/PEAR-Net_Traceroute (0.21.2): OS independet wrapper class for executing traceroute calls
[N] dev-php/PEAR-Net_URL (1.0.15): Easy parsing of URLs
[N] dev-php/PEAR-Net_URL2 (2.0.0): Easy parsing of URLs (PHP5 port of PEAR-Net_URL package).
[N] dev-php/PEAR-Net_UserAgent_Detect (2.5.2): Net_UserAgent_Detect determines the Web browser, version, and platform from an HTTP user agent string.
[N] dev-php/PEAR-Numbers_Roman (1.0.2): Provides methods for converting to and from Roman Numerals.
[N] dev-php/PEAR-Numbers_Words (0.16.2): Provides methods for spelling numerals in words.
[N] dev-php/PEAR-OLE ((~)1.0.0_rc1): Package for reading and writing OLE containers
[N] dev-php/PEAR-PEAR (1.9.4): PEAR Base System
[N] dev-php/PEAR-PEAR_Info ((~)1.9.2-r2): Show Information about your PEAR install and its packages
[N] dev-php/PEAR-PEAR_PackageFileManager ((~)1.7.0): Takes an existing package.xml file and updates it with a new filelist and changelog.
[N] dev-php/PEAR-PEAR_PackageFileManager_Cli ((~)0.3.0): A command line interface to PEAR_PackageFileManager.
[N] dev-php/PEAR-PHP_Beautifier ((~)0.1.15): Code Beautifier for PHP.
[N] dev-php/PEAR-PHP_CodeSniffer ((~)1.3.5): Tokenises PHP code and detects violations of a defined set of coding standards.
[N] dev-php/PEAR-PHP_CompatInfo ((~)1.9.0): Find out the minimum version and the extensions required for a piece of code to run.
[N] dev-php/PEAR-PHP_Debug ((~)1.0.3-r1): Provides traces, timings, executed queries, watched variables etc.
[N] dev-php/PEAR-PHP_Shell ((~)0.3.1-r1): A shell for PHP with history and tab-completion
[N] dev-php/PEAR-Pager (2.4.8): Takes an array of data as input and pages it according to various parameters. It also builds links within a specified range, and allows complete customization of the output
[N] dev-php/PEAR-PhpDocumentor ((~)1.4.4): The phpDocumentor package provides automatic documenting of php api directly from the source.
[N] dev-php/PEAR-SOAP ((~)0.12.0): SOAP Client/Server for PHP 4
[N] dev-php/PEAR-Services_Amazon ((~)0.8.0): Provides access to Amazon's retail and associate web services.
[N] dev-php/PEAR-Services_JSON ((~)1.0.3): PHP implementaion of json_encode/decode
[N] dev-php/PEAR-Services_TinyURL ((~)0.1.2): An interface for creating TinyURLs with their API as well as looking up destinations of given TinyURLs.
[N] dev-php/PEAR-Services_W3C_CSSValidator ((~)0.2.2-r1): Provides an object oriented interface for the W3 CSS Validator
[N] dev-php/PEAR-Services_W3C_HTMLValidator ((~)1.0.0-r1): Object oriented interface to the API of validator.w3.org.
[N] dev-php/PEAR-Services_Weather (1.4.6): This class acts as an interface to various online weather-services
[N] dev-php/PEAR-Spreadsheet_Excel_Writer (0.9.2): Package for generating Excel spreadsheets
[N] dev-php/PEAR-Structures_DataGrid (0.9.0): A tabular structure that contains a record set of data for paging and sorting purposes.
[N] dev-php/PEAR-Structures_Graph (1.0.4): Graph datastructure manipulation library
[N] dev-php/PEAR-System_Command ((~)1.0.7): PEAR::System_Command is a commandline execution interface
[N] dev-php/PEAR-Testing_Selenium ((~)0.4.4): PHP Client for Selenium Remote Control.
[N] dev-php/PEAR-Text_CAPTCHA (0.4.3): Generation of CAPTCHAs.
[N] dev-php/PEAR-Text_CAPTCHA_Numeral ((~)1.3.1): Generates mathematical operations and answers in order to prove that bots using it are human.
[N] dev-php/PEAR-Text_Figlet ((~)1.0.2): Render text using FIGlet fonts.
[N] dev-php/PEAR-Text_Highlighter ((~)0.7.1): A package for syntax highlighting.
[N] dev-php/PEAR-Text_Password (1.1.1): Creating passwords with PHP.
[N] dev-php/PEAR-Text_Wiki ((~)1.2.1): Abstracts parsing and rendering rules for Wiki markup in structured plain text.
[N] dev-php/PEAR-Text_Wiki_BBCode ((~)0.0.4-r1): BBCode parser for Text_Wiki.
[N] dev-php/PEAR-Text_Wiki_Mediawiki ((~)0.2.0): Mediawiki parser for Text_Wiki
[N] dev-php/PEAR-Translation2 (2.0.4): Class for multilingual applications management.
[N] dev-php/PEAR-Tree ((~)0.3.4): Generic tree management, currently supports DB and XML as data sources.
[N] dev-php/PEAR-Validate ((~)0.8.4): Validation class
[N] dev-php/PEAR-Var_Dump ((~)1.0.4): Provides methods for dumping structured information about a variable.
[N] dev-php/PEAR-VersionControl_SVN ((~)0.3.4): Simple OO wrapper interface for the Subversion command-line client.
[N] dev-php/PEAR-XML_Beautifier (1.2.2): XML_Beautifier will add indentation and linebreaks to you XML files, replace all entities, format your comments and makes your document easier to read.
[N] dev-php/PEAR-XML_Feed_Parser ((~)1.0.5): Provides an unified API for handling Atom/RSS
[N] dev-php/PEAR-XML_Parser ((~)1.3.4): XML parsing class based on PHP's SAX parser
[N] dev-php/PEAR-XML_RSS ((~)1.0.1): Parser for Resource Description Framework (RDF) Site Summary (RSS) documents.
[N] dev-php/PEAR-XML_Serializer (0.20.2): Swiss-army knife for reading and writing XML files
[N] dev-php/PEAR-XML_Util (1.2.1-r2): XML utility class
[N] dev-php/pear (1.9.4): PEAR - PHP Extension and Application Repository
Найдено 148 совпадений.

#291172

ага нашел
/etc/php5/cli/php.ini

text
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://php.net/include-path

сейчас попробую комментировать, и посмотрю что изменится.

#291175

что то я туплю :(

#291178
Rassol2 написал:
что то я туплю :(

Возможно pear у вас просто не подключен. Попробуйте добавить в php.ini

text
include_path=".;/$path"

Где $path - путь до папки pear

#291179

Я уже добавил, сейчас ребутну и проверю.

text
include_path is ".;/path/to/php/pear"

Это самый большой конфиг что просматривал. чуть глаза в nano не сломал )))

#291181

уууу, опять ошибка :(

#291182
Rassol2 написал:
Я уже добавил, сейчас ребутну и проверю.
text
include_path is ".;/path/to/php/pear"

Это самый большой конфиг что просматривал. чуть глаза в nano не сломал )))

Есть поиск Ctrl+W

#291183
"Rassol2" написал:
/path/to/php/pear

Путь в самом деле выглядит так? o_O

#291184

судя по выше введенным переменным

text
; UNIX: "/path1:/path2"
;include_path = ".:/usr/share/php"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"

мне нужно вводить

text
include_path=".;/$path"

со знаком двоеточие, а не точка с запятой.

#291185
Lupo Alberto написал:
[quote="Rassol2"]/path/to/php/pear

Путь в самом деле выглядит так? o_O[/quote]
если верить предписанию выше, то да

; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://php.net/include-path
#291186
"Rassol2" написал:
если верить предписанию выше, то да

Не верю, что в вашей системе есть структура каталогов именно такого вида /path/to/php/pear :D

#291189

согласен.

#291191

есть вот это.

text
root@localhost:~# find / -type f -name 'pear'
/usr/bin/pear
root@localhost:~# find / -type d -name 'pear'
/etc/pear
root@localhost:~#

но толи оно ?

#291196
-=Serj=- написал:
Rassol2, здесь посмотрите - http://pear.php.net/manual/en/installation.php

вот теперь точно быть беде :(
там много иностранных букв. Ну ничего попробуем )))))
может что то и выйдет :(

#291199

http://pear.php.net/manual/en/installation.checking.php


Modifying php.ini
To get PEAR working properly, you need to adjust PHP's include_path. After you found php.ini, open it in an editor.

Search for the line include_path.

Now that you found it, you probably will see a semicolon ; at the beginning. This means the line is a comment. Add a new line below it.

In this line, write:

include_path="."
Depending on your operating system, add a : (Unix/Linux/FreeBSD/Mac OS X) or a ; (Windows) after the dot. Add PEAR's php_dir after it. (The directory System.php is located in!)

The result should look like that:

; Unix
include_path=".:/usr/local/php/pear/"
#291200

в моем случаи наверное

text
include_path=".:/usr/share/php/PEAR/"
Войдите или зарегистрируйтесь, чтобы ответить.