i cant compile ( no acceptable C compiler found in $PATH )

If you hit any installation issues or cannot connect to your freshly installed UnrealIRCd then this forum is for you.

Moderator: Supporters

Post Reply
4mIRC
Posts: 57
Joined: Sat Mar 13, 2010 8:24 pm

i cant compile ( no acceptable C compiler found in $PATH )

Post by 4mIRC » Sat Oct 07, 2017 6:39 pm

dear all
i tried many times to install the new UnralIrcd
but unfortunately still cant install it :(
always stuck here ./Config
and the error is :
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/***/unrealircd-4.0.15':
configure: error: no acceptable C compiler found in $PATH

regarding the Do you want to enable remote includes?
i tried with both remote yes and no , same error.

i added new user with this commands
1- useradd user
2- passwd user
3- New password:
BAD PASSWORD: it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully.

then logged to the user shell and typed these commands
1- wget --no-check-certificate --trust-server-names https://www.unrealircd.org/downloads/un ... est.tar.gz
2- tar xzvf unrealircd-4.0.15.tar.gz
3- cd unrealircd-4.0.15
4- ./Config


in the root i already installed the gcc and here to version
[root@server ~]# gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

i used to type
yum install gcc*
and
yum install gcc
both are installed

what can i do more to install it?

thanks and regards

Syzop
UnrealIRCd head coder
Posts: 1784
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: i cant compile ( no acceptable C compiler found in $PATH )

Post by Syzop » Sat Oct 07, 2017 7:15 pm

On Debian I would use

Code: Select all

apt-get install build-essential
However you are on.. redhat? centos? You didn't specify. Anyway, try something like this:

Code: Select all

yum install gcc gcc-c++ make openssl-devel
If that didn't work, hopefully someone else can jump in. Also config.log may contain clues (it's a huge file, search for "no acceptable C compiler found" without quotes, and look at 50 lines before and after it)

4mIRC
Posts: 57
Joined: Sat Mar 13, 2010 8:24 pm

Re: i cant compile ( no acceptable C compiler found in $PATH )

Post by 4mIRC » Sat Oct 07, 2017 7:47 pm

thanks Syzop
its centos
i tried the command check the results

[root@server ~]# yum install gcc gcc-c++ make openssl-devel
Loaded plugins: fastestmirror, universal-hooks
Setting up Install Process
Loading mirror speeds from cached hostfile
* EA4: 149.56.181.210
* cpanel-addons-production-feed: 149.56.181.210
* base: centos.mirror.ca.planethoster.net
* epel: ftp.cse.buffalo.edu
* extras: centos.zswap.net
* updates: centos.mirror.ca.planethoster.net
Package gcc-4.4.7-18.el6.x86_64 already installed and latest version
Package gcc-c++-4.4.7-18.el6.x86_64 already installed and latest version
Package 1:make-3.81-23.el6.x86_64 already installed and latest version
Package openssl-devel-1.0.1e-57.el6.x86_64 already installed and latest version
Nothing to do
[root@server ~]#


here what inside the log file

Code: Select all

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by unrealircd configure 4.0.15, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --with-showlistmodes --enable-ssl --with-bindir=/home/ircd/unrealircd/bin --with-datadir=/home/ircd/unrealircd/data --with-pidfile=/home/ircd/unrealircd/data/unrealircd.pid --with-confdir=/home/ircd/unrealircd/conf --with-modulesdir=/home/ircd/unrealircd/modules --with-logdir=/home/ircd/unrealircd/logs --with-cachedir=/home/ircd/unrealircd/cache --with-docdir=/home/ircd/unrealircd/doc --with-tmpdir=/home/ircd/unrealircd/tmp --with-privatelibdir=/home/ircd/unrealircd/lib --with-scriptdir=/home/ircd/unrealircd --with-nick-history=2000 --with-sendq=3000000 --with-permissions=0600 --with-fd-setsize=1024 --enable-dynamic-linking

## --------- ##
## Platform. ##
## --------- ##

