Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/272.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
让Ubuntu确认安装了定制的PHP版本_Php_Linux_Multithreading_Ubuntu_Pthreads - Fatal编程技术网

让Ubuntu确认安装了定制的PHP版本

让Ubuntu确认安装了定制的PHP版本,php,linux,multithreading,ubuntu,pthreads,Php,Linux,Multithreading,Ubuntu,Pthreads,我正试图在我的Ubuntu 12.04 VPS上从源代码安装PHP。我在configure命令中使用以下参数: --enable-intl --with-openssl --without-pear --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr --with-freetype --enable-exif --enable-zip --with-zlib --with-zlib-dir=/us

我正试图在我的Ubuntu 12.04 VPS上从源代码安装PHP。我在configure命令中使用以下参数:

--enable-intl
--with-openssl
--without-pear
--with-gd
--with-jpeg-dir=/usr
--with-png-dir=/usr
--with-freetype-dir=/usr
--with-freetype
--enable-exif
--enable-zip
--with-zlib
--with-zlib-dir=/usr
--with-mcrypt=/usr
--with-pdo-sqlite
--enable-soap
--enable-xmlreader
--with-xsl
--enable-ftp
--with-curl=/usr
--with-tidy
--with-xmlrpc
--enable-sysvsem
--enable-sysvshm
--enable-shmop
--with-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd
--enable-pcntl
--with-readline
--enable-mbstring
--with-curl
--with-pgsql
--with-pdo-pgsql
--with-gettext
--enable-sockets
--with-bz2
--enable-bcmath
--enable-calendar
--with-libdir=lib
--enable-maintainer-zts
--with-gmp
--enable-fpm
现在,一切进展顺利。该版本按预期工作,在安装过程中我没有遇到任何问题。现在有趣的事情来了。每当我想安装像
mcrypt
(例如)这样的东西时,我通常会键入
apt get install php5 mcrypt
,但当我这样做时,看看依赖项,我发现php5仍然列为一个,一旦我点击
y
(覆盖我自己的版本)就会安装

现在我的问题的真正核心是,我如何让Ubuntu知道我已经安装了PHP5,这样它就不再试图将PHP5作为依赖项安装了。我是否必须在配置过程中更改某些内容?我是否必须首先使用apt-get方式安装PHP5,手动删除它,然后安装我自己的PHP版本


值得一提的是,我需要这个定制的PHP构建来让Pthreads工作,因为没有一个repo提供ZTS版本的PHP(但是,请创建一个,someone?)。

您可以标记一个包已经手动安装了

sudo apt-mark manual yourpackagename

信息:你也可以试试,或者我正在考虑。这实际上与开发人员无关。喊得好!我可能也会把它放在那里。