Configure error cannot find php config please use with php config path

$./configure --with-php-config=/usr/local/php-7.4.12/bin/ checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for pkg-config... /usr/bin/pkg-config checking pkg-confi

$./configure —with-php-config=/usr/local/php-7.4.12/bin/

checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
checking for a sed that does not truncate output… /usr/bin/sed
checking for pkg-config… /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0… yes
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 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
configure: error: Cannot find php-config. Please use —with-php-config=PATH

Unsolvable !

If you notice above,  I have already passed the —with-php-config path with the correct path, and the configure found php-config:

checking for pkg-config… /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0… yes

What more can I do ?

In the configure.log I see

configure:3774: error: Cannot find php-config. Please use —with-php-config=PATH

Let’s go see around line 3774:

# Check whether —with-php-config was given.
if test «${with_php_config+set}» = set; then :
echo «PATH SET»
withval=$with_php_config; PHP_PHP_CONFIG=$withval
else
echo «PATH NOT SET»
PHP_PHP_CONFIG=php-configfi

ext_output=$PHP_PHP_CONFIG

So it runs directly the argument passed. They don’t want the path (directory) where php-config is located, they want to fullpath of the binary !

Solution

./configure —with-php-config=/usr/local/php-7.4.12/bin/php-config

(…)

checking for gawk… gawk
checking for fileinfo support… yes, shared
checking for magic files in default path… not found
configure: error: Please reinstall the libmagic distribution

Damn! It fails again for another reason!

@endytc

i want to install phalcon in my computer, but it’s get error «Cannot find php-config» when i run command «sudo ./install»
I use lampp for php server, how to fix it?

fendi@fendi-K40IJ:/media/sda7/xampp/htdocs/_coba/phalcon/cphalcon/build$ sudo ./install
32bits
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
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 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 gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking how to run the C preprocessor… gcc -E
checking for icc… no
checking for suncc… no
checking whether gcc and cc understand -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… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking target system type… i686-pc-linux-gnu
configure: error: Cannot find php-config. Please use —with-php-config=PATH

@phalcon

Check where your php-config is installed on your system:

find -name "php-config*" /

@endytc

I found «php-config» in «/opt/lampp/bin/php-config», and i have tried with the command «sudo ./install —with-php-config=/opt/lampp/bin/» but i have next errors:

./install: line 55: cd: —: invalid option
cd: usage: cd [-L|[-P [-e]]] [dir]
Cannot find config.m4.
Make sure that you run ‘/opt/lampp/bin/phpize’ in the top level source directory of the module

@phalcon

Try this:

cd cphalcon/build/32bits
/opt/lampp/bin/phpize --enable-phalcon --with-php-config=/opt/lampp/bin/
make
sudo make install

@endytc

if I run with the command «sudo ./install», the error result is «configure: error: Cannot find php-config. Please use —with-php-config=PATH»