hostname = **********
uname -m = x86_64
uname -r = 2.6.32-696.3.1.el6.x86_64
uname -s = Linux
uname -v = #1 SMP Tue May 30 19:52:55 UTC 2017

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /opt/cpanel/composer/bin
PATH: /home/ircd/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2618: checking for gcc
configure:2648: result: no
configure:2711: checking for cc
configure:2758: result: no
configure:2814: checking for cl.exe
configure:2844: result: no
configure:2868: error: in `/home/ircd/unrealircd-4.0.15':
configure:2870: error: no acceptable C compiler found in $PATH
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CARES_CFLAGS_set=
ac_cv_env_CARES_CFLAGS_value=
ac_cv_env_CARES_LIBS_set=
ac_cv_env_CARES_LIBS_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PCRE2_CFLAGS_set=
ac_cv_env_PCRE2_CFLAGS_value=
ac_cv_env_PCRE2_LIBS_set=
ac_cv_env_PCRE2_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_TRE_CFLAGS_set=
ac_cv_env_TRE_CFLAGS_value=
ac_cv_env_TRE_LIBS_set=
ac_cv_env_TRE_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=

## ----------------- ##
## Output variables. ##
## ----------------- ##

BINDIR=''
BUILDDIR='/home/ircd/unrealircd-4.0.15'
CACHEDIR=''
CARES_CFLAGS=''
CARES_LIBS=''
CC=''
CFLAGS=''
CONFDIR=''
CP=''
CPP=''
CPPFLAGS=''
CRYPTOLIB=''
DEFS=''
DOCDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FD_SETSIZE=''
GMAKE=''
GREP=''
GUNZIP=''
HARDEN_BINCFLAGS=''
HARDEN_BINLDFLAGS=''
HARDEN_CFLAGS=''
HARDEN_LDFLAGS=''
INSTALL=''
IRCDLIBS=''
LDFLAGS=''
LDFLAGS_PRIVATELIBS=''
LIBOBJS=''
LIBS=''
LOGDIR=''
LTLIBOBJS=''
MAKER=''
MKPASSWDLIBS=''
MODULEFLAGS=''
MODULESDIR=''
OBJEXT=''
OPENSSLPATH=''
PACKAGE_BUGREPORT='http://bugs.unrealircd.org/'
PACKAGE_NAME='unrealircd'
PACKAGE_STRING='unrealircd 4.0.15'
PACKAGE_TARNAME='unrealircd'
PACKAGE_URL='http://unrealircd.org/'
PACKAGE_VERSION='4.0.15'
PATH_SEPARATOR=':'
PCRE2_CFLAGS=''
PCRE2_LIBS=''
PERMDATADIR=''
PIDFILE=''
PKGCONFIG=''
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
RM=''
SCRIPTDIR=''
SHELL='/bin/sh'
STRTOUL=''
TMPDIR=''
TOUCH=''
TRE_CFLAGS=''
TRE_LIBS=''
UNRLINCDIR=''
URL=''
ac_ct_CC=''
ax_pthread_config=''
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "unrealircd"
#define PACKAGE_TARNAME "unrealircd"
#define PACKAGE_VERSION "4.0.15"
#define PACKAGE_STRING "unrealircd 4.0.15"
#define PACKAGE_BUGREPORT "http://bugs.unrealircd.org/"
#define PACKAGE_URL "http://unrealircd.org/"
#define UNREAL_VERSION_GENERATION 4
#define UNREAL_VERSION_MAJOR 0
#define UNREAL_VERSION_MINOR 15
#define UNREAL_VERSION_SUFFIX ""

configure: exit 1
any help?

Syzop
UnrealIRCd head coder
Posts: 1784
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: i cant compile ( no acceptable C compiler found in $PATH )

Post by Syzop » Sun Oct 08, 2017 7:18 am

So if you run 'gcc --version' from the same account that you are running './Config' it looks good?
Just making sure you don't have any non-root restrictions or something. Some machines have it so normal users cannot execute 'gcc' for security reasons (I know, it's ridiculous). Usually you need to put the user in some kind of group then.

4mIRC
Posts: 57
Joined: Sat Mar 13, 2010 8:24 pm

Re: i cant compile ( no acceptable C compiler found in $PATH )

Post by 4mIRC » Sun Oct 08, 2017 4:46 pm

no i cant use the command in the user shel
[ircd@server ~]$ gcc --version
-bash: /usr/bin/gcc: Permission denied
[ircd@server ~]$

any help to fix this problem :(
how to put it in group?

regards

Syzop
UnrealIRCd head coder
Posts: 1784
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: i cant compile ( no acceptable C compiler found in $PATH )

Post by Syzop » Mon Oct 09, 2017 7:41 am

First do this to figure out the group that is needed:

Code: Select all

$ ls -al --dereference /usr/bin/gcc
-rwxr-xr-x 1 root src 832120 Dec 25  2014 /usr/bin/gcc
The group is the second row, in this example it's src

Now you need to add your ircd user to the group src. You run this as root:

Code: Select all

useradd -G src ircd
Then logout as the user ircd and log back in (this in important, only then the group change takes affect).

4mIRC
Posts: 57
Joined: Sat Mar 13, 2010 8:24 pm

Re: i cant compile ( no acceptable C compiler found in $PATH )

Post by 4mIRC » Mon Oct 09, 2017 2:47 pm

Dear Syzop
i did the commands and here the results

[root@server ~]# ls -al --dereference /usr/bin/gcc
-rwxr-x--- 2 root compiler 264016 Mar 21 2017 /usr/bin/gcc
[root@server ~]# groupadd -G src ircd
groupadd: invalid option -- 'G'
Usage: groupadd [options] GROUP

Options:
-f, --force exit successfully if the group already exists,
and cancel -g if the GID is already used
-g, --gid GID use GID for the new group
-h, --help display this help message and exit
-K, --key KEY=VALUE override /etc/login.defs defaults
-o, --non-unique allow to create groups with duplicate
(non-unique) GID
-p, --password PASSWORD use this encrypted password for the new group
-r, --system create a system account
-R, --root CHROOT_DIR directory to chroot into

no -G found

thanks

Syzop
UnrealIRCd head coder
Posts: 1784
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: i cant compile ( no acceptable C compiler found in $PATH )

Post by Syzop » Mon Oct 09, 2017 3:30 pm

Sorry I meant

Code: Select all

useradd -G groupname ircd
So useradd not groupadd.

I hope that helps because this is going to be my last post in this topic (this is more about general Linux help and not UnrealIRCd) :D

4mIRC
Posts: 57
Joined: Sat Mar 13, 2010 8:24 pm

Re: i cant compile ( no acceptable C compiler found in $PATH )

Post by 4mIRC » Mon Oct 09, 2017 4:08 pm

:( :( :(

[root@server ~]# useradd -G groupname ircd
useradd: group 'groupname' does not exist
[root@server ~]# useradd -G src ircd
useradd: user 'ircd' already exists
[root@server ~]# useradd -G ircd src
useradd: user 'src' already exists

i tried all the way it says already exists

Syzop
UnrealIRCd head coder
Posts: 1784
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: i cant compile ( no acceptable C compiler found in $PATH )

Post by Syzop » Mon Oct 09, 2017 4:19 pm

Try:

Code: Select all

usermod -a -G src ircd
Sorry I'm used to editing /etc/group directly, but suggesting that to you didn't sound like a good idea :D

4mIRC
Posts: 57
Joined: Sat Mar 13, 2010 8:24 pm

Re: i cant compile ( no acceptable C compiler found in $PATH )

Post by 4mIRC » Mon Oct 09, 2017 4:32 pm

sorry for that
i did the command nothing happen
[root@server ~]# usermod -a -G src ircd
[root@server ~]#

then i tried in user to compile
same error no acceptable C compiler found in $PATH

it makes me mad i miss to install the UnrealIRCd again to test the new version

Gottem
Posts: 133
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

Re: i cant compile ( no acceptable C compiler found in $PATH )

Post by Gottem » Mon Oct 09, 2017 4:42 pm

4mIRC wrote:
Mon Oct 09, 2017 2:47 pm
-rwxr-x--- 2 root compiler 264016 Mar 21 2017 /usr/bin/gcc
Syzop's group src was just an example, you're supposed to replace it with whatever your system actually shows. In your case it's compiler, so run:

Code: Select all

usermod -a -G compiler ircd
Of course, as he pointed out this is operating system stuff. And you should really know your OS before trying to set up an IRCd. =]
If you like my modules, pls consider donating (through PayPal) or becoming a monthly Patron ;];]

4mIRC
Posts: 57
Joined: Sat Mar 13, 2010 8:24 pm

Re: i cant compile ( no acceptable C compiler found in $PATH )

Post by 4mIRC » Mon Oct 09, 2017 5:25 pm

Thanks alot Syzop and Gottem

finally installed :oops:

[root@server ~]# usermod -a -G compiler ircd
[root@server ~]# useradd -G ircd compiler
useradd: group compiler exists - if you want to add this user to that group, use -g.
[root@server ~]# useradd -g ircd compiler

:D :D :D :D :D :D

Post Reply