Netbeans + Yii - Windows Install
1/ http://www.yiiframework.com/wiki/83/netbeans-ide-and-yii-projects/
2/ http://www.phpunit.de/manual/3.6/en/installation.html
3/ http://www.geeksengine.com/article/install-pear-on-windows.html
4/ http://pear.php.net/manual/en/installation.php
5/ http://pear.php.net/manual/en/installation.getting.php
http://pear.php.net/go-pear.phar
Másold a "go-pear.phar"-t a root könyvtárba
pl.: D:\wamp\www>php go-pear.phar
Nyisd meg a CMD-t D:\wamp\www> -ben állva
Írd be: "php go-pear.phar --> D:\wamp\www>php go-pear.phar
Are you installing a system-wide PEAR or a local copy?
(system|local) [system] : local
Válaszd és írd be a "LOCAL"-t + enter
Majd 1 YES-t írj + enter
Please confirm local copy by typing ‘yes’ : yes
Majd 1 enter-t nyomj ismét erre:
1-12, ‘all’ or Enter to continue:
*** Ez fog lefutni: **************************************************************
Microsoft Windows [verziószám: 6.1.7600]
Copyright © 2009 Microsoft Corporation. Minden jog fenntartva.
D:\wamp\www>php go-pear.phar
Are you installing a system-wide PEAR or a local copy?
(system|local) [system] : local
Please confirm local copy by typing ‘yes’ : yes
Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type ‘all’ to change all of them or simply press Enter to
accept these locations.
-
Installation base ($prefix) : D:\wamp\www
-
Temporary directory for processing : D:\wamp\www\tmp
-
Temporary directory for downloads : D:\wamp\www\tmp
-
Binaries directory : D:\wamp\www
-
PHP code directory ($php_dir) : D:\wamp\www\pear
-
Documentation directory : D:\wamp\www\docs
-
Data directory : D:\wamp\www\data
-
User-modifiable configuration files directory : D:\wamp\www\cfg
-
Public Web Files directory : D:\wamp\www\www
-
Tests directory : D:\wamp\www\tests
-
Name of configuration file : D:\wamp\www\pear.ini
-
Path to CLI php.exe : D:\wamp\bin\php\php5.3.4
1-12, ‘all’ or Enter to continue:
Beginning install…
Configuration written to D:\wamp\www\pear.ini…
Initialized registry…
Preparing to install…
installing phar://D:/wamp/www/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3
.7.tar…
installing phar://D:/wamp/www/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-
1.3.0.tar…
installing phar://D:/wamp/www/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.9.2.tar.
…
installing phar://D:/wamp/www/go-pear.phar/PEAR/go-pear-tarballs/Structures_Grap
h-1.0.4.tar…
installing phar://D:/wamp/www/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.2.1.
tar…
install ok: channel://pear.php.net/Archive_Tar-1.3.7
install ok: channel://pear.php.net/Console_Getopt-1.3.0
install ok: channel://pear.php.net/Structures_Graph-1.0.4
install ok: channel://pear.php.net/XML_Util-1.2.1
install ok: channel://pear.php.net/PEAR-1.9.2
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"
** WARNING! Old version found at D:\wamp\www, please remove it or be sure to use
the new d:\wamp\www\pear.bat command
The ‘pear’ command is now at your service at d:\wamp\www\pear.bat
D:\wamp\www>
Keresd meg a "PEAR_ENV.reg" fájlt és kattints rá kétszer, majd válaszd az "igen"-t és írasd be a regisztribe vele.
6/ http://pear.phpunit.de/
http://pear.phpunit.de/get/PHPUnit-3.5.13.tgz
7/ http://jsdoodnauth.wordpress.com/2008/11/05/installing-wamp-and-phpunit-on-windows/
http://amiworks.co.in/talk/installing-pear-and-phpunit-on-wamp-and-windows-7/
1 ) ‘C’ partíción készíts egy új‘php5’nevű könyvtárat
2 )Utána parancssorba írd be:
pear upgrade pear
3 ) PEAR is updated,
Majd írd be parancssorba egyesével és le-ENTER-ezve a sor végét a következő 3 sort:
pear channel-discover components.ez.no (+ enter)
pear channel-discover pear.phpunit.de (+enter)
pear channel-discover pear.symfony-project.com (+enter)
4 )Végül írd be parancssorba ezt:
pear install --alldeps phpunit/PHPUnit
Ehhez hasonló fog lefutni:*************************************************************
Microsoft Windows [verziószám: 6.1.7600]
Copyright © 2009 Microsoft Corporation. Minden jog fenntartva.
C:\>pear upgrade pear
Nothing to upgrade
C:\>pear channel-discover pear.phpunit.de
Adding Channel "pear.phpunit.de" succeeded
Discovery of channel "pear.phpunit.de" succeeded
C:\>pear install --alldeps phpunit/PHPUnit
phpunit/PHPUnit requires package "channel://pear.symfony-project.com/YAML" (vers
ion >= 1.0.2)
phpunit/PHPUnit can optionally use PHP extension "curl"
phpunit/PHPUnit can optionally use PHP extension "dbus"
phpunit/DbUnit requires package "channel://pear.symfony-project.com/YAML" (versi
on >= 1.0.2)
phpunit/PHP_CodeCoverage can optionally use package "channel://components.ez.no/
ConsoleTools" (version >= 1.6)
phpunit/PHPUnit_MockObject can optionally use PHP extension "soap"
pear/XML_RPC2 requires PHP extension "curl"
phpunit/PHP_TokenStream requires package "channel://components.ez.no/ConsoleTool
s" (version >= 1.6)
phpunit/PHP_CodeCoverage requires package "phpunit/PHP_TokenStream" (version >=
1.0.0)
downloading File_Iterator-1.2.6.tgz …
Starting to download File_Iterator-1.2.6.tgz (3,439 bytes)
…done: 3,439 bytes
downloading Text_Template-1.1.0.tgz …
Starting to download Text_Template-1.1.0.tgz (2,783 bytes)
…done: 2,783 bytes
downloading PHP_Timer-1.0.0.tgz …
Starting to download PHP_Timer-1.0.0.tgz (2,536 bytes)
…done: 2,536 bytes
downloading PHPUnit_MockObject-1.0.8.tgz …
Starting to download PHPUnit_MockObject-1.0.8.tgz (18,199 bytes)
…done: 18,199 bytes
downloading PHPUnit_Selenium-1.0.2.tgz …
Starting to download PHPUnit_Selenium-1.0.2.tgz (16,412 bytes)
…done: 16,412 bytes
downloading Cache_Lite-1.7.9.tgz …
Starting to download Cache_Lite-1.7.9.tgz (30,318 bytes)
…done: 30,318 bytes
install ok: channel://pear.phpunit.de/File_Iterator-1.2.6
install ok: channel://pear.phpunit.de/Text_Template-1.1.0
install ok: channel://pear.phpunit.de/PHP_Timer-1.0.0
install ok: channel://pear.phpunit.de/PHPUnit_Selenium-1.0.2
install ok: channel://pear.php.net/Cache_Lite-1.7.9
install ok: channel://pear.phpunit.de/PHPUnit_MockObject-1.0.8
install ok: channel://pear.symfony-project.com/YAML-1.0.5
install ok: channel://components.ez.no/Base-1.8
install ok: channel://pear.phpunit.de/DbUnit-1.0.1
install ok: channel://components.ez.no/ConsoleTools-1.6.1
install ok: channel://pear.phpunit.de/PHP_TokenStream-1.0.1
install ok: channel://pear.phpunit.de/PHP_CodeCoverage-1.0.4
C:\php5>