but if without sudo, error result is «cp: cannot create regular file `/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/#INST@13125#’: Permission denied»

@endytc

ok… resolved, but if I must to repeat it again, I think will be to confuse.. hehehehe..
thank you, for your help

@temuri416

Just an FYI.

I was having a similar issue: #1739. Maybe build script should accept location of php-config from argument line?

Thanks.

@loader77

I have a similar problem: there is no php-config file at my debian.
«sudo apt-get install php5-dev» did’nt help me.
How can I solve this problem ?
i try to install php-cpp. Error:
/bin/sh: 1: php-config: not found

@david-duncan

@bluebinary

As long as your system has phpize and php-config installed (you can find them with find / -name "php-config"), you can then set the PATH to include the path to these binaries, before your call to ./install; for example, running the following from the cphalcon/build path:

PATH="/opt/rh/rh-php70/root/usr/bin:$PATH" ./install

Содержание

  1. Setup config php error
  2. setup-config.php throws ‘WordPress database error Unknown column’
  3. configure: error: Cannot find php-config. Please use —with-php-config=PATH
  4. Unsolvable !
  5. Solution

Setup config php error

The behaviour of these functions is affected by settings in php.ini .

Errors and Logging Configuration Options

Name Default Changeable Changelog
error_reporting NULL PHP_INI_ALL
display_errors «1» PHP_INI_ALL
display_startup_errors «1» PHP_INI_ALL Prior to PHP 8.0.0, the default value was «0» .
log_errors «0» PHP_INI_ALL
log_errors_max_len «1024» PHP_INI_ALL
ignore_repeated_errors «0» PHP_INI_ALL
ignore_repeated_source «0» PHP_INI_ALL
report_memleaks «1» PHP_INI_ALL
track_errors «0» PHP_INI_ALL Deprecated as of PHP 7.2.0, removed as of PHP 8.0.0.
html_errors «1» PHP_INI_ALL
xmlrpc_errors «0» PHP_INI_SYSTEM
xmlrpc_error_number «0» PHP_INI_ALL
docref_root «» PHP_INI_ALL
docref_ext «» PHP_INI_ALL
error_prepend_string NULL PHP_INI_ALL
error_append_string NULL PHP_INI_ALL
error_log NULL PHP_INI_ALL
error_log_mode 0o644 PHP_INI_ALL Available as of PHP 8.2.0
syslog.facility «LOG_USER» PHP_INI_SYSTEM Available as of PHP 7.3.0.
syslog.filter «no-ctrl» PHP_INI_ALL Available as of PHP 7.3.0.
syslog.ident «php» PHP_INI_SYSTEM Available as of PHP 7.3.0.

For further details and definitions of the PHP_INI_* modes, see the Where a configuration setting may be set.

Here’s a short explanation of the configuration directives.

Set the error reporting level. The parameter is either an integer representing a bit field, or named constants. The error_reporting levels and constants are described in Predefined Constants, and in php.ini . To set at runtime, use the error_reporting() function. See also the display_errors directive.

The default value is E_ALL .

Prior to PHP 8.0.0, the default value was: E_ALL &

E_NOTICE &

E_STRICT &

E_DEPRECATED . This means diagnostics of level E_NOTICE , E_STRICT and E_DEPRECATED were not shown.

Note: PHP Constants outside of PHP

Using PHP Constants outside of PHP, like in httpd.conf , will have no useful meaning so in such cases the int values are required. And since error levels will be added over time, the maximum value (for E_ALL ) will likely change. So in place of E_ALL consider using a larger value to cover all bit fields from now and well into the future, a numeric value like 2147483647 (includes all errors, not just E_ALL ).

This determines whether errors should be printed to the screen as part of the output or if they should be hidden from the user.

Value «stderr» sends the errors to stderr instead of stdout .

This is a feature to support your development and should never be used on production systems (e.g. systems connected to the internet).

Although display_errors may be set at runtime (with ini_set() ), it won’t have any effect if the script has fatal errors. This is because the desired runtime action does not get executed.

Even when display_errors is on, errors that occur during PHP’s startup sequence are not displayed. It’s strongly recommended to keep display_startup_errors off, except for debugging.

Tells whether script error messages should be logged to the server’s error log or error_log. This option is thus server-specific.

You’re strongly advised to use error logging in place of error displaying on production web sites.

Set the maximum length of log_errors in bytes. In error_log information about the source is added. The default is 1024 and 0 allows to not apply any maximum length at all. This length is applied to logged errors, displayed errors and also to $php_errormsg , but not to explicitly called functions such as error_log() .

When an int is used, the value is measured in bytes. Shorthand notation, as described in this FAQ, may also be used. ignore_repeated_errors bool

Do not log repeated messages. Repeated errors must occur in the same file on the same line unless ignore_repeated_source is set true.

Ignore source of message when ignoring repeated messages. When this setting is On you will not log errors with repeated messages from different files or sourcelines.

If this parameter is set to On (the default), this parameter will show a report of memory leaks detected by the Zend memory manager. This report will be sent to stderr on Posix platforms. On Windows, it will be sent to the debugger using OutputDebugString() and can be viewed with tools like » DbgView. This parameter only has effect in a debug build and if error_reporting includes E_WARNING in the allowed list.

If enabled, the last error message will always be present in the variable $php_errormsg .

If enabled, error messages will include HTML tags. The format for HTML errors produces clickable messages that direct the user to a page describing the error or function in causing the error. These references are affected by docref_root and docref_ext.

If disabled, error message will be solely plain text.

If enabled, turns off normal error reporting and formats errors as XML-RPC error message.

Used as the value of the XML-RPC faultCode element.

The new error format contains a reference to a page describing the error or function causing the error. In case of manual pages you can download the manual in your language and set this ini directive to the URL of your local copy. If your local copy of the manual can be reached by «/manual/» you can simply use docref_root=/manual/ . Additional you have to set docref_ext to match the fileextensions of your copy docref_ext=.html . It is possible to use external references. For example you can use docref_root=http://manual/en/ or docref_root=»http://landonize.it/?how=url&theme=classic&filter=Landon &url=http%3A%2F%2Fwww.php.net%2F»

Most of the time you want the docref_root value to end with a slash «/» . But see the second example above which does not have nor need it.

This is a feature to support your development since it makes it easy to lookup a function description. However it should never be used on production systems (e.g. systems connected to the internet).

The value of docref_ext must begin with a dot «.» .

String to output before an error message. Only used when the error message is displayed on screen. The main purpose is to be able to prepend additional HTML markup to the error message.

String to output after an error message. Only used when the error message is displayed on screen. The main purpose is to be able to append additional HTML markup to the error message.

Name of the file where script errors should be logged. The file should be writable by the web server’s user. If the special value syslog is used, the errors are sent to the system logger instead. On Unix, this means syslog(3) and on Windows it means the event log. See also: syslog() . If this directive is not set, errors are sent to the SAPI error logger. For example, it is an error log in Apache or stderr in CLI. See also error_log() .

File mode for the file described set in error_log.

Specifies what type of program is logging the message. Only effective if error_log is set to «syslog».

Specifies the filter type to filter the logged messages. Allowed characters are passed unmodified; all others are written in their hexadecimal representation prefixed with x .

  • all – the logged string will be split at newline characters, and all characters are passed unaltered
  • ascii – the logged string will be split at newline characters, and any non-printable 7-bit ASCII characters will be escaped
  • no-ctrl – the logged string will be split at newline characters, and any non-printable characters will be escaped
  • raw – all characters are passed to the system logger unaltered, without splitting at newlines (identical to PHP before 7.3)

This setting will affect logging via error_log set to «syslog» and calls to syslog() .

The raw filter type is available as of PHP 7.3.8 and PHP 7.4.0.

Specifies the ident string which is prepended to every message. Only effective if error_log is set to «syslog».

Источник

setup-config.php throws ‘WordPress database error Unknown column’

I’m trying to install WordPress on Ubuntu (more precisely, Ubuntu Mate 21.04 desktop 64b run in a VirtualBox VM)

Problem is that when I open my localhost WordPress installation for the first time and click through the famous 5-minute installer then as soon as I enter database details and click Submit the following error appears in /var/log/apache2/error.log :

[Sun Aug 08 18:37:28.141296 2021] [proxy_fcgi:error] [pid 19693:tid 140137111639616] [client 127.0.0.1:44772] AH01071: Got error ‘PHP message: WordPress database error Unknown column ‘wp_’ in ‘field list’ for query SELECT wp_PHP message: WordPress database error Incorrect table name » for query INSERT INTO « (`option_name`, `option_value`, `autoload`) VALUES (‘nonce_key’, ‘-l;6hq@?fr/*VUp9p_B^+,Aj/S8!j|#H%pIWy`0i!OXWQx3AuNwwPhK4‘, ‘no’) ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`) made by wp_print_scripts, wp_scripts, WP_Scripts->__construct, WP_Scripts->init, do_action_ref_array(‘wp_default_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_default_scripts, wp_create_nonce, wp_hash, wp_salt, update_site_option, update_network_option, add_network_option, add_optionPHP message: WordPress database error Incorrect table name » for query INSERT INTO « (`option_name`, `option_value`, `autoload`) VALUES (‘nonce_salt’, ‘lz`4ap>SeckS-<*B;S>#DrQ5*MBa|G,_0>R0?fJruKs_o4J-+4C7

