首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用XAMPP在Windows 10中安装go-珍珠. with时出错

用XAMPP在Windows 10中安装go-珍珠. with时出错
EN

Stack Overflow用户
提问于 2020-06-01 14:53:59
回答 1查看 1.1K关注 0票数 2

我在尝试安装go-pear.phar时总是会出错

这是错误,点击Enter后的问题1-13, 'all' or Enter to continue:

代码语言:javascript
复制
1-13, 'all' or Enter to continue:
**ERROR**
Please, enter the php.exe path.

我也在我的环境路径中安装了PHP。我确实查过php --version并收到了消息

代码语言:javascript
复制
C:\xampp\php>php --version
PHP 7.2.31 (cli) (built: May 12 2020 10:26:32) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

因此,我继续使用命令安装go-pear.phar。但我一直被困在上面的错误中。

代码语言:javascript
复制
C:\xampp\php>php go-pear.phar

Are you installing a system-wide PEAR or a local copy?
(system|local) [system] :

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation base ($prefix)                   : C:\xampp\php
 2. Temporary directory for processing            : C:\xampp\php\tmp
 3. Temporary directory for downloads             : C:\xampp\php\tmp
 4. Binaries directory                            : C:\xampp\php
 5. PHP code directory ($php_dir)                 : C:\xampp\php\pear
 6. Documentation directory                       : C:\xampp\php\docs
 7. Data directory                                : C:\xampp\php\data
 8. User-modifiable configuration files directory : C:\xampp\php\cfg
 9. Public Web Files directory                    : C:\xampp\php\www
10. System manual pages directory                 : C:\xampp\php\man
11. Tests directory                               : C:\xampp\php\tests
12. Name of configuration file                    : C:\WINDOWS\pear.ini
13. Path to CLI php.exe                           :

1-13, 'all' or Enter to continue:
**ERROR**
Please, enter the php.exe path.
EN

回答 1

Stack Overflow用户

发布于 2020-06-08 02:18:36

我也遇到了这个问题,经过多次不同的尝试,我终于成功了。

打开命令提示符

cd \xampp\php

C:\xampp\php\php go-珠光

您是在安装系统范围的PEAR还是本地副本?(系统\本地)系统:

下面是为您的新PEAR安装建议的文件布局。若要更改各个位置,请在目录前面键入数字。键入“all”以更改所有这些位置,或按Enter键接受这些位置。

  1. 安装基础($prefix):C:\xampp\php
  2. 临时处理目录: C:\xampp\php\tmp
  3. 下载临时目录: C:\xampp\php\tmp
  4. 二进制目录: C:\xampp\php
  5. PHP代码目录($php_dir):C:\xampp\php\pear
  6. 文档目录: C:\xampp\php\docs
  7. 数据目录: C:\xampp\php\data
  8. 用户可修改配置文件目录: C:\xampp\php\cfg
  9. 公共网络文件目录: C:\xampp\php\www
    1. 系统手册页面目录: C:\xampp\php\man
    2. 测试目录:C:\xampp\php\test
    3. 配置文件名称: C:\WINDOWS\pear.ini
    4. 通往CLI php.exe的路径:

1- 13,“全部”或进入继续:13

,其中弹出窗口浏览文件或文件夹

窗口浏览文件或文件夹

选择文件夹C:\xampp\php而不是文件php.exe,然后选择"OK“

然后你会得到

php.exe (sapi: cli)发现。

下面是为您的新PEAR安装建议的文件布局。若要更改各个位置,请在目录前面键入数字。键入“all”以更改所有这些位置,或按Enter键接受这些位置。

  1. 安装基础($prefix):C:\xampp\php
  2. 临时处理目录: C:\xampp\php\tmp
  3. 下载临时目录: C:\xampp\php\tmp
  4. 二进制目录: C:\xampp\php
  5. PHP代码目录($php_dir):C:\xampp\php\pear
  6. 文档目录: C:\xampp\php\docs
  7. 数据目录: C:\xampp\php\data
  8. 用户可修改配置文件目录: C:\xampp\php\cfg
  9. 公共网络文件目录: C:\xampp\php\www
    1. 系统手册页面目录: C:\xampp\php\man
    2. 测试目录:C:\xampp\php\test
    3. 配置文件名称: C:\WINDOWS\pear.ini
    4. 通往CLI php.exe的路径: C:\xampp\php\

1-13,“全部”或输入继续:输入

按回车键,你就会得到

开始安装..。写入C:\WINDOWS\pear.ini的配置..。初始化注册表..。准备安装..。

我甚至尝试手动键入文件夹C:\xampp\php之前,因为它在选择后列出,但它继续错误。但是,选择窗口中的文件夹是可行的。

票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62134934

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档