Yii Framework Forum: Build installation problem - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Build installation problem Rate Topic: -----

#1 User is offline   mocapapa 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 428
  • Joined: 04-January 09
  • Location:Tokyo, JAPAN

Posted 31 October 2010 - 04:05 AM

Though this is not appropriate place to ask PEAR related issues, I was faced to the problem during 'build' command of Yii.

According to the README, I issued following command, and I saw following error message.

$ ./build  message ../framework/messages/config.php
PHP Warning:  require_once(PHPUnit/Runner/Version.php): failed to open stream: No such file or directory in /var/www/html/yii/build/build on line 16
PHP Fatal error:  require_once(): Failed opening required 'PHPUnit/Runner/Version.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/yii/build/build on line 16


It seemed to me that PEAR/PHPUnit is not installed, but it might be installed correctly.

$ pear install PHPUnit
pear/PHPUnit is already installed and is the same as the released version 1.3.2
install failed


Does anybody out there know how to do 'build'?


Thanks in advance.
0

#2 User is offline   tri 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,651
  • Joined: 20-November 08
  • Location:Stockholm, Sweden

Posted 31 October 2010 - 06:32 AM

View Postmocapapa, on 31 October 2010 - 04:05 AM, said:

Though this is not appropriate place to ask PEAR related issues, I was faced to the problem during 'build' command of Yii.

According to the README, I issued following command, and I saw following error message.

$ ./build  message ../framework/messages/config.php
PHP Warning:  require_once(PHPUnit/Runner/Version.php): failed to open stream: No such file or directory in /var/www/html/yii/build/build on line 16
PHP Fatal error:  require_once(): Failed opening required 'PHPUnit/Runner/Version.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/yii/build/build on line 16


It seemed to me that PEAR/PHPUnit is not installed, but it might be installed correctly.

$ pear install PHPUnit
pear/PHPUnit is already installed and is the same as the released version 1.3.2
install failed


Does anybody out there know how to do 'build'?


Thanks in advance.



I think we can safely comment out line 16-18 from the build script until this is fixed. Those lines would not be needed for our yiidoc message harvesting task. Those lines were added in r2531, most probably aimed for some other part of the build process.

/Tommy

Edit:
It turns out PHPUnit wasn't installed in the Linux instance having the r2531+ revision of the framework. Adding those three lines to a second Linux instance works flawlessly (PHPUnit 3.4 installed).

This post has been edited by tri: 31 October 2010 - 07:00 AM

Don't forget to read The Definitive Guide to Yii (en) (sv) | The class reference has the details
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users