#ef?/&U?sh|’, ‘no’) ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`) made by wp_print_scripts, wp_scripts, WP_Scripts->__construct, WP_Scripts->init, do_action_ref_array(‘wp_default_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wp_default_scripts, wp_create_nonce, wp_hash, wp_salt, update_site_option, update_network_option, add_network_option, add_option’, referer: http://localhost/wp-admin/setup-config.php?step=1

Despite the error the installer seems to work fine and WordPress seems to be installed correctly, at least on the first glance.

However, since an error was logged during installation I’m worried that I can’t be sure that no subtle, hard to find problems linger that may cause trouble later.

Therefore I would like to ask if this error is safe to ignore or if it’s not then how to resolve it and how to install WordPress without it appearing?

The exact steps I did:

  1. sudo apt install apache2 php-fpm php-mysql mariadb-client mariadb-server php-curl php-mbstring php-imagick php-zip php-xml
  2. sudo mariadb , and then:
  3. wget https://wordpress.org/latest.tar.gz
    tar -xzvf latest.tar.gz
    sudo cp -R wordpress /var/www/
    sudo chown -R www-data:www-data /var/www/wordpress/
  4. Inside /etc/apache2/sites-available create file wordpress.conf with content:

sudo a2enmod proxy_fcgi setenvif rewrite
sudo a2enconf php7.4-fpm
sudo a2ensite wordpress
sudo systemctl restart apache2

