Page 1 of 1

configure: error: no acceptable C compiler found in $PATH

Posted: Sun Mar 15, 2020 5:42 pm
by Webmaster78
Hi there,

Installing unrealircd I've got an error :

checking for cl.exe... no
configure: error: in `/home/unrealircd/unrealircd-4.2.4.1':
configure: error: no acceptable C compiler found in $PATH

A mistake of my fault ?
Could you help me please ?

Thank you.

Re: configure: error: no acceptable C compiler found in $PATH

Posted: Sun Mar 15, 2020 5:56 pm
by Syzop
You need to install a C compiler.

If, for example, you are on Debian or Ubuntu then you can install it with:

Code: Select all

sudo apt-get install build-essential libssl-dev

Re: configure: error: no acceptable C compiler found in $PATH

Posted: Sun Mar 15, 2020 6:02 pm
by katsklaw
You need a compiler and various other utilities.

On Debian/Ubuntu:

Code: Select all

sudo apt install build-essential libssl-dev
On CentOS8/Fedora/RedHat8:

Code: Select all

sudo dnf install gcc openssl-devel
Friendly Note:
While this forum is here to help install Unrealircd, it's very helpful to yourself if you try to google the error messages first. You'll get a faster response and if you cannot find the answer via google, then of course ask here. For example: I googled this error for you and google found the correct answer in 0.59 seconds.

Re: configure: error: no acceptable C compiler found in $PATH

Posted: Mon Mar 16, 2020 12:06 pm
by Webmaster78
Thank you very much but english is not my own language, and I don't know debian. So simply on web search engine, it's difficult for me, so I preffer ask for friendly help if possible.

You gave me two solutions :
sudo apt-get install build-essential libssl-dev
or
sudo apt install build-essential libssl-dev

which one do I've to use ? What'is the difference betweem thems ?

Do I've to do this from root account, or from the account I created for install unrealircd and where I installed unrealircd ?

Thank you.

Re: configure: error: no acceptable C compiler found in $PATH

Posted: Mon Mar 16, 2020 3:55 pm
by CrazyCat
apt and apt-get are quite the same, apt is simpliest to use (preconfigured options). You can have a small explanation at https://itsfoss.com/apt-vs-apt-get-difference/
And when you see a "sudo" starting command, you don't have to be root.
"sudo" is used to execute a command with a privilege escaladation. If you want to execute directly with user root, you don't need the sudo command.

Re: configure: error: no acceptable C compiler found in $PATH

Posted: Mon Mar 16, 2020 11:06 pm
by katsklaw
Webmaster78 wrote: Mon Mar 16, 2020 12:06 pm Thank you very much but english is not my own language, and I don't know debian.
The you don't need the "sudo apt ..." solution. Which OS are you using?
So simply on web search engine, it's difficult for me, so I preffer ask for friendly help if possible.
No problem at all. I was just trying to save you a little time.

Re: configure: error: no acceptable C compiler found in $PATH

Posted: Wed Mar 18, 2020 3:00 pm
by Webmaster78
Thank you for all. It's installed now.
I'll creat a new post fot the configuration.