我在Windows的wsl2上运行了Ubuntu LTS20.04,这样我就能够编译我的JS/React代码,在linux上运行我的php服务器,并使用windows来使用Visual Studio Code进行编码。 这运行得很好,但奇怪的事情正在发生,我通过Visual Studio Code终端安装了nvm和gulp,如果我在终端上使用它们,它工作得很好,但如果我在终端外(使用Windows终端)运行,它会显示对于gulp和nvm都找不到。 我假设VSCode在路径中添加了一些东西,但我不知道如何才能让windows终端(outisde VSCode终端)找到它们。下面的屏幕。左边是在
我正在按照说明安装composer ( )。我刚刚运行了线路php composer-setup.php,终端返回:
All settings correct for using Composer
Unable to write keys.dev.pub to: /home/ubuntu/.composer
我正在安装到Vagrant中的Ubuntu中。
当我运行命令时
php -v
这个错误出现在ubuntu终端中:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_mbstring.dll' - /usr/lib/php/20151012/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
我在安装PHP zip压缩包时遇到了一些问题,并且不确定如何解决这个问题。我正在运行带有PHP 7.2的Ubuntu 18
我在终端中收到的错误是
The following packages have unmet dependencies.
php7.2-zip : Depends: php7.2-common (= 7.2.5-0ubuntu0.18.04.1) but 7.2.5-
1+ubuntu17.10.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken
我无法使用WP CLI安装插件。任何帮助都将不胜感激。
我在Windows10上使用MAMP运行一个本地WordPress站点,在Ubuntu终端上使用WP,它运行在我的Windows10机器上的VirtualBox上。
在Ubuntu终端中,当我尝试运行wp plugin install jetpack时,我得到以下错误信息:
PHP Warning: mysqli_real_connect(): (HY000/2002): No such file or directory
in /home/matt-j/windows-desktop/projects/wp-rest-api-wit
我去更新Ubuntu的发行版,所以我运行了终端,输入了apt-get dist-update并得到了以下错误:
php5-mysql depends on php5-common (= 5.6.21+dfsg-1+donate.sury.org~precise+1); however:
Version of php5-common on system is 5.6.21+dfsg-1+donate.sury.org~precise+2.
我已经在我的ubuntu上安装了Ampps,它工作得很好,并且具有非常棒的特性,但我的问题是,当我想在终端或IDE终端中使用php时,它会给我以下错误消息:
The program 'php' is currently not installed. You can install it by typing:
sudo apt-get install php5-cli
我目前正在通过键入以下内容来避免这个问题:
export PATH=/usr/local/ampps/php/bin:$PATH
在那个特定的终端中,这种方法只适用于一个终端窗口,每次输入它都很烦人。
有没有一种方