Sign in to follow this  
wkuzma

Help with Centos 7 and cod4x

Recommended Posts

Posted (edited)

please delete  see next post

 

Edited by wkuzma

Share this post


Link to post
Share on other sites
Posted (edited)

I was able to get all installed except paxctl  to compile the Cod4x server I need help on that one for Centos 7

I tried google but it was confusing

Edited by wkuzma

Share this post


Link to post
Share on other sites

You don't need paxctl installed, thats optional. Should be compiling just fine.

Share this post


Link to post
Share on other sites

But with CentOS 7 you will need a package called devtoolset-7

When you installed try to run this command: scl enable devtoolset-7 bash

then compile the server.

Share this post


Link to post
Share on other sites
6 hours ago, AlexC said:

But with CentOS 7 you will need a package called devtoolset-7

When you installed try to run this command: scl enable devtoolset-7 bash

then compile the server.

I tried that but seems I do not have the devtoolset-7

and when I use yum whatprovides devtoolset-7 I get  no match found

 

Share this post


Link to post
Share on other sites
4 hours ago, dpj said:

thanks  but even after installing that I still get an error

Installed:
  devtoolset-7.x86_64 0:7.1-4.el7

 

[root@CC452692-C ~]# yum install paxctl
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.trouble-free.net
 * epel: ewr.edge.kernel.org
 * extras: mirror.trouble-free.net
 * updates: mirror.trouble-free.net
No package paxctl available.
Error: Nothing to do

 

Share this post


Link to post
Share on other sites
2 hours ago, wkuzma said:

thanks  but even after installing that I still get an error

Installed:
  devtoolset-7.x86_64 0:7.1-4.el7

 

[root@CC452692-C ~]# yum install paxctl
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.trouble-free.net
 * epel: ewr.edge.kernel.org
 * extras: mirror.trouble-free.net
 * updates: mirror.trouble-free.net
No package paxctl available.
Error: Nothing to do

 

as alex already said paxctl is optional. if there is no package for it. you would have to get the binary manually. 

.. why are you even compiling it?

Share this post


Link to post
Share on other sites
Posted (edited)

He would like to use the new feature what I have implemented in cod4xwebadmin, but to be able so the required tools for server compile have to be installed.

You can compile server file, plugins with 1 click via website. The files are stored so if you have problems with 1 release you can always switch to previous. Local servers can be updated to the selected version with 1 click "Use this version" and if you have external servers you can download the file.

The source files are downloaded once time daily so you can always upgrade your server(s) to the latest version

Here is a screenshot how it looks

 

ffdsffsf.png

Edited by NeHo

Share this post


Link to post
Share on other sites

could someone help with this error during compile

gcc math/bn_mp_montgomery_reduce.o
gcc math/bn_mp_dr_reduce.o
gcc math/bn_mp_reduce_2k.o
ar ../../lib/libtomcrypt.a
TomCrypt done
make[1]: Leaving directory `/home/cod4/CoD4x_Server-dev_newarch/src/tomcrypt'
gcc obj/sys_unix.o
src/unix/sys_unix.c:50:23: fatal error: stdatomic.h: No such file or directory
 #include <stdatomic.h>
                       ^
compilation terminated.
make: *** [obj/sys_unix.o] Error 1

gcc version

bash-4.2$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux

my centos 7 linum is 64 bit

Edited by wkuzma

Share this post


Link to post
Share on other sites
12 hours ago, NeHo said:

...

Interesting feature! It will be difficult to get the build environment set up automatically for every different flavor of operating system. Containerization or virtualization would be helpful I think.

Share this post


Link to post
Share on other sites

Or just try ehat I said 2 days ago. 

You have devtoolset-7 installed, type:

scl enable devtoolset-7 bash

Then compile your server. 

Share this post


Link to post
Share on other sites
6 hours ago, AlexC said:

Or just try ehat I said 2 days ago. 

You have devtoolset-7 installed, type:

scl enable devtoolset-7 bash

Then compile your server. 

when I run scl enable devtoolset-7 bash
i get this error
/var/tmp/sclvlkPvV: line 8: bash: command not found
bash-4.2$

this is whats installed

Installed Packages
devtoolset-7.x86_64
gcc.x86_64    
gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)
NASM version 2.10.07 compiled on Jun  9 2014
GNU Make 4.2.1
Built for x86_64-redhat-linux-gnu

when I run make I get this error
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lstdc++_nonshared
collect2: error: ld returned 1 exit status
make: *** [makefile:170: bin/cod4x18_dedrun] Error 1

if there is a fix for this I cannot find it on google.

 

Share this post


Link to post
Share on other sites

If I am not wrong the "scl enable devtoolset-7 bash" creates a new shell I believe that it will not work via website.

If you run "yum install gcc" does it not offer newer versions asd dpj recommended it?

i am sure that everything works on debian and ubuntu it is tested and works properly with the provided instructions on the cod4x github pages. If you can not make it you can skip that part on the website and manually upload the version what you need. It is just a feature on the website it is not required

Share this post


Link to post
Share on other sites
7 hours ago, NeHo said:

If I am not wrong the "scl enable devtoolset-7 bash" creates a new shell I believe that it will not work via website.

If you run "yum install gcc" does it not offer newer versions asd dpj recommended it?

i am sure that everything works on debian and ubuntu it is tested and works properly with the provided instructions on the cod4x github pages. If you can not make it you can skip that part on the website and manually upload the version what you need. It is just a feature on the website it is not required

I decided to skip that part sine when I do yum install gcc all I get is

Package gcc-4.8.5-36.el7.x86_64 already installed and latest version
Nothing to do

Share this post


Link to post
Share on other sites
On 3/18/2019 at 3:35 AM, dpj said:

https://stackoverflow.com/a/20326913

We ran into this before. It's a bug in gcc 4.8. upgrade to 4.9.

 

when I do what that page suggested it crashes the server causing me to reboot so I gave up on 4.9 -  Maybe a Centos 7 thing

I will just download and install any new cod4x files from here.

one other thing I am on a 64 bit of Centos 7 not sure if that is the problem.

Edited by wkuzma

Share this post


Link to post
Share on other sites
On 3/20/2019 at 8:32 AM, AlexC said:

You cannot upgrade gcc on centos. You have to use devtoolset-7 or devtoolset-8 to compile the server. 

I have devtoolset-7 so I will try 8 and see what happens

 

Share this post


Link to post
Share on other sites
1 hour ago, wkuzma said:

I have devtoolset-7 so I will try 8 and see what happens

 

/opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld: cannot find -lstdc++_nonshared
collect2: error: ld returned 1 exit status
make: *** [makefile:170: bin/cod4x18_dedrun] Error 1


 seems even devtoolset-8 errors

 

Share this post


Link to post
Share on other sites
36 minutes ago, wkuzma said:

-lstdc++_nonshared

seems this is a file for a 32 bit system and I am on a 64 bit system so I will just forget about  compiling cod4x

Thanks to all that responded trying to help me - it did help and shows that if your polite and respect those that know more then you do, you will get answers to your questions.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this