I'm trying to install on a CentOS via SSH on a macOS terminal

Asked by Benedikt Ivarsson

I've followed Toast's script as located in this thread: https://forum.dcbase.org/viewtopic.php?t=464

but it fails when I try to run scons in the created adchpp directory. I've tried creating a Script.xml file with the following:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ScriptPlugin>
 <Engine language="lua" scriptPath="yourpathto/adchpp/plugins/Script/examples">
  <Script>access.lua</Script>
 </Engine>
</ScriptPlugin>

Here is the terminal code I've tried:
[root@myrkur ~]# yum install bzr python
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.usf.edu
 * epel: reflector.westga.edu
 * extras: mirror.atlanticmetro.net
 * updates: mirrors.gigenet.com
Package python-2.7.5-90.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package bzr.x86_64 0:2.5.1-14.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package Arch Version Repository Size
================================================================================
Installing:
 bzr x86_64 2.5.1-14.el7 base 6.1 M

Transaction Summary
================================================================================
Install 1 Package

Total download size: 6.1 M
Installed size: 28 M
Is this ok [y/d/N]: y
Downloading packages:
bzr-2.5.1-14.el7.x86_64.rpm | 6.1 MB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : bzr-2.5.1-14.el7.x86_64 1/1
  Verifying : bzr-2.5.1-14.el7.x86_64 1/1

Installed:
  bzr.x86_64 0:2.5.1-14.el7

Complete!
[root@myrkur ~]# bzr branch lp:adchpp
bzr: warning: unsupported locale setting
  bzr could not set the application locale.
  Although this should be no problem for bzr itself, it might
  cause problems with some plugins. To investigate the issue,
  look at the output of the locale(1p) tool.
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
Branched 667 revisions.
[root@myrkur ~]# cd adchpp
[root@myrkur adchpp]# sudo yum install gcc SCons swig
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.usf.edu
 * epel: reflector.westga.edu
 * extras: mirror.atlanticmetro.net
 * updates: mirrors.gigenet.com
Package gcc-4.8.5-44.el7.x86_64 already installed and latest version
No package SCons available.
Package swig-2.0.10-5.el7.x86_64 already installed and latest version
Nothing to do
[root@myrkur adchpp]# scons
-bash: scons: command not found
[root@myrkur adchpp]# sudo yum scons
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
No such command: scons. Please use /bin/yum --help
[root@myrkur adchpp]# sudo yum install scons
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.usf.edu
 * epel: reflector.westga.edu
 * extras: mirror.atlanticmetro.net
 * updates: mirrors.gigenet.com
Resolving Dependencies
--> Running transaction check
---> Package python2-scons.noarch 0:3.1.2-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package Arch Version Repository Size
================================================================================
Installing:
 python2-scons noarch 3.1.2-1.el7 epel 921 k

Transaction Summary
================================================================================
Install 1 Package

Total download size: 921 k
Installed size: 3.9 M
Is this ok [y/d/N]: y
Downloading packages:
python2-scons-3.1.2-1.el7.noarch.rpm | 921 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python2-scons-3.1.2-1.el7.noarch 1/1
  Verifying : python2-scons-3.1.2-1.el7.noarch 1/1

Installed:
  python2-scons.noarch 0:3.1.2-1.el7

Complete!
[root@myrkur adchpp]# scons

scons: *** No SConstruct file found.
File "/usr/lib/python2.7/site-packages/SCons/Script/Main.py", line 940, in _main

Is there any guide or anything that might help with installing a DC hub on my CentOS server?

Question information

Language:
English Edit question
Status:
Answered
For:
ADCH++ Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
eMTee (realprogger) said :
#1

There is https://adchpp.sourceforge.io/guide.html which is included in the repo. The Linux part of the installation guide is pretty vague and outdated in it but it contains a this link https://forum.dchublist.org/viewtopic.php?f=29&t=480 to a guide made by an ADCH++ user, a howto of installing in Ubuntu.

Please note the last commit on this lp repo https://bazaar.launchpad.net/~dcplusplus-team/adchpp/trunk/revision/667 that the project code is moved to sourceforge so bzr branch lp:adchpp probably fetched an empty repo. Revert to commit 666 if you want to compile the last version hosted here.

Revision history for this message
eMTee (realprogger) said :
#2

Also the official guide's https://adchpp.sourceforge.io/user_guide/expert_guide.html#_building_adch might give some additional help. You can also join the dev hub adcs://hub.dcbase.org:16591 and ask for help and if you're lucky some people with Linux experience might be around.

Revision history for this message
Benedikt Ivarsson (benediktivars) said :
#3

Now I'm stuck on:

[root@myrkur adchpp_3.0.0_source]# scons
scons: Reading SConscript files ...
Checking for C header file poll.h... (cached) no
Checking for C header file sys/epoll.h... (cached) no
Checking for pthread_create() in C library pthread... (cached) no
Checking for SSL_connect() in C library ssl... (cached) no
Checking for dlopen() in C library dl... (cached) no
Copy("/root/adchpp_3.0.0_source/build/debug-default/bin/lua", "lua")
scons: *** /root/adchpp_3.0.0_source/build/debug-default/bin/lua: File exists
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
Ruby libdir not found, skipping ruby module
swig/SConscript > buildPyModule needs updates -> disabled for now.
scons: done reading SConscript files.
scons: Building targets ...
Compiling build/debug-default/LuaFileSystem/lfs.os (shared)
lua/LuaFileSystem/lfs.c:1:0: error: CPU you selected does not support x86-64 instruction set
 /*
 ^
scons: *** [build/debug-default/LuaFileSystem/lfs.os] Error 1
scons: building terminated because of errors.
[root@myrkur adchpp_3.0.0_source]#

Do you have any idea what could be causing this error?
I'm following this guide after (after reading the above guides and doing):
https://adchpp.sourceforge.io/user_guide/basic_guide.html

Revision history for this message
eMTee (realprogger) said :
#4

Well, googling this error produces a tons of results, e.g. https://www.rosettacommons.org/content/error-cpu-you-selected-does-not-support-x86-64-instruction-set-solved suggests it can be an architecture mismatch problem.
Check that your OS architecture and Python architecture match and the installed scons version aligns with what Python version you have installed.
Otherwise I'm out of ideas. Again in the dev hub you may find people with Linux experience. I've never compiled ADCH++ on *nix myself.

Can you help with this problem?

Provide an answer of your own, or ask Benedikt Ivarsson for more information if necessary.

To post a message you must log in.