<small id='vbxbp'></small><noframes id='vbxbp'>

    <bdo id='vbxbp'></bdo><ul id='vbxbp'></ul>
<tfoot id='vbxbp'></tfoot>
      <legend id='vbxbp'><style id='vbxbp'><dir id='vbxbp'><q id='vbxbp'></q></dir></style></legend>

        <i id='vbxbp'><tr id='vbxbp'><dt id='vbxbp'><q id='vbxbp'><span id='vbxbp'><b id='vbxbp'><form id='vbxbp'><ins id='vbxbp'></ins><ul id='vbxbp'></ul><sub id='vbxbp'></sub></form><legend id='vbxbp'></legend><bdo id='vbxbp'><pre id='vbxbp'><center id='vbxbp'></center></pre></bdo></b><th id='vbxbp'></th></span></q></dt></tr></i><div id='vbxbp'><tfoot id='vbxbp'></tfoot><dl id='vbxbp'><fieldset id='vbxbp'></fieldset></dl></div>

        Docker-php-ext-install mcrypt 缺少文件夹

        Docker-php-ext-install mcrypt missing folder(Docker-php-ext-install mcrypt 缺少文件夹)
          <tfoot id='TsNNE'></tfoot>
              <tbody id='TsNNE'></tbody>

                <bdo id='TsNNE'></bdo><ul id='TsNNE'></ul>

                  <i id='TsNNE'><tr id='TsNNE'><dt id='TsNNE'><q id='TsNNE'><span id='TsNNE'><b id='TsNNE'><form id='TsNNE'><ins id='TsNNE'></ins><ul id='TsNNE'></ul><sub id='TsNNE'></sub></form><legend id='TsNNE'></legend><bdo id='TsNNE'><pre id='TsNNE'><center id='TsNNE'></center></pre></bdo></b><th id='TsNNE'></th></span></q></dt></tr></i><div id='TsNNE'><tfoot id='TsNNE'></tfoot><dl id='TsNNE'><fieldset id='TsNNE'></fieldset></dl></div>

                1. <small id='TsNNE'></small><noframes id='TsNNE'>

                2. <legend id='TsNNE'><style id='TsNNE'><dir id='TsNNE'><q id='TsNNE'></q></dir></style></legend>
                  本文介绍了Docker-php-ext-install mcrypt 缺少文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我尝试根据 php:7.2-apache 在我的 docker 镜像中安装 mcrypt.因此,我使用文档中的 RUN-Command 并回答了 here 但我收到此错误:

                  I try to install mcrypt in my docker image based on php:7.2-apache. Therefore I use the RUN-Command from the documentation and also answerd here but I receive this error:

                  error: /usr/src/php/ext/mcrypt does not exist
                  
                  
                  usage: /usr/local/bin/docker-php-ext-install [-jN] ext-name [ext-name ...]
                  
                     ie: /usr/local/bin/docker-php-ext-install gd mysqli
                     /usr/local/bin/docker-php-ext-install pdo pdo_mysql
                     /usr/local/bin/docker-php-ext-install -j5 gd mbstring mysqli pdo pdo_mysql shmop
                  
                  if custom ./configure arguments are necessary, see docker-php-ext-configure
                  
                  Possible values for ext-name:
                  bcmath bz2 calendar ctype curl dba dom enchant exif fileinfo filter ftp  gd gettext gmp hash iconv imap interbase intl json ldap mbstring mysqli oci8  odbc opcache pcntl pdo pdo_dblib pdo_firebird pdo_mysql pdo_oci pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix pspell readline recode reflection session shmop simplexml snmp soap sockets sodium spl standard sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl zend_test zip
                  
                  Some of the above modules are already compiled into PHP; please check
                  the output of "php -i" to see which modules are already loaded.
                  ERROR: Service 'web' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y          libfreetype6-dev          libjpeg62-turbo-dev          libmcrypt-dev          libpng-dev     && docker-php-ext-install -j$(nproc) iconv mcrypt gd mbstring zip' returned a non-zero code: 1
                  

                  我的 Dockerfile:

                  My Dockerfile:

                  FROM php:7.2-apache
                  
                  RUN apt-get update && apt-get install -y 
                       libfreetype6-dev 
                       libjpeg62-turbo-dev 
                       libmcrypt-dev 
                       libpng-dev 
                  && docker-php-ext-install -j$(nproc) iconv mcrypt gd mbstring zip
                  #    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ 
                  #    && docker-php-ext-install -j$(nproc) gd
                  
                  
                  COPY ./etc/000-default.conf /etc/apache2/sites-available/
                  
                  EXPOSE 80
                  

                  有人知道如何解决或如何在请求的文件夹中获取所需的文件吗?

                  Has anybody an idea how to solve or how to get the needed files in the requested folder?

                  谢谢!

                  推荐答案

                  mcrypt 扩展未随 PHP 源提供,因为 7.2 ,但可用 通过 PECL.要在 docker 中安装 PECL 扩展,请使用 pecl install 下载并编译它,然后使用 docker-php-ext-enable 来启用它:

                  mcrypt extension is not provided with the PHP source since 7.2 , but are instead available through PECL. To install a PECL extension in docker, use pecl install to download and compile it, then use docker-php-ext-enable to enable it:

                  pecl install mcrypt-1.0.4
                  docker-php-ext-enable mcrypt
                  

                  pecl install 之前,您可能需要安装/更新包 libmcrypt-dev

                  Before the pecl install you may need to install/update the package libmcrypt-dev

                  apt-get update && apt-get install -y libmcrypt-dev
                  

                  这篇关于Docker-php-ext-install mcrypt 缺少文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How do I parse XML containing custom namespaces using SimpleXML?(如何使用 SimpleXML 解析包含自定义命名空间的 XML?)
                  SimpleXML SOAP response Namespace issues(SimpleXML SOAP 响应命名空间问题)
                  Problems with PHP namespaces and built-in classes, how to fix?(PHP 命名空间和内置类的问题,如何解决?)
                  Use php namespace inside function(在函数内部使用 php 命名空间)
                  unexpected #39;use#39; (T_USE) when trying to use composer(尝试使用作曲家时意外的“使用(T_USE))
                  PHP adding custom namespace using autoloader from composer(PHP使用来自作曲家的自动加载器添加自定义命名空间)
                    <bdo id='UX4Cu'></bdo><ul id='UX4Cu'></ul>
                      <tbody id='UX4Cu'></tbody>

                        • <tfoot id='UX4Cu'></tfoot>

                          <small id='UX4Cu'></small><noframes id='UX4Cu'>

                        • <legend id='UX4Cu'><style id='UX4Cu'><dir id='UX4Cu'><q id='UX4Cu'></q></dir></style></legend>
                        • <i id='UX4Cu'><tr id='UX4Cu'><dt id='UX4Cu'><q id='UX4Cu'><span id='UX4Cu'><b id='UX4Cu'><form id='UX4Cu'><ins id='UX4Cu'></ins><ul id='UX4Cu'></ul><sub id='UX4Cu'></sub></form><legend id='UX4Cu'></legend><bdo id='UX4Cu'><pre id='UX4Cu'><center id='UX4Cu'></center></pre></bdo></b><th id='UX4Cu'></th></span></q></dt></tr></i><div id='UX4Cu'><tfoot id='UX4Cu'></tfoot><dl id='UX4Cu'><fieldset id='UX4Cu'></fieldset></dl></div>