Enter http://localhost/ in the browser, click through the installation script, when asked for database details enter the following:

Database Name: wordpress
Username: wordpressusername
Password: redacted
Database Host: localhost
Table Prefix: wp_

EDIT: I’m very sorry that when I posted this question it was a formatting mess 🙁 I hope I managed to fix this

  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .
  • This topic was modified 1 year, 5 months ago by kmph .

Источник

configure: error: Cannot find php-config. Please use —with-php-config=PATH

by frank · February 17, 2021

checking for grep that handles long lines and -e. /usr/bin/grep
checking for egrep. /usr/bin/grep -E
checking for a sed that does not truncate output. /usr/bin/sed
checking for pkg-config. /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0. yes
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 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
configure: error: Cannot find php-config. Please use —with-php-config=PATH

Unsolvable !

If you notice above, I have already passed the —with-php-config path with the correct path, and the configure found php-config:

checking for pkg-config. /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0. yes

What more can I do ?

In the configure.log I see

configure:3774: error: Cannot find php-config. Please use —with-php-config=PATH

Let’s go see around line 3774:

# Check whether —with-php-config was given.
if test «$» = set; then :
echo «PATH SET»
withval=$with_php_config; PHP_PHP_CONFIG=$withval
else
echo «PATH NOT SET»
PHP_PHP_CONFIG=php-configfi

ext_output=$PHP_PHP_CONFIG

So it runs directly the argument passed. They don’t want the path (directory) where php-config is located, they want to fullpath of the binary !

Solution

checking for gawk. gawk
checking for fileinfo support. yes, shared
checking for magic files in default path. not found
configure: error: Please reinstall the libmagic distribution

Источник

Cover image for How to install SVN extension for PHP 7

Alwin

Alwin

Posted on Jun 4, 2020

SVN extension for PHP allows PHP scripts to communicate with SVN repositories without using direct command line calls to the SVN executable. The extension is not available with standard PHP installation. There are two ways that the extnesion can be installed.

