Manifest length read was 1236 sould be 678716787

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Manifest length read was 1236 sould be 678716787

Postby sifar786 » 24. July 2009 11:05

Hi,

I previously had WAMP server and tried installing pear but the whole configuration got messed up. There was an PEAR_ENV.reg file which i was told to install and which i did...when i got fedup with WAMP, i uninstalled it. Got the following error on running pear.bat from command.com.
The PHP_PEAR_INSTALL_DIR is set to ='c:\wamp\php\php5.2.6'. you need to change the path in the environment variables or change it in pear.bat file.


then i deleted the environment variables from my Winxp System & restarted my system.

Now i installed XAMPP which has pear installed by default... though now i get an error..
Manifest length read was 1236 sould be 678716787

when i run go-pear.bat from my c:\xampp\php\pear path from command.com.

i recreated the pear_env.reg file like this to install the correct paths:
Code: Select all
REGEDIT4
[HKEY_CURRENT_USER\Environment]
"PHP_PEAR_SYSCONF_DIR"="C:\\xampp\\php"
"PHP_PEAR_INSTALL_DIR"="C:\\xampp\\php\\pear"
"PHP_PEAR_DOC_DIR"="C:\\xampp\\php\\pear\\docs"
"PHP_PEAR_BIN_DIR"="C:\\xampp\\php"
"PHP_PEAR_DATA_DIR"="C:\\xampp\\php\\pear\\data"
"PHP_PEAR_PHP_BIN"="C:\\xampp\\php\\.\\php.exe"
"PHP_PEAR_TEST_DIR"="C:\\xampp\\php\\pear\\tests"


Now when i run pear.bat again, i get the following error:
Notice: unserialize(): Error at offset 42 of 656 bytes in Config.php on line 105
6
ERROR: The default config file is not a valid config file or is corrupted.


What are the default paths and how to change the environment variables? What am i doing wrong? Do i need to reinstall the Whole working XAMPP again? Do i need to delete the environment variables set manually again, cos their paths may be wrong for XAMPP?

Please advice.
sifar786
 
Posts: 5
Joined: 23. July 2009 21:43

Re: Manifest length read was 1236 sould be 678716787

Postby sifar786 » 24. July 2009 11:38

i again deleted the environment variables i created and logged off and on my computer...then again ran pear.bat from command.com...now got the initial error again:
C:\Documents and Settings\sifar786>pear
PHP_PEAR_INSTALL_DIR is not set correctly.
Please fix it using your environment variable or modify
the default value in pear.bat
The current value is:
C:\wamp\bin\php\php5.2.6\pear


go-pear.bat still gives me the same error:
C:\xampp\php>go-pear.bat
ERROR: manifest length read was "1236" should be "678716787"Press any key to con
tinue . . .

Anyone having an idea what needs to be done to install PEAR correctly with the correct paths on XAMPP???
sifar786
 
Posts: 5
Joined: 23. July 2009 21:43

Re: Manifest length read was 1236 sould be 678716787

Postby Wiedmann » 24. July 2009 12:29

what needs to be done to install PEAR

PEAR is already part of the XAMPP package. (just use it)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Manifest length read was 1236 sould be 678716787

Postby sifar786 » 24. July 2009 15:10

I cant. The reason is, the global environment variables for the directories are not getting set & the older paths of the WAMP server come up. I tried adding them using DOS SET command, though found that its a temporary command. Then added them through windowsXP System > Advanced > Environment variables...
Code: Select all
PHP_PEAR_BIN_DIR=C:\xampp\php
PHP_PEAR_INSTALL_DIR=C:\xampp\php\pear
PHP_PEAR_PHP_BIN=C:\xampp\php\.\php.exe

Ran pear.bat....it ran this time w/o any errors & this was the output, which made me realise that the env variables are being taken from some file located elsewhere in the C:\ drive.
Code: Select all
C:\Documents and Settings\sifar786\Desktop>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       <not set>
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          C:\wamp\bin\php\php5.2.6
PEAR documentation directory   doc_dir          C:\wamp\bin\php\php5.2.6\docs
PHP extension directory        ext_dir          C:\xampp\php\ext\
PEAR directory                 php_dir          C:\wamp\bin\php\php5.2.6\pear
PEAR Installer cache directory cache_dir        C:\DOCUME~1\sifar786\LOCALS~1\Te
mp\pear\cache
PEAR configuration file        cfg_dir          C:\wamp\bin\php\php5.2.6\cfg
directory
PEAR data directory            data_dir         C:\wamp\bin\php\php5.2.6\data
PEAR Installer download        download_dir     C:\wamp\bin\php\php5.2.6\tmp
directory
PHP CLI/CGI binary             php_bin          C:\wamp\bin\php\php5.2.6\.\php.e
xe
php.ini location               php_ini          <not set>
PEAR Installer temp directory  temp_dir         C:\wamp\bin\php\php5.2.6\tmp
PEAR test directory            test_dir         C:\wamp\bin\php\php5.2.6\tests
PEAR www files directory       www_dir          C:\wamp\bin\php\php5.2.6\www
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       C:\WINDOWS\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         C:\WINDOWS\pear.ini
System Configuration File      Filename         C:\WINDOWS\pearsys.ini

C:\Documents and Settings\sifar786\Desktop>


Searched and found a pear.ini file in the c:\windows directory & it had the following old paths....
Code: Select all
#PEAR_Config 0.9
a:12:{s:15:"preferred_state";s:6:"stable";s:8:"temp_dir";s:28:"C:\wamp\bin\php\php5.2.6\tmp";s:12:"download_dir";s:28:"C:\wamp\bin\php\php5.2.6\tmp";s:7:"bin_dir";s:24:"C:\wamp\bin\php\php5.2.6";s:7:"php_dir";s:29:"C:\wamp\bin\php\php5.2.6\pear";s:7:"doc_dir";s:29:"C:\wamp\bin\php\php5.2.6\docs";s:8:"data_dir";s:29:"C:\wamp\bin\php\php5.2.6\data";s:7:"cfg_dir";s:28:"C:\wamp\bin\php\php5.2.6\cfg";s:7:"www_dir";s:28:"C:\wamp\bin\php\php5.2.6\www";s:8:"test_dir";s:30:"C:\wamp\bin\php\php5.2.6\tests";s:7:"php_bin";s:34:"C:\wamp\bin\php\php5.2.6\.\php.exe";s:10:"__channels";a:2:{s:5:"__uri";a:0:{}s:12:"pecl.php.net";a:0:{}}}


which shows the paths used when WAMP was installed...tried modifying it with the paths found in the pear.ini located in the c:\xampp\php directory...
but then got this error when i ran "pear config-show" again......
C:\Documents and Settings\sifar786>pear config

Notice: unserialize(): Error at offset 91 of 503 bytes in Config.php on line 105
6
ERROR: The default config file is not a valid config file or is corrupted.

C:\Documents and Settings\sifar786>


Does this make sense? Do i need to uninstall XAMPP again cos the Config file seems corrupted?
sifar786
 
Posts: 5
Joined: 23. July 2009 21:43

Re: Manifest length read was 1236 sould be 678716787

Postby Wiedmann » 24. July 2009 15:27

I cant.

OK, you want do something with the PEAR command line tool, instead of just using some PEAR classes. Well, the command line tool is not really working with your XAMPP version.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 139 guests