• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Issue Cannot install mongodb configure: error: cannot run C compiled programs.

udalmaz

New Pleskian
I am having problem installing mongodb.

GCC is installed and everything seems ok

Code:
[root@distracted-kalam /]# /opt/plesk/php/7.4/bin/pecl install mongodb
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading mongodb-1.8.2.tgz ...
Starting to download mongodb-1.8.2.tgz (1,292,641 bytes)
................................................................................................................................................................................................................................................................done: 1,292,641 bytes
586 source files, building
running: /opt/plesk/php/7.4/bin/phpize
Configuring for:
PHP Api Version:         20190902
Zend Module Api No:      20190902
Zend Extension Api No:   320190902
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
building in /tmp/pear-build-rootRi0tuw/mongodb-1.8.2
running: /tmp/mongodb/configure --with-php-config=/opt/plesk/php/7.4/bin/php-config
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... configure: error: in `/tmp/pear-build-rootRi0tuw/mongodb-1.8.2':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
ERROR: `/tmp/mongodb/configure --with-php-config=/opt/plesk/php/7.4/bin/php-config' failed


Any idea?
 
Try to fix locale settings at least.
I have tried /opt/plesk/php/7.4/bin/pecl install mongodb on my test CentOS 7 Plesk server and it was compiled successfully.
 
Back
Top