当前位置: 首页 > 工具软件 > drush > 使用案例 >

drush安装后出现错误提示解决办法

卫学真
2023-12-01
[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

然后下载需要的库压缩包是.tgz格式的需要先解压这个格式

sudo wget http://download.pear.php.net/package/Console_Table-1.1.3.tgz

然后输入ls查看是否下载完毕,解压该文件。

sudo gunzip Console_Table-1.1.3.tgz

解压出来是.tar的包,然后再次解压

sudo tar -xvf Console_Table-1.1.3.tar

使用ls查看是否解压出来Console_Table-1.1.3 文件夹。

然后输入命令:drush,出现帮助文字就好了。

Console_Table-1.1.3 

Console_Table-1.1.3 


 类似资料: