从magento 1.4.0.1升级到magento 1.4.1.1?如何操作:
直接运行
<请慎重尝试文章介绍的任何命令,吾不对任何意外结果负责.只是记录而以>
./pear install magento-core/Mage_All_Latest
得到如下错误输出:
Attempting to discover channel "magento-core"...
unknown channel "magento-core" in "magento-core/Mage_All_Latest"
invalid package name/package file "magento-core/Mage_All_Latest"
Cannot initialize 'magento-core/Mage_All_Latest', invalid or missing package fil
Package "magento-core/Mage_All_Latest" is not valid
install failed
[root@LSN-D3561 magento]# cd ..
[root@LSN-D3561 microscope100.com]# ./pear install magento-core/Mage_All_Latest
Attempting to discover channel "magento-core"...
unknown channel "magento-core" in "magento-core/Mage_All_Latest"
invalid package name/package file "magento-core/Mage_All_Latest"
Cannot initialize 'magento-core/Mage_All_Latest', invalid or missing package fil e
Package "magento-core/Mage_All_Latest" is not valid
那是因为当前的pear配置有问题:
rm downloader/pearlib/pear.ini
清除配置.再用下列命令重建配置
./pear mage-setup
Running initial setup...
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
Channel "connect.magentocommerce.com/core" is already initialized
Channel "connect.magentocommerce.com/community" is already initialized
然后执行:
./pear install magento-core/Mage_All_Latest
downloading Mage_All_Latest-1.4.1.1.tgz ...
Starting to download Mage_All_Latest-1.4.1.1.tgz (1,048 bytes)
....done: 1,048 bytes
downloading Mage_Core_Modules-1.4.1.1.tgz ...
Starting to download Mage_Core_Modules-1.4.1.1.tgz (1,851,079 bytes)
...done: 1,851,079 bytes
downloading Mage_Core_Adminhtml-1.4.1.1.tgz ...
Starting to download Mage_Core_Adminhtml-1.4.1.1.tgz (461,551 bytes)
...done: 461,551 bytes
downloading Interface_Adminhtml_Default-1.4.1.1.tgz ...
Starting to download Interface_Adminhtml_Default-1.4.1.1.tgz (1,042,091 bytes)
...done: 1,042,091 bytes
downloading Interface_Frontend_Default-1.4.1.0.tgz ...
Starting to download Interface_Frontend_Default-1.4.1.0.tgz (738,136 bytes)
...done: 738,136 bytes
downloading Interface_Install_Default-1.4.1.1.tgz ...
Starting to download Interface_Install_Default-1.4.1.1.tgz (108,708 bytes)
...done: 108,708 bytes
downloading Mage_Downloader-1.4.0.0.tgz ...
Starting to download Mage_Downloader-1.4.0.0.tgz (183,789 bytes)
...done: 183,789 bytes
downloading Mage_Centinel-1.4.1.1.tgz ...
Starting to download Mage_Centinel-1.4.1.1.tgz (37,673 bytes)
...done: 37,673 bytes
downloading Interface_Frontend_Base_Default-1.4.1.1.tgz ...
Starting to download Interface_Frontend_Base_Default-1.4.1.1.tgz (341,662 bytes)
...done: 341,662 bytes
downloading Phoenix_Moneybookers-1.2.2.tgz ...
Starting to download Phoenix_Moneybookers-1.2.2.tgz (178,865 bytes)
...done: 178,865 bytes
downloading Lib_Varien-1.4.1.1.tgz ...
Starting to download Lib_Varien-1.4.1.1.tgz (132,365 bytes)
...done: 132,365 bytes
downloading Lib_Google_Checkout-1.4.0.0.tgz ...
Starting to download Lib_Google_Checkout-1.4.0.0.tgz (27,161 bytes)
...done: 27,161 bytes
downloading Lib_Js_Calendar-1.51.1.tgz ...
Starting to download Lib_Js_Calendar-1.51.1.tgz (23,904 bytes)
...done: 23,904 bytes
downloading Lib_Js_Mage-1.4.1.0.tgz ...
Starting to download Lib_Js_Mage-1.4.1.0.tgz (90,515 bytes)
...done: 90,515 bytes
downloading Lib_Js_Prototype-1.6.0.3.2.tgz ...
Starting to download Lib_Js_Prototype-1.6.0.3.2.tgz (222,688 bytes)
...done: 222,688 bytes
downloading Lib_PEAR-1.4.0.0.tgz ...
Starting to download Lib_PEAR-1.4.0.0.tgz (118,829 bytes)
...done: 118,829 bytes
downloading Lib_Phpseclib-1.4.1.0.tgz ...
Starting to download Lib_Phpseclib-1.4.1.0.tgz (110,976 bytes)
...done: 110,976 bytes
downloading Mage_Locale_en_US-1.4.1.1.tgz ...
Starting to download Mage_Locale_en_US-1.4.1.1.tgz (78,267 bytes)
...done: 78,267 bytes
downloading Lib_Js_Ext-1.4.0.0.tgz ...
Starting to download Lib_Js_Ext-1.4.0.0.tgz (265,141 bytes)
...done: 265,141 bytes
downloading Lib_LinLibertineFont-2.8.14.0.tgz ...
Starting to download Lib_LinLibertineFont-2.8.14.0.tgz (1,414,387 bytes)
...done: 1,414,387 bytes
downloading Lib_Js_TinyMCE-3.3.2.0.tgz ...
Starting to download Lib_Js_TinyMCE-3.3.2.0.tgz (890,649 bytes)
...done: 890,649 bytes
downloading Lib_ZF-1.9.6.1.tgz ...
Starting to download Lib_ZF-1.9.6.1.tgz (1,762,400 bytes)
...done: 1,762,400 bytes
downloading Mage_Pear_Helpers-1.0.18800.tgz ...
Starting to download Mage_Pear_Helpers-1.0.18800.tgz (9,225 bytes)
...done: 9,225 bytes
downloading Lib_ZF_Locale-1.9.6.1.tgz ...
Starting to download Lib_ZF_Locale-1.9.6.1.tgz (1,522,072 bytes)
...done: 1,522,072 bytes
downloading PEAR-1.9.1.tgz ...
Starting to download PEAR-1.9.1.tgz (293,587 bytes)
....done: 293,587 bytes
downloading Archive_Tar-1.3.7.tgz ...
Starting to download Archive_Tar-1.3.7.tgz (17,610 bytes)
...done: 17,610 bytes
downloading Structures_Graph-1.0.4.tgz ...
Starting to download Structures_Graph-1.0.4.tgz (30,318 bytes)
...done: 30,318 bytes
downloading Console_Getopt-1.2.3.tgz ...
Starting to download Console_Getopt-1.2.3.tgz (4,011 bytes)
...done: 4,011 bytes
downloading XML_Util-1.2.1.tgz ...
Starting to download XML_Util-1.2.1.tgz (17,729 bytes)
...done: 17,729 bytes
install ok: channel://connect.magentocommerce.com/core/Lib_PEAR-1.4.0.0
install ok: channel://connect.magentocommerce.com/core/Lib_Phpseclib-1.4.1.0
install ok: channel://connect.magentocommerce.com/core/Mage_Locale_en_US-1.4.1.1
install ok: channel://connect.magentocommerce.com/core/Lib_LinLibertineFont-2.8. 14.0
install ok: channel://pear.php.net/Archive_Tar-1.3.7
install ok: channel://pear.php.net/Structures_Graph-1.0.4
install ok: channel://pear.php.net/Console_Getopt-1.2.3
install ok: channel://pear.php.net/XML_Util-1.2.1
install ok: channel://pear.php.net/PEAR-1.9.1
install ok: channel://connect.magentocommerce.com/core/Mage_Pear_Helpers-1.0.188 00
install ok: channel://connect.magentocommerce.com/core/Lib_Google_Checkout-1.4.0 .0
install ok: channel://connect.magentocommerce.com/core/Lib_Js_Calendar-1.51.1
install ok: channel://connect.magentocommerce.com/core/Lib_Js_Prototype-1.6.0.3. 2
install ok: channel://connect.magentocommerce.com/core/Lib_Js_Ext-1.4.0.0
install ok: channel://connect.magentocommerce.com/core/Lib_Js_TinyMCE-3.3.2.0
install ok: channel://connect.magentocommerce.com/core/Lib_ZF_Locale-1.9.6.1
install ok: channel://connect.magentocommerce.com/core/Mage_Downloader-1.4.0.0
install ok: channel://connect.magentocommerce.com/core/Lib_Js_Mage-1.4.1.0
install ok: channel://connect.magentocommerce.com/core/Lib_ZF-1.9.6.1
install ok: channel://connect.magentocommerce.com/core/Lib_Varien-1.4.1.1
install ok: channel://connect.magentocommerce.com/core/Mage_Core_Modules-1.4.1.1
install ok: channel://connect.magentocommerce.com/core/Mage_Core_Adminhtml-1.4.1 .1
install ok: channel://connect.magentocommerce.com/core/Interface_Frontend_Defaul t-1.4.1.0
install ok: channel://connect.magentocommerce.com/core/Interface_Install_Default -1.4.1.1
install ok: channel://connect.magentocommerce.com/core/Mage_Centinel-1.4.1.1
install ok: channel://connect.magentocommerce.com/core/Interface_Frontend_Base_D efault-1.4.1.1
install ok: channel://connect.magentocommerce.com/core/Phoenix_Moneybookers-1.2. 2
install ok: channel://connect.magentocommerce.com/core/Interface_Adminhtml_Defau lt-1.4.1.1
install ok: channel://connect.magentocommerce.com/core/Mage_All_Latest-1.4.1.1
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
PEAR: To install optional features use "pear install pear/PEAR#featurename"