[vagrant@localhost lib]$ drush
Drush needs to download a library from [error]
http://download.pear.php.net/package/Console_Table-1.1.3.tgz in order
to function, and the attempt to download this file automatically
failed because you do not have permission to write to the library
directory /usr/local/bin/drush/lib. To continue you will need to
manually download the package from
http://download.pear.php.net/package/Console_Table-1.1.3.tgz, extract
it, and copy the directory into your /usr/local/bin/drush/lib
directory.
安装drush后初次输入命令:drush出现以上错误,解决办法需要下载一个库放到主目录下 usr/local/bin/drush/lib/下边。首先切换到主目录
cd /
cd usr/local/bin/drush/lib
sudo wget http://download.pear.php.net/package/Console_Table-1.1.3.tgz
sudo gunzip Console_Table-1.1.3.tgz
sudo tar -xvf Console_Table-1.1.3.tar
然后输入命令:drush,出现帮助文字就好了。
Console_Table-1.1.3
Console_Table-1.1.3