PEAR upgrade : Failed to open stream: Permission denied

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

PEAR upgrade : Failed to open stream: Permission denied

Postby chriska » 26. January 2007 13:30

Hallo Ihr,

ich benötige die PEAR-Klasse HTML_Quickform_Renderer_Tableless für mein xampp unter Windows und meine Linux-VM. Auf der Linux hat die Installation problemlos funktioniert, aber unter Win gibt es Schwierigkeiten. Ich habe schon rumgesucht, bin jetzt aber verzweifelt und resigniert :( . Wer kann mir helfen:


D:\Programme\xampp\php\pear\OS>pear upgrade -f --alldeps html_quickform
downloading HTML_QuickForm-3.2.7.tgz ...
Starting to download HTML_QuickForm-3.2.7.tgz (102,475 bytes)
.........done: 102,475 bytes
downloading HTML_Common-1.2.3.tgz ...
Starting to download HTML_Common-1.2.3.tgz (4,746 bytes)
...done: 4,746 bytes
Could not copy E:\xampp\php\pear\HTML\Common.php to E:\xampp\php\pear\HTML\Commo
n.php.bak failed to open stream: Permission denied
ERROR: commit failed
Could not copy E:\xampp\php\pear\HTML\QuickForm.php to E:\xampp\php\pear\HTML\Qu
ickForm.php.bak failed to open stream: Permission denied
ERROR: commit failed

Irgendwie darf die DOS-Konsole nicht auf die PEAR-Dateien zugreifen. Warum? Was muss ich ändern?
chriska
 
Posts: 4
Joined: 26. January 2007 12:37

Postby Wiedmann » 26. January 2007 13:53

rgendwie darf die DOS-Konsole nicht auf die PEAR-Dateien zugreifen. Warum?

Ich würde sagen weil dein PEAr installer die falschen Pfade benutzt?

du bist in:
D:\Programme\xampp\php\pear\OS\

und er will was in:
E:\xampp\php\pear\HTML\
machen.

BTW:
Wie findet der bei dir eigentlich die "pear.bat", wenn du im Verzeichnis "D:\Programme\xampp\php\pear\OS\" bist? Die Batchdatei ist doch IMHO in "D:\Programme\xampp\php\" wo du auch beim Aufruf sein solltest. (ist das noch die orginale Batch?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

PATH ist gesetzt

Postby chriska » 26. January 2007 14:31

Hi,

die PATH Variable ist gesetzt, deshalb kann ich pear.bat von egal wo ausführen. Meine PEAR-Konfiguration ist:


C:\Dokumente und Einstellungen\506>pear config-show
CONFIGURATION (CHANNEL PEAR.PHP.NET):
=====================================
Auto-discover new Channels auto_discover <not set>
Default Channel default_channel pear.php.net
HTTP Proxy Server Address http_proxy <ist richtig gesetzt>
PEAR server [DEPRECATED] master_server pear.php.net
Default Channel Mirror preferred_mirror pear.php.net
Remote Configuration File remote_config <not set>
PEAR executables directory bin_dir d:\Programme\xampp\php

PEAR documentation directory doc_dir d:\Programme\xampp\php\pear\docs

PHP extension directory ext_dir d:\Programme\xampp\php\ext
PEAR directory php_dir d:\Programme\xampp\php\pear
PEAR Installer cache directory cache_dir d:\Programme\xampp\tmp
PEAR data directory data_dir d:\Programme\xampp\php\pear\data

PEAR Installer download download_dir d:\Programme\xampp\tmp
directory
PHP CLI/CGI binary php_bin d:\Programme\xampp\php\php.exe
php.ini location php_ini <not set>
PEAR Installer temp directory temp_dir C:\DOKUME~1\506\LOKALE~1\Temp\pe
ar\temp
PEAR test directory test_dir d:\Programme\xampp\php\pear\test
s
Cache TimeToLive cache_ttl 3600
Preferred Package State preferred_state stable
Unix file mask umask 0
Debug Log Level verbose 1
PEAR password (for password <not set>
maintainers)
Signature Handling Program sig_bin c:\gnupg\gpg.exe
Signature Key Directory sig_keydir d:\Programme\xampp\php\pearkeys
Signature Key Id sig_keyid <not set>
Package Signature Type sig_type gpg
PEAR username (for username <not set>
maintainers)
User Configuration File Filename d:\Programme\xampp\php\pear.ini
System Configuration File Filename d:\Programme\xampp\php\pearsys.i
ni

Ich bin mit meinem Latein echt am Ende ...
chriska
 
Posts: 4
Joined: 26. January 2007 12:37

Postby Wiedmann » 26. January 2007 19:39

In der "pear.bat" stimmen die Pfade auch?

(Jedenfalls muss der XAMPP doch mal wo anders bei dir gewesen sein?)

Wie siehts mit dem Inhalt dieser 2 Dateien aus?
User Configuration File Filename d:\Programme\xampp\php\pear.ini
System Configuration File Filename d:\Programme\xampp\php\pearsys.ini
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby chriska » 26. January 2007 23:50

unter pear.ini steht nur der Proxy:

#PEAR_Config 0.9
a:1:{s:10:"http_proxy";s:30:"proxy.rz.uni-karlsruhe.de:3128";}

pearsys.ini:

gibt es bei mir nicht

Die Pfade in config-show stehen alle auf d:/... und auch im source von pear.bat und pecl.bat steht überall d:/

Ich habe xampp einfach per Installer installiert. Keine Änderungen glaube ich. Aber irgendwo zwischen Aufruf pear.bat und der Dos-Prompt-Ausgabe wird aus dem d: ein e:

Ich hatte den falschen Laufwerksbuchstaben gar nicht gesehen. Vielen Dank für den Hinweis!

Leider habe ich von Batch-Programmierung eher wenig Ahnung ...
chriska
 
Posts: 4
Joined: 26. January 2007 12:37

Postby Wiedmann » 27. January 2007 00:20

Aber irgendwo zwischen Aufruf pear.bat und der Dos-Prompt-Ausgabe wird aus dem d: ein e:

Eine kurze Suche mit der Windows-Dateisuchfunktion, hat bei PEAR mehrere Dateien zu Tage gebracht, welche "E:\xampp\php" enthalten. In den Registry-Dateien für die Module. Deshalb findet er das Orginal nicht für das Backup.

Wenn du noch den Parameter "--ignore-errors" dazu machst, sollte er das eigentlich ignorieren und das Upgrade beenden.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby chriska » 27. January 2007 01:24

Jo, das wars!

Ich habe in D:\Programme\xampp\php\pear\.registry\html_quickform.reg den eintrag E.\xampp\... in d:\programme\xampp\... geändert und er hat das Paket installiert:

D:\Programme\xampp\php>pear upgrade -f --ignore-errors html_quickform
d:\Programme\xampp\php\php.exe

Notice: unserialize(): Error at offset 243 of 52885 bytes in PEAR\Registry.php o
n line 1045

Notice: unserialize(): Error at offset 243 of 52885 bytes in PEAR\Registry.php o
n line 1045
Did not download dependencies: pear/HTML_Common, use --alldeps or --onlyreqdeps
to download automatically

Notice: unserialize(): Error at offset 243 of 52885 bytes in PEAR\Registry.php o
n line 1045
downloading HTML_QuickForm-3.2.7.tgz ...
Starting to download HTML_QuickForm-3.2.7.tgz (102,475 bytes)
........................done: 102,475 bytes

Notice: unserialize(): Error at offset 243 of 52885 bytes in PEAR\Registry.php o
n line 1045

Notice: unserialize(): Error at offset 243 of 52885 bytes in PEAR\Registry.php o
n line 1045
WARNING: pear.php.net/HTML_QuickForm not installed

Notice: unserialize(): Error at offset 243 of 52885 bytes in PEAR\Registry.php o
n line 1045
upgrade ok: channel://pear.php.net/HTML_QuickForm-3.2.7

und Halleluja!:

D:\Programme\xampp\php>pear install -f --ignore-errors html_quickform_renderer_t
ableless
WARNING: failed to download pear.php.net/html_quickform_renderer_tableless withi
n preferred state "stable", will instead download version 0.4.3, stability "beta
"
downloading HTML_QuickForm_Renderer_Tableless-0.4.3.tgz ...
Starting to download HTML_QuickForm_Renderer_Tableless-0.4.3.tgz (6,629 bytes)
.....done: 6,629 bytes
install ok: channel://pear.php.net/HTML_QuickForm_R ... less-0.4.3

Sowas kann einen schon mal nen' Tag aufhalten ... :-)

Danke für Deine Hilfe!
chriska
 
Posts: 4
Joined: 26. January 2007 12:37


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 44 guests