ciao a tutti, sono nuovo di mandrivaitalia.
ho installato il pinguino da una settimana e sono decisamente soddisfatto, però come tutti i bravi newbie ho i miei primi problemi!
Ho cercato di installare il pear sulla mia Mandriva 2005 con Apache2 installato e funzionate e modulo per PHP incluso.
Ho cercato di seguire le istruzioni del sito ufficiale del Pear, dove c'è scritto che sulle versioni più recenti di PHP il pear dovrebbe essere già installato. Purtroppo però se provo ad utilizzare da bash il comando pear non ho nessuna risposta. Quindi ho seguito la guida per l'installazione online, ho eseguito da bash il comando:
<i>lynx -source http://go-pear.org/ | php</i>
putroppo però l'installazione fallisce. Allego la schermata della bash dal comando sopra citato al messaggio d'errore:
<i>[root@localhost nicfury]# lynx -source http://go-pear.org/ | php
Welcome to go-pear!
Go-pear will install the 'pear' command and all the files needed by
it. This command is your tool for PEAR installation and maintenance.
Go-pear also lets you download and install the PEAR packages bundled
with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser, PHPUnit.
If you wish to abort, press Control-C now, or press Enter to continue:
HTTP proxy (http://user:password@proxy.myhost.com:port), or Enter for none::
Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.
1. Installation prefix : /usr
2. Binaries directory : $prefix/bin
3. PHP code directory ($php_dir) : $prefix/share/pear
4. Documentation base directory : $php_dir/docs
5. Data base directory : $php_dir/data
6. Tests base directory : $php_dir/tests
1-6, 'all' or Enter to continue:
The following PEAR packages are bundled with PHP: DB, Net_Socket, Net_SMTP,
Mail, XML_Parser, PHPUnit.
Would you like to install these as well? [Y/n] : Y
Loading zlib: ok
Downloading package: PEAR-stable......ok
Downloading package: Archive_Tar-stable....ok
Downloading package: Console_Getopt-stable....ok
Downloading package: XML_RPC-stable....ok
Bootstrapping: PEAR...................(remote) ok
Bootstrapping: Archive_Tar............(remote) ok
Bootstrapping: Console_Getopt.........(remote) ok
Downloading package: DB...............ok
Downloading package: Net_Socket.......ok
Downloading package: Net_SMTP.........ok
Downloading package: Mail.............ok
Downloading package: XML_Parser.......ok
Downloading package: PHPUnit..........ok
Extracting installer..................ok
parsePackageName(): invalid package name "package.xml" in "package.xml"
Cannot create xml parser for parsing package.xml, no xml extension
Cannot initialize 'package.xml', invalid or missing package file
Package "package.xml" is not valid
install failed
[root@localhost nicfury]# </i>
avete qualche consiglio? devo per forza installare il pear per determinate problematiche di lavoro. Se potete darmi una mano vi ringrazio anticipatamente!
ciao NICFury
aggiungo... ma al posto di $php_dir e le altre variabili devo per forza sostituire qualcosa o poso lasciarle così?
in tal caso sapreste darmi una qualche idea di che path dovrei mettere? grazie mille