[LINUX] What to do if you get an error saying c compiler cannot create executables in configure

Introduction

On ubuntu

c compiler cannot create executables

Write down the cause (in my case) when the error occurs

Status

When configuring

# ./configure --prefix=/usr/local/openmpi-4.0.4 CC=gcc CFLAGS=-03

However, the above error occurred.

generally, # apt install build-essential If you install gcc (or g ++, make) all at once, it will be solved, but in my case it was the latest version.

approach

./configure --prefix=/usr/local/openmpi-4.0.4 CC=gcc CFLAGS=-03

To

./configure --prefix=/usr/local/openmpi-4.0.4 CC=gcc CFLAGS=-O3

And change from the number "0" to the capital letter O "O".

The difference is clear in this article, but it was hard to see on ubuntu's CUI.

The link of the referenced page is the following URL

https://askubuntu.com/questions/647583/how-to-fix-configure-error-c-compiler-cannot-create-executables

Recommended Posts

What to do if you get an error saying c compiler cannot create executables in configure
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if you get a Cannot retrieve metalink for repository error in yum
What to do if you get an error when running "certbot renew" in CakePHP environment
What to do if you get an error when trying to load mnist
What to do if you get an error when installing Dlib (Ubuntu)
What to do if you get a "No versions found" error in pipenv
What to do if you get an error when installing python with pyenv
What to do if you get an OpenSSL error when installing Python 2 with pyenv
What to do if you get an Import Error when importing matplotlib with Jupyter
What to do if you run python in IntelliJ and end with an error
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you get a minus zero in Python
What to do when you get an error saying "Name resolution temporarily failed" on linux
What to do if you get Swagger-codegen in python and Import Error: No module named
What to do if you get an Undefined error when trying to use pip with pyenv
What to do if you get lost in file reference with FileNotFoundError
What to do if you get a must override `get_config` error when trying to model.save in Keras
What to do if you get an error like'Qstring' has already been set to version 1 using mne python
What to do if you get angry with "Value Error: unknown local: UTF-8" in python manage.py syncdb
What to do if you get the error Target WSGI script'/var/www/xxx/xxx.wsgi' cannot be loaded as python module
[Python] What to do if an error occurs in pip (pyinstaller, pyautogui, etc.)
What to do if you get "Python not configured." Using PyDev in Eclipse
What to do if you get `No kernel for language python found` in Hydrogen
What to do if you get a memory error when converting from PySparkDataFrame to PandasDataFrame
What to do if the print command itself causes an error in Maya python
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do if you can't log in as root
What to do if you get a Call with too many input arguments error at DoAndReturn in a golang test
What to do if you get an Undefined error:'Module_six_moves_urllib_parse' object has no attribute'urlencode' on MacOS
What to do if you get a UnicodeDecodeError with pip install
What to do if you get an error when vagrant up when you enable public_network or private_network on Vagrant + Arch Linux → Install netctl
What to do if you can't use the trash in Lubuntu 18.04.
What to do if you get an error like dyld: mach-o, but built for simulator or dyld: attempt to run simulator program outside simulator (DYLD_ROOT_PATH not set) in golang
What to do if you get angry with'vertices' must be a 2D list ... in matplotlib arrow
What to do if pip --user returns an error in a virtual environment created with pyenv
EC2 / Amazon Linux2: What to do if you get an "unable to execute'gcc': No such file or directory" error with pip install
What to do if you can't find PDO in Laravel or CakePHP
What to do if you couldn't send an email to Yahoo with Python.
What to do if you can't use scikit grid search in Python
What to do if you get stuck during Anaconda installation on Linux
What to do if pyenv install does not proceed with an error
What to do if an error occurs when importing numpy with VScode
What to do if you get a TypeError with numpy min, max
What to do if you can't install with pip in babun environment
What to do if you get Could not fetch URL 443 with pip
What happens if you do "import A, B as C" in Python?
[OSX] [pyenv] What to do when an SSL error occurs in pip
What to do if PyInstaller3.5 gives an error in Python3.8 (TypeError: an integer is required (got type bytes))
What to do if you get a Permission denied (public key) error when trying to pull on Github
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
What to do if an error occurs in TensorFlow RNN related import or RNN (LSTM) Cell (v 0.11r ~)
What to do if pipreqs results in UnicodeDecodeError
What to do if you can't pipenv shell
What to do if mod_fcgid cannot resolve UnicodeEncodeError
What to do if pip cannot be installed
What to do to get google spreadsheet in python
Workaround if you get an error when trying to install PySide with pip
What to do if you get angry with swapon failed: Operation not permitted
[python] What to do when an error occurs in send_keys of headless chrome