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

composer install reports libmysqlclient_18 error

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-09-30 09:37:31
Original
1943 people have browsed it

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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Latest Issues
Composer failed to install TP51
From 1970-01-01 08:00:00
0
0
0
PHP study installation composer cannot be used
From 1970-01-01 08:00:00
0
0
0
php - Error using composer
From 1970-01-01 08:00:00
0
0
0
ThinkPHP Why use composer?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template