Discussion:
drush 5.3 failing to launch under php 5.3.22
Tim Dunphy
2014-06-11 17:41:59 UTC
Permalink
Hey all,

When I try to run drush I get this error:

[***@aozmpwslp002la ~]# drush
PHP Warning: parse_ini_file(/opt/php-5.3.22/bin/includes/../drush.info):
failed to open stream: No such file or directory in
/opt/php-5.3.22/bin/includes/environment.inc on line 721
PHP Notice: Undefined offset: 1 in
/opt/php-5.3.22/bin/includes/bootstrap.inc on line 1013

This is line 721 of environment.inc:

*/
function drush_read_drush_info() {
$drush_info_file = dirname(__FILE__) . '/../drush.info';

return parse_ini_file($drush_info_file); /* line 721 */
}

And this is line 1013 of bootstrap.inc;


define('DRUSH_MINOR_VERSION', $version_parts[1]);


Can someone please help me out with these errors? I really need to get this
going!

Thanks
Tim
--
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
Maciek Sokolewicz
2014-06-11 21:40:11 UTC
Permalink
Post by Tim Dunphy
failed to open stream: No such file or directory
Well, it seems pretty obvious to me. Try rereading the error;

"PHP Warning:
parse_ini_file(/opt/php-5.3.22/bin/includes/../drush.info): failed to
open stream: No such file or directory". This means that when PHP tried
to read "/opt/php-5.3.22/bin/includes/../drush.info" it could not find
the file.

So what you should do is... check where that file went :)
Obviously, "/opt/php-5.3.22/bin/includes/../drush.info" means it's in
"/opt/php-5.3.22/bin/drush.info" (since ../ means 'go up 1 directory').

Good luck,
- Tul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Tim Dunphy
2014-06-15 16:17:50 UTC
Permalink
Post by Maciek Sokolewicz
Well, it seems pretty obvious to me. Try rereading the error;
failed to open stream: No such file or directory". This means that when PHP
tried to read "/opt/php-5.3.22/bin/includes/../drush.info" it could not
find the file.
So what you should do is... check where that file went :)
Obviously, "/opt/php-5.3.22/bin/includes/../drush.info" means it's in
"/opt/php-5.3.22/bin/drush.info" (since ../ means 'go up 1 directory').
Yup! Makes sense now. Thanks, Tul!

Tim


On Wed, Jun 11, 2014 at 5:40 PM, Maciek Sokolewicz <
Post by Maciek Sokolewicz
Post by Tim Dunphy
failed to open stream: No such file or directory
Well, it seems pretty obvious to me. Try rereading the error;
failed to open stream: No such file or directory". This means that when PHP
tried to read "/opt/php-5.3.22/bin/includes/../drush.info" it could not
find the file.
So what you should do is... check where that file went :)
Obviously, "/opt/php-5.3.22/bin/includes/../drush.info" means it's in
"/opt/php-5.3.22/bin/drush.info" (since ../ means 'go up 1 directory').
Good luck,
- Tul
--
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
Loading...