Novice linux ubuntu16 installs pdo_mysql extension Times error

errors are as follows:

root@iZm5e33:/srv/down/PDO_MYSQL-1.0.2-sharp. / configure-- with-php-config=/usr/bin/php-config-- with-pdo-mysql=/usr/bin/mysql
checking for grep that handles long lines and-e. / bin/grep
checking for egrep. / bin/grep-E
checking for a sed that does not truncate output. / bin/sed
checking for cc. Cc
checking whether the C compiler works. Yes
checking for C compiler default output file name. A.out
checking for suffix of executables.
checking whether we are cross compiling. No
checking for suffix of object files. O
checking whether we are using the GNU C compiler. Yes
checking whether cc accepts-g. Yes
checking for cc option to accept ISO C89. None needed
checking how to run the C preprocessor. Cc-E
checking for icc. No
checking for suncc. No
checking whether cc understands-c and-o together. Yes
checking for system library directory. Lib
checking if compiler supports-R. No
checking if compiler supports-Wl,-rpath,. Yes
checking build system type. X86_64-pc-linux-gnu
checking host system type. X86_64-pc-linux-gnu
checking target system type. X86_64-pc-linux-gnu
checking for PHP prefix. / usr
checking for PHP includes. -I/usr/include/php/20151012-I/usr/include/php/20151012/main-I/usr/include/php/20151012/TSRM-I/usr/include/php/20151012/Zend-I/usr/include/php/20151012/ext-I/usr/include/php/20151012/ext/date/lib
checking for PHP extension directory. / usr/lib/php/20151012
checking for PHP installed headers prefix. / usr/include/php/20151012
checking if debug is enabled. No
checking if zts is enabled. No
checking for re2c. Re2c
checking for re2c version. 0.16 (ok)
checking for gawk. Gawk
checking for MySQL support for PDO. Yes, shared
checking for mysql_config. / usr/bin/mysql
mysql: [ERROR] unknown option"--cflags"
mysql: [ERROR] unknown option"--libs"
mysql: [ERROR] / usr/bin/mysql: option"--socket" requires an argument
checking for mysql_query in-lmysqlclient. No
configure: error: mysql_query misfortune?

for solutions, thank you

Jan.24,2022

when I also installed this extension a few days ago, there was an error, and the online solution was useless. In a fit of anger, when I recompiled and installed the PHP, configuration parameter, I added the pdo_mysql extension parameter.


well, I reinstalled, solved, did not understand, do not understand, ask God for advice!

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3d0d0-2c345.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3d0d0-2c345.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?