edb-debugger install any ideas

Issues related to applications and software problems
mikeburr
Posts: 28
Joined: 2019/09/06 11:40:11

edb-debugger install any ideas

Post by mikeburr » 2020/03/05 13:15:48

trying to install edb -debugger on centos 7
have recent gcc installed so....

scl enable devtoolset-8 bash
sudo cmake3 ..

CMake Error at CMakeLists.txt:22 (message):
Your g++ version is too old. At least 5.0 is required.

but sadly its not !!!...

which gcc
shows ....
/opt/rh/devtoolset-8/root/usr/bin/gcc
and
gcc --version
gcc (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3)

anyone any ideas how to get past this
thanks mikeb

sml
Posts: 305
Joined: 2020/01/17 09:01:44

Re: edb-debugger install any ideas

Post by sml » 2020/03/05 15:05:09

mikeburr wrote:
2020/03/05 13:15:48
sudo cmake3 ..
Omit sudo.

mikeburr
Posts: 28
Joined: 2019/09/06 11:40:11

Re: edb-debugger install any ideas

Post by mikeburr » 2020/03/05 16:30:31

cmake3 without sudo !! afraid not permissions error

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: edb-debugger install any ideas

Post by TrevorH » 2020/03/05 16:39:19

Then you did something wrong. Perhaps you untarred your source as root too? Building should never be done as root. Installation is a different matter so when you need to do the equivalent of make install then you will need to do sudo. But to build from source and not install it, no.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

mikeburr
Posts: 28
Joined: 2019/09/06 11:40:11

Re: edb-debugger install any ideas

Post by mikeburr » 2020/03/05 16:53:45

here are the first few lines of the CmakeLists.txt file

if(NOT EXISTS "${PROJECT_SOURCE_DIR}/src/qhexview/.git")
message(SEND_ERROR "The git submodules are not available. Please run:\ngit submodule update --init --recursive")
endif()

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/Modules/")

include("GNUInstallDirs")
include("CheckIncludeFileCXX")
include("DetectCompiler")
include("DetectOS")
include("DetectArchitecture")
include("EnableSanitizers")
include("EnableSTLDebug")
include("ProjectDefaults")

if(TARGET_COMPILER_GCC AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 5.0)
message(FATAL_ERROR "Your g++ version is too old. At least 5.0 is required.")
endif()

mikeburr
Posts: 28
Joined: 2019/09/06 11:40:11

Re: edb-debugger install any ideas

Post by mikeburr » 2020/03/05 17:10:13

@Trevor & sml
ownership makes no difference
its pretty obvious from the statement listed its defaulting somehow to gcc 4 not gcc 8 etc .. ie scl related
thanks as i certainly wouldnt have thought permissions in any way caused this problem but it was worth a try

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: edb-debugger install any ideas

Post by TrevorH » 2020/03/05 18:11:54

It's defaulting to that because you used sudo which clears most environment variables before it invokes whatever it was that you sudo'ed. Among those will be all the modifications that the scl command set up to make it work.

So don't use sudo and then it will invoke the right gcc. If it then gives permission errors then that's likely to be because the files are not owned by your user.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

mikeburr
Posts: 28
Joined: 2019/09/06 11:40:11

Re: edb-debugger install any ideas

Post by mikeburr » 2020/03/05 19:13:51

im not sure whether im missing something here but did you notice that i posted the running gcc underneath the fault this being gcc 8 .. in hich case ive no idea what youre driving at .. gcc 8 is running and sb the compiler in force.. the log actually shows gcc4 being used .. this doesnt strike me as a permissions problem but a config / parameter error somewhere ???
regards mike b

mikeburr
Posts: 28
Joined: 2019/09/06 11:40:11

Re: edb-debugger install any ideas

Post by mikeburr » 2020/03/05 19:15:45

ps i ran it without using sudo .. the permissions are all user:user [not root] on the datasets so i dont think this is the issue

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: edb-debugger install any ideas

Post by aks » 2020/03/05 19:34:35

Usually you can "influence" which compiler is chosen through env. vars. CXX_COMPILER=<full_path> for C++ & C_COMPILER for C (but those variables are from memory, check the man pages and/or the Makefile). Just remember to export the variables before hand.
Or possibly the $PATH ...

Post Reply