Re: pear install - raising error!

From: Date: Wed, 29 May 2002 10:48:14 +0000
Subject: Re: pear install - raising error!
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6583@lists.php.net to get a copy of this message
I guess that the real solution for that problem should be to always store internally in, let's say Unix path format, and translate the DIRECTORY_SEPARATOR (in the filename and baseinstalldir) at install time. Tomas V.V.Cox Alan Knowles wrote: > > try changing this (in PEAR/Installer.php > Installer::_installFile() > > if (!empty($atts['baseinstalldir']) && $atts['role'] != > 'doc') { > $dest_dir .= DIRECTORY_SEPARATOR . $atts['baseinstalldir']; > } > > to > > if (!empty($atts['baseinstalldir']) && ($atts['baseinstalldir'] != > '/') && $atts['role'] != 'doc') { > $dest_dir .= DIRECTORY_SEPARATOR . $atts['baseinstalldir']; > } > > the baseinstalldir in the pear file is confusing things... > > regards > alan > > Urs Gehrig wrote: > > >hi alan > > > >... hmm. there is no problem with DB and other packages apart from PEAR as i > >can see: > > > >C:\php>pear upgrade DB > > > >upgrade to a newer version (1.2 is not newer than 1.2) > > > >C:\php>pear uninstall DB > > > >uninstall ok > > > >C:\php>pear install DB > > > >install ok: DB 1.2 > > > > > >C:\php>pear config-set verbose 100000000 > >C:\php>pear install PEAR > pear_install_PEAR_log.txt > > > >... log file attached > > > > > >-urs > > > > > > > >>-----Original Message----- > >>From: Alan Knowles [mailto:alan@akbkhome.com] > >>Sent: Wednesday, May 29, 2002 9:36 AM > >>To: urs@circle.ch > >>Cc: pear-dev@lists.php.net > >>Subject: Re: [PEAR-DEV] pear install - raising error! > >> > >> > >>try pear config-set verbose 100000000 > >> - well a bit more than 1 anyway :) > >> > >>I'm guessing that it will have trouble with all packages that need 'root > >>directory' installation - like DB ? > >>have a look at PEAR/Installer.php - it shouldnt be to difficult to fix.. > >> > >> http://docs.akbkhome.com/pear/classes/PEAR_Installer.html > >> > >>regards > >>alan > >> > >> > >>Urs Gehrig wrote: > >> > >> > >> > >>>good morning! > >>> > >>>i am still fascinated by the pear installer thing ;) i just > >>> > >>> > >>tried to go for > >> > >> > >>>the gui installer and was heading for upgrading PEAR. so i did... > >>> > >>>C:\php>pear upgrade PEAR > >>> > >>>PEAR not installed > >>> > >>>C:\php>pear config-show > >>> > >>>CONFIGURATION: > >>>============== > >>>bin_dir c:\php > >>>data_dir c:\php\pear\data > >>>doc_dir c:\php\pear\docs > >>>ext_dir c:\php > >>>http_proxy <not set> > >>>master_server pear.php.net > >>>password <not set> > >>>php_dir c:\php\pear > >>>preferred_state stable > >>>test_dir c:\php\pear\tests > >>>umask 000 > >>>username <not set> > >>>verbose 1 > >>> > >>>C:\php>pear install XML_Tree > >>>install ok: XML_Tree 1.1 > >>> > >>>C:\php>pear install http://pear.php.net/get/PEAR > >>>raising error! > >>>failed to create c:\php\/\pear > >>> > >>>... the installation failed on PEAR while others (XML_Tree etc.) worked > >>>fine. > >>> > >>>any ideas? > >>> > >>>-urs > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >> > >> > >>-- > >>PEAR Development Mailing List (http://pear.php.net/) > >>To unsubscribe, visit: http://www.php.net/unsub.php > >> > >> > >> > >> > >>------------------------------------------------------------------------ > >> > >> > >>+ tmp dir created at c:\\Temp\peaA3.tmp > >>+ tmp dir created at c:\\Temp\peaA4.tmp > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\package.dtd c:\php\pear\data\PEAR\package.dtd > >>installed file c:\php\pear\data\PEAR\package.dtd > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR.php c:\php\pear\PEAR.php > >>installed file c:\php\pear\PEAR.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\System.php c:\php\pear\System.php > >>installed file c:\php\pear\System.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Autoloader.php c:\php\pear\PEAR\Autoloader.php > >>installed file c:\php\pear\PEAR\Autoloader.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Command.php c:\php\pear\PEAR\Command.php > >>installed file c:\php\pear\PEAR\Command.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Command/Auth.php > >>c:\php\pear\PEAR/Command\Auth.php > >>installed file c:\php\pear\PEAR/Command\Auth.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Command/Build.php > >>c:\php\pear\PEAR/Command\Build.php > >>installed file c:\php\pear\PEAR/Command\Build.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Command/Common.php > >>c:\php\pear\PEAR/Command\Common.php > >>installed file c:\php\pear\PEAR/Command\Common.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Command/Config.php > >>c:\php\pear\PEAR/Command\Config.php > >>installed file c:\php\pear\PEAR/Command\Config.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Command/Install.php > >>c:\php\pear\PEAR/Command\Install.php > >>installed file c:\php\pear\PEAR/Command\Install.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Command/Package.php > >>c:\php\pear\PEAR/Command\Package.php > >>installed file c:\php\pear\PEAR/Command\Package.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Command/Registry.php > >>c:\php\pear\PEAR/Command\Registry.php > >>installed file c:\php\pear\PEAR/Command\Registry.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Command/Remote.php > >>c:\php\pear\PEAR/Command\Remote.php > >>installed file c:\php\pear\PEAR/Command\Remote.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Common.php c:\php\pear\PEAR\Common.php > >>installed file c:\php\pear\PEAR\Common.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Config.php c:\php\pear\PEAR\Config.php > >>installed file c:\php\pear\PEAR\Config.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Dependency.php c:\php\pear\PEAR\Dependency.php > >>installed file c:\php\pear\PEAR\Dependency.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Frontend/CLI.php > >>c:\php\pear\PEAR/Frontend\CLI.php > >>installed file c:\php\pear\PEAR/Frontend\CLI.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Frontend/Gtk.php > >>c:\php\pear\PEAR/Frontend\Gtk.php > >>installed file c:\php\pear\PEAR/Frontend\Gtk.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Builder.php c:\php\pear\PEAR\Builder.php > >>installed file c:\php\pear\PEAR\Builder.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Installer.php c:\php\pear\PEAR\Installer.php > >>installed file c:\php\pear\PEAR\Installer.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Packager.php c:\php\pear\PEAR\Packager.php > >>installed file c:\php\pear\PEAR\Packager.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Registry.php c:\php\pear\PEAR\Registry.php > >>installed file c:\php\pear\PEAR\Registry.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\PEAR/Remote.php c:\php\pear\PEAR\Remote.php > >>installed file c:\php\pear\PEAR\Remote.php > >>+ cp c:\\Temp\peaA4.tmp\PEAR-0.11\OS/Guess.php c:\php\pear\OS\Guess.php > >>installed file c:\php\pear\OS\Guess.php > >>doing 1 substitution(s) for c:\php\/\pear > >>raising error! > >>failed to create c:\php\/\pear > >> > >> > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.pear.dev (#6583) next »