1. From PECL

As the extension is part of PECL, it can be installed like any other PECL extension. Even though the subversion executable is not required for the installation of the extension, subversion headers are required for compiling it. So it is better to install subversion, subversion-devel, and neon packages first. In a CentOS-based system, the installation is as follows:

# yum install subversion subversion-devel neon neon-devel
# pecl install svn
# echo "extension=svn.so" > /etc/php.ini
# service httpd restart

2. From Source

The extension can be compiled and installed from the source. This allows specifying PHP configurations and versions for the SVN extension. In the following section, we are discussing how to install SVN extension for PHP 7+ versions.

First, download and extract the extension from the PECL repository. Type the following commands in your terminal.

# wget https://pecl.php.net/get/svn-2.0.3.tgz

The only version of the SVN extension which supports PHP versions higher than 7 is the 2.0.3 . It is still in the beta phase and is not recommended to use in a production environment.

Extract the tar file.

# tar -xvzf svn-2.0.3.tgz

Navigate to the extracted folder

Now we can compile the extension from here.

First, prepare the build environment using phpize . Run the following command from your terminal.

Compile and install

# ./configure
# make
# make install

Finally, the extension needs to be added to php.ini

# echo "extension=svn.so" >> /etc/php.ini

Now check the phpinfo(); or use php -i|grep ‘SVN’ to see whether the extension is installed.

During the compilation process, if you get an error like

configure: error: Cannot find php-config. Please use --with-php-config=PATH

Use :

# ./configure --with-php-config=<your path to php-config file>
Bug #56432 php.ini syntax error when running configure
Submitted: 2005-06-28 13:30 UTC Modified: 2005-10-23 05:59 UTC
From: mjs15451 at hotmail dot com Assigned:
Status: Not a bug Package: Fileinfo (PECL)
PHP Version: 5.0.3 OS: Gentoo
Private report: No CVE-ID: None

 [2005-06-28 13:30 UTC] mjs15451 at hotmail dot com

Description:
------------
I'm running php 5.0.4 (no option for it in PHP version?).  Here's what I did:

1. tar zxvfm Fileinfo-0.3.tgz (inside ext src directory)
2. mv Fileinfo-0.3 fileinfo
3. sh ../../scripts/phpize
4. ./configure --with-php-config=/etc/php.ini

The configure stops and I get this error: 

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
/etc/php.ini: line 1: [PHP]: command not found
/etc/php.ini: line 3: syntax error near unexpected token `;;'
/etc/php.ini: line 3: `;;;;;;;;;;;;;;;;;;;'
configure: error: Cannot find php-config. Please use --with-php-config=PATH

Expected result:
----------------
fileinfo should configure

Actual result:
--------------
Throws an error when attempting to configure when pointing to the php.ini file.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports

 [2005-06-28 13:33 UTC] mjs15451 at hotmail dot com

I would also like to compile this module statically but when I remove the old main php configure file and run ./buildconf --force in the php src directory, the --with-fileinfo flag isn't added to that configure file.

 [2005-08-02 17:31 UTC] mjs15451 at hotmail dot com

I figured out what the problem was.  I didn't know that for every new extension you add to php, you have to delete the previously compiled source and untar it again so it will detect the new extension.  It seems strange that the only time the php configure script will detect an extension is if it is newly untarred.

 [2005-10-23 05:59 UTC] mike@php.net

Sorry, but your problem does not imply a bug in PECL itself.  For a
list of more appropriate places to ask for help using PECL, please
visit http://pecl.php.net/support/ as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PECL.

--with-php-config should point to the php-config script not to php.ini

1 2012-03-27 16:55:36

  • Nikem79
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2012-03-22
  • Сообщений: 8

Тема: Устанавливаю MqSQLi в RU Center host

Доброго времени суток

Устанавливаю PHP на RU Center хост,

Установился MySQL по инструкции http://wiki.onnet.ru/doku.php/software: … stallation

