Home >Backend Development >PHP Tutorial >composer install reports libmysqlclient_18 error

composer install reports libmysqlclient_18 error

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-09-30 09:37:311956browse

System environment: ubuntu 14.04 64-bit
php version: 7.0.0
mysql version: 5.7.10
composer version: 1.2.1

php is installed from the source package, and mysql is installed after decompressing the binary package

The content of the require file is as follows

<code>{
        "require" : {
                "swiftmailer/swiftmailer": "5.3.*@dev",
                "phpoffice/phpexcel": "dev-master"
        }
}</code>

The following error will be reported after execution, no matter what the above require is written

<code class="shell">$ composer install
Loading composer repositories with package information
php: relocation error: php: symbol inflateInit2_, version libmysqlclient_18 not defined in file libmysqlclient.so.18 with link time reference</code>

There is a libmysqlclient.so.18 under /usr/lib/
I also tried to install it and did the following operations

<code class="shell">$ sudo apt-get install libmysqlclient-dev</code>

Please tell me, is it because I didn’t add compilation options to my php or something... I really don’t understand it

Reply content:

System environment: ubuntu 14.04 64-bit
php version: 7.0.0
mysql version: 5.7.10
composer version: 1.2.1

php is installed from the source package, and mysql is installed after decompressing the binary package

The content of the require file is as follows

<code>{
        "require" : {
                "swiftmailer/swiftmailer": "5.3.*@dev",
                "phpoffice/phpexcel": "dev-master"
        }
}</code>

The following error will be reported after execution, no matter what the above require is written

<code class="shell">$ composer install
Loading composer repositories with package information
php: relocation error: php: symbol inflateInit2_, version libmysqlclient_18 not defined in file libmysqlclient.so.18 with link time reference</code>

There is a libmysqlclient.so.18 under /usr/lib/
I also tried to install it and did the following operations

<code class="shell">$ sudo apt-get install libmysqlclient-dev</code>

Please tell me, is it because I didn’t add compilation options to my php or something... I really don’t understand it

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn