|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Cannot install mdb2
hi
Last edited by sadiya : June 19th, 2007 at 08:50 AM. |
|
#2
|
|||
|
|||
|
Hi
I am trying to install pear package mdb/ mdb2 and have Apache/2.0.58 (Win32) PHP/5.2.3 running on XP. I installed pear using go-pear.bat. I thought mdb or mdb2 would be installed as the part of pear package but when i run 'pear list' command, i had following packages Archive _tar 1.3.2 Console _Getopt 1.2.2 Pear 1.5.4 structures_graph 1.0.2 I tried to install mdb2 and mdb using 'pear install -o mdb' and 'pear install -o mdb2' but got error massage that no release for mdb2 exist and mdb2 channel cannot be initialize as path is not valid or package is missing. same message for mdb. I tried to install the package from website but couldnot install mdb 2 as zip file was empty. can anyone tell me what i am doing wrong and help me to sort out this problem. Last edited by sadiya : June 19th, 2007 at 08:52 AM. |
|
#3
|
|||
|
|||
|
Please show us the error messages you got (especially the one after "pear install -o MDB2").
If you download the package from the PEAR website, you will get a .tgz (abbreviation for .tar.gz) archive. It should not be empty, and you should be able to install it via "pear install filename.tgz". Please note that you will need to install also an RDBMS driver, e.g. MDB2_Driver_mysql. |
|
#4
|
|||
|
|||
|
Sorry could not reply you sooner as i dont have internet at home.error message i got when i try install mdb2 is following
Code:
C:\Program Files\php>pear install -o MDB2 No releases for package "pear/MDB2" exist Cannot initialize 'channel://pear.php.net/MDB2', invalid or missing package file Package "channel://pear.php.net/MDB2" is not valid install failed I downloaded .tar file from http://pear.php.net/package/MDB2/download and used 'pear install ' command but got following message. Code:
C:\Program Files\php>pear install MDB2-2.4.1.tar No releases for package "pear/MDB2" exist Cannot initialize 'channel://pear.php.net/MDB2-2.4.1.tar', invalid or missing pa ckage file Package "channel://pear.php.net/MDB2-2.4.1.tar" is not valid install failed can you give me web address for .tar.gz file please. thank you Last edited by sadiya : June 20th, 2007 at 04:44 AM. |
|
#5
|
|||
|
|||
|
I tried to install MDB2_Driver_mysql and got following:
Code:
C:\Program Files\php>pear install -o MDB2_Driver_mysql No releases for package "pear/MDB2_Driver_mysql" exist Cannot initialize 'channel://pear.php.net/MDB2_Driver_mysql', invalid or missing package file Package "channel://pear.php.net/MDB2_Driver_mysql" is not valid install failed I dont understand why is it giving me same message for every package. |
|
#6
|
|||
|
|||
|
One thing i have noticed is that url to package http://pear.php.net/package/MDB2-2.4.1.tar but in message it is
Code:
channel://pear.php.net/MDB2-2.4.1.tar If that is the problem then i dont know how to solve it and even then need lots of help. I ran 'pear channel-info pear.php.net' command and information is following Code:
C:\Program Files\php>pear channel-info pear.php.net CHANNEL PEAR.PHP.NET INFORMATION: ================================= Name and Server pear.php.net Alias pear Summary PHP Extension and Application Repository Validation Package Name PEAR_Validate Validation Package default Version SERVER CAPABILITIES =================== TYPE VERSION/REST TYPE FUNCTION NAME/REST BASE xmlrpc 1.0 logintest xmlrpc 1.0 package.listLatestReleases xmlrpc 1.0 package.listAll xmlrpc 1.0 package.info xmlrpc 1.0 package.getDownloadURL xmlrpc 1.1 package.getDownloadURL xmlrpc 1.0 package.getDepDownloadURL xmlrpc 1.1 package.getDepDownloadURL xmlrpc 1.0 package.search xmlrpc 1.0 channel.listAll rest REST1.0 http://pear.php.net/rest/ rest REST1.1 http://pear.php.net/rest/ thank you |
|
#7
|
|||
|
|||
|
The "channel://" prefix is fine, nothing to worry about. But that "pear install MDB2" doesn't work is indeed strange. Are you behind a proxy server?
On pear.php.net you don't .tar files, there are only .tgz files. For example, http://pear.php.net/package/MDB2 has a link to http://download.pear.php.net/package/MDB2-2.4.1.tgz. Download this file and don't rename it and don't try to extract it. Just call "pear install http://download.pear.php.net/package/MDB2-2.4.1.tgz". |
|
#8
|
|||
|
|||
|
yes we are behind proxy and we added 'http://download.pear.php.net/package/MDB2-2.4.1.tgz in proxy setting in exception part but no result
Code:
C:\Program Files\php\PEAR>pear install http://download.pear.php.net/package/MDB2 -2.4.1.tgz Could not download from "http://download.pear.php.net/package/MDB2-2.4.1.tgz" (F ile http://download.pear.php.net:80/package/MDB2-2.4.1.tgz not valid (redirected but no location)) Invalid or missing remote package file Package "http://download.pear.php.net/package/MDB2-2.4.1.tgz" is not valid install failed C:\Program Files\php\PEAR>pear install MDB2-2.4.1.tgz No releases for package "pear/MDB2" exist Cannot initialize 'channel://pear.php.net/MDB2-2.4.1.tgz', invalid or missing pa ckage file Package "channel://pear.php.net/MDB2-2.4.1.tgz" is not valid install failed |
|
#9
|
|||
|
|||
|
Okay, then you need to set the proxy address first:
pear config-set http_proxy ... (the dots need to be replaced by the address of the proxy server) |
|
#10
|
|||
|
|||
|
Hi
I run pear config command Code:
C:\Program Files\php\PEAR>pear config-set http_proxy (our proxy address) config-set succeeded After that I try to install mdb2 but did not work Code:
C:\Program Files\php\PEAR>pear install http://download.pear.php.net/package/MDB2 Could not download from "http://download.pear.php.net/package/MDB2" (File http:/ /download.pear.php.net:80/package/MDB2 not valid (redirected but no location)) Invalid or missing remote package file Package "http://download.pear.php.net/package/MDB2" is not valid install failed C:\Program Files\php\PEAR>-2.4.1.tgz '-2.4.1.tgz' is not recognized as an internal or external command, operable program or batch file. I tried to use 'pear install' for mdb and mdb2 Code:
C:\Program Files\php\PEAR>pear install MDB2 No releases for package "pear/MDB2" exist Cannot initialize 'channel://pear.php.net/MDB2', invalid or missing package file Package "channel://pear.php.net/MDB2" is not valid install failed C:\Program Files\php\PEAR>pear install MDB No releases for package "pear/MDB" exist Cannot initialize 'channel://pear.php.net/MDB', invalid or missing package file Package "channel://pear.php.net/MDB" is not valid install failed next instrunction, please |
|
#11
|
|||
|
|||
|
I have no more ideas, sorry.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > Cannot install mdb2 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|