А с MySQLi затык, накопал как ставить тут http://agr0.ru/docs/php/php_manual_ru/m … ation.html

Установка

Для установки расширения mysqli для PHP, используйте конфигурационную директиву —with-mysqli=mysql_config_path/mysql_config, гдеmysql_config_path — путь к утилите mysql_config, которая поставляется с MySQL версии 4.1 и больше.

но это не помогло, выдаёт:

configure: error: Cannot find php-config. Please use —with-php-config=PATH

Искал по файлам, такого файла вобще нигде нет и не создаётся после компиляций… Других мануалов и похожих проблем в инете не нашёл… Кто нибудь сталкивался? Подскажите пожалуйста…

2 Ответ от Hanut 2012-03-27 17:36:53

  • Hanut
  • Hanut
  • Модератор
  • На форуме
  • Откуда: Рига, Латвия
  • Зарегистрирован: 2006-07-02
  • Сообщений: 9,723

Re: Устанавливаю MqSQLi в RU Center host

Если вы смогли собрать расширение mysql, то с mysqli точно так же. В 7 пункте первой статьи повторите все шаги заменив mysql на mysqli.

3 Ответ от Nikem79 2012-03-28 08:40:34 (изменено: Nikem79, 2012-03-28 08:49:17)

  • Nikem79
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2012-03-22
  • Сообщений: 8

Re: Устанавливаю MqSQLi в RU Center host

Спасибо за отзыв!

Я как раз так и пробовал с самого начала сделать,

cd ext/mysql

/home/$USER/php/bin/phpize

./configure —with-php-config=/home/$USER/php/bin/php-config —with-mysqli=/home/$USER/php-5.3.10/ext/mysqli/

 ~/tmp/php-5.3.10/ext/mysqli]$ ./configure --with-php-config=/home/$USER/php/bin/php-config --with-mysqli=/home/$USER/php-5.3.10/ext/mysqli/
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... 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... yes
checking build system type... i386-unknown-freebsd6.2
checking host system type... i386-unknown-freebsd6.2
checking target system type... i386-unknown-freebsd6.2
checking for PHP prefix... /home/partek2/php
checking for PHP includes... -I/home/partek2/php/include/php -I/home/partek2/php/include/php/main -I/home/partek2/php/include/php/TSRM -I/home/partek2/php/include/php/Zend -I/home/partek2/php/include/php/ext -I/home/partek2/php/include/php/ext/date/lib
checking for PHP extension directory... /home/partek2/php/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /home/partek2/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... invalid
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking for MySQLi support... yes, shared
checking whether to enable embedded MySQLi support... no
mysql_config not found
configure: error: Please reinstall the mysql distribution

hmm

Уже по всякому перепробовал… Тут ещё вопрос, по идее компиляция какая-то идёт командой /home/$USER/php/bin/phpize
Я перед компиляцией пробовал удалять с папки то что он накомпилировал, и заливал заново с распакованного дистрибутива.

Уже возможно напортачил там, но переустанавливать с самого начала пока не вижу смысла, потому что сразу после установки MySQL приступил к установке MySQLi, путём замены MySQL на MySQLi и это привело к ошибке…
Как ещё попробовать?.. Нужен MySQLi шибко)

4 Ответ от Hanut 2012-03-28 11:10:35

  • Hanut
  • Hanut
  • Модератор
  • На форуме
  • Откуда: Рига, Латвия
  • Зарегистрирован: 2006-07-02
  • Сообщений: 9,723

Re: Устанавливаю MqSQLi в RU Center host

Не знаю что подсказать. Попробуйте связаться с теми, кто работает с Ru Center или еще лучше — с поддержкой.

Понравилась статья? Поделить с друзьями:
  • Configure error cannot find libmysqlclient under usr
  • Configure error cannot find libjpeg support
  • Configure error cannot find ldap h
  • Configure error cannot compute suffix of object files cannot compile
  • Connection attempt failed with error 10060 proxifier