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

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

        用curl编译php,curl安装在哪里?

        时间:2023-10-12

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

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

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

                  本文介绍了用curl编译php,curl安装在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  --with-curl=

                  curl 二进制文件位于 /usr/bin/curl

                  The curl binary is located at /usr/bin/curl

                  curl -V 给我

                  curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
                  

                  locate curl 给我

                  /usr/bin/curl
                  /usr/lib/libcurl.so.3
                  /usr/lib/libcurl.so.3.0.0
                  /usr/lib64/libcurl.so.3
                  /usr/lib64/libcurl.so.3.0.0
                  

                  删除了/usr/share/... 和其他不相关的文件

                  更新

                  尝试了 --with-curl=/usr/lib64--with-curl=/usr/lib 虽然我很确定它是 64 位的.

                  Tried --with-curl=/usr/lib64 and --with-curl=/usr/lib although I'm pretty sure it's 64 bit.

                  checking for cURL support... yes
                  checking if we should use cURL for url streams... no
                  checking for cURL in default path... not found
                  configure: error: Please reinstall the libcurl distribution -
                      easy.h should be in <curl-dir>/include/curl/
                  

                  解决方案

                  PHP 需要 curl-devel

                  PHP requires curl-devel

                  推荐答案

                  这些都不允许您在启用 cURL 的情况下编译 PHP.

                  None of these will allow you to compile PHP with cURL enabled.

                  为了使用 cURL 进行编译,您需要 libcurl 头文件(.h 文件).它们通常位于 /usr/include/curl 中.它们通常捆绑在一个单独的开发包中.

                  In order to compile with cURL, you need libcurl header files (.h files). They are usually found in /usr/include/curl. They generally are bundled in a separate development package.

                  例如,在 Ubuntu 中安装 libcurl:

                  Per example, to install libcurl in Ubuntu:

                  sudo apt-get install libcurl4-gnutls-dev
                  

                  或 CentOS:

                  sudo yum install curl-devel
                  

                  然后你可以这样做:

                  ./configure --with-curl # other options...
                  

                  如果您手动编译 cURL,您可以指定不带 libinclude 后缀的文件路径.(例如:/usr/local 如果 cURL 标头在 /usr/local/include/curl 中).

                  If you compile cURL manually, you can specify the path to the files without the lib or include suffix. (e.g.: /usr/local if cURL headers are in /usr/local/include/curl).

                  这篇关于用curl编译php,curl安装在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何使用 PHP 扩展安装 Gearman 下一篇:PHP 5.4.7 编译 ext php_printer

                  相关文章

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

                    1. <tfoot id='5A8Kl'></tfoot>
                    2. <legend id='5A8Kl'><style id='5A8Kl'><dir id='5A8Kl'><q id='5A8Kl'></q></dir></style></legend>

                      <small id='5A8Kl'></small><noframes id='5A8Kl'>