# How does one turn the GDML feature ON during ROOT installation?

**URL:** <https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253>\
**Category:** ROOT\
**Tags:** graphics\
**Created:** [May 4, 2020, 4:23pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253 "2020-05-04T16:23:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![quantatanu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/quantatanu/32/20730_2.png) [@quantatanu](https://root-forum.cern.ch/u/quantatanu)\
**Post date:** [May 4, 2020, 4:23pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/1 "2020-05-04T16:23:56Z")

</div>

Hi,

I am having a hard time with `GDML`s! I am trying to read a `GDML` file and it keeps saying `error: use of undeclared identifier 'TGDMLParse'`! I am not a `GDML` expert though, just trying to learn, and the file I am trying to read is perfectly OK.

[This instruction](https://root.cern.ch/doc/v614/group __Geometry__ gdml.html) says, we need to turn `GDML` option `ON` during `config` using `./configure --enable-gdml`, but when I tried to do that `ROOT` complained about the deprecation of such a method and `CMake` must be used! Instructions seem outdated. Then I [found this](https://root.cern.ch/building-root) and tried `cmake -DALL=ON ../root/`, still didn’t get GDML working, then rebuilt ROOT using specifically `cmake -DGDML=ON ../root/`, did not work (ROOT installation went well though)! Getting the same error. (by the way, building from inside `ROOT_BUILD` directory and passing `../root/` as my `source` path) What am I missing here? By the way, here’s the complete error log:

```auto
Processing geoDisplay.C("../../gdml_files/activelar.gdml")...
Info in <TGeoManager::Import>: Reading geometry from file: ../../gdml_files/activelar.gdml
Info in <TGeoManager::TGeoManager>: Geometry GDMLImport, Geometry imported from GDML created
input_line_14:2:2: error: use of undeclared identifier 'TGDMLParse'
 TGDMLParse::StartGDML("../../gdml_files/activelar.gdml")
 ^
Error in <TGeoManager::Import>: Cannot open file
Error in <TGeoManager::CheckOverlaps>: Top node not set
Info in <TGeoManager::SetVisLevel>: Automatic visible depth disabled
#0 0x00007faf86c74687 in __GI___ waitpid (pid=26689, stat_loc=stat_loc
entry=0x7ffc9ec6c608, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1 0x00007faf86bdf067 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:149
#2 0x00007faf878125df in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x561c7b10b740) at /.../root/core/unix/src/TUnixSystem.cxx:2118
#3 TUnixSystem::StackTrace (this=0x561c7b10b740) at /.../root/core/unix/src/TUnixSystem.cxx:2412
#4 0x00007faf82a10f05 in cling::MultiplexInterpreterCallbacks::PrintStackTrace() () from /.../ROOT_BUILD/lib/libCling.so       
#5 0x00007faf82a10998 in cling_runtime_internal_throwIfInvalidPointer () from /.../ROOT_BUILD/lib/libCling.so
#6 0x00007faf87f8f220 in ?? ()
#7 0x00007faf87f8f0c0 in ?? ()
#8 0x00007ffc9ec6e9d0 in ?? ()
#9 0x00007ffc9ec6ea60 in ?? ()
#10 0x00007ffc9ec6ea90 in ?? ()
#11 0x0000561c7b4fce70 in ?? ()
#12 0x00007ffc9ec6efb0 in ?? ()
#13 0x00007ffc9ec6e9f0 in ?? ()
#14 0x00007faf87f8f068 in ?? ()
#15 0x00007faf87af6300 in vtable for TString () from /.../ROOT_BUILD/lib/libCore.so
#16 0x0000005700000061 in ?? ()
#17 0x0000561c7c9bcdc0 in ?? ()
#18 0x00007faf87f8f000 in ?? ()
#19 0x00007ffc9ec6eab0 in ?? ()
#20 0x00007faf82a1146c in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) [clone .part.268] () from /.../ROOT_BUILD/lib/libCling.so
#21 0x00007faf82a13c19 in cling::Interpreter::EvaluateInternal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from /.../ROOT_BUILD/lib/libCling.so
#22 0x00007faf82ab1a0a in cling::MetaSema::actOnxCommand(llvm::StringRef, llvm::StringRef, cling::Value*) () from /.../ROOT_BUILD/lib/libCling.so
#23 0x00007faf82abdab7 in cling::MetaParser::isXCommand(cling::MetaSema::ActionResult&, cling::Value*) () from /.../ROOT_BUILD/lib/libCling.so
#24 0x00007faf82abeb96 in cling::MetaParser::isCommand(cling::MetaSema::ActionResult&, cling::Value*) () from /.../ROOT_BUILD/lib/libCling.so
#25 0x00007faf82aab529 in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*, bool) () from /.../ROOT_BUILD/lib/libCling.so
#26 0x00007faf82986f09 in HandleInterpreterException (metaProcessor=<optimized out>, input_line=<optimized out>, compRes=
0x7ffc9ec6efa4: cling::Interpreter::kSuccess, result=result
entry=0x7ffc9ec6efb0) at /.../root/core/metacling/src/TCling.cxx:1887
#27 0x00007faf82997da0 in TCling::ProcessLine (this=0x561c7b161690, line=<optimized out>, error=0x7ffc9ec700ec) at /.../metacling/src/TCling.cxx:2034
#28 0x00007faf82989b8d in TCling::ProcessLineSynch (this=0x561c7b161690, line=0x561c7ba313a0 ".X /.../dunendggd/geoDisplay.C(\"../../gdml_files/activelar.gdml\")", error=0x7ffc9ec700ec) at /.../root/core/metacling/src/TCling.cxx:2886
#29 0x00007faf876f1bdc in TApplication::ExecuteFile (file=<optimized out>, error=0x7ffc9ec700ec, keep=<optimized out>) at /.../root/core/base/src/TApplication.cxx:1137
#30 0x00007faf876f3e3d in TApplication::ProcessLine (this=0x561c7b1576f0, line=<optimized out>, sync=<optimized out>, err=0x7ffc9ec700ec) at /.../root/core/base/src/TApplication.cxx:982
#31 0x00007faf87b556f2 in TRint::ProcessLineNr (this=this
entry=0x561c7b1576f0, filestem=filestem
entry=0x7faf87b673e4 "ROOT_cli_", line=line
entry=0x7ffc9ec700f0 ".x geoDisplay.C(\"../../gdml_files/activelar.gdml\")", error=error
entry=0x7ffc9ec700ec) at /.../root/core/rint/src/TRint.cxx:756
#32 0x00007faf87b56dc8 in TRint::Run (this=0x561c7b1576f0, retrn=<optimized out>) at /.../root/core/rint/src/TRint.cxx:416
#33 0x0000561c792fddfc in main (argc=<optimized out>, argv=0x7ffc9ec72278) at /.../root/main/src/rmain.cxx:30
Error in <HandleInterpreterException>: Trying to dereference null pointer or trying to call routine taking non-null arguments.
Execution of your code was aborted.
In file included from input_line_8:1:
/.../dunendggd/geoDisplay.C:12:2: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
        geo->GetTopVolume()->Print();
        ^ ~~~~~~~~~~~~~~~~~~

```

[by the way, `ROOT_BUILD` is my `$ROOTSYS`, and `/.../root/` is my `source`, but no idea why `source` directory will show up like this! I just have `export ROOTSYS=/path/to/ROOT_BUILD`.]

I also tried  
`root [0] gSystem->Load(libGdml) input_line_9:2:47: error: use of undeclared identifier 'libGdml' (((*(class TSystem **)0x7f892d2f9670))->Load(libGdml))`  
and I can’t find any `gdml`s here:

```auto
../../somewhere/~$ ls $ROOTSYS/lib | grep ml
libGuiHtml_rdict.pcm
libGuiHtml.rootmap
libGuiHtml.so
libHtml_rdict.pcm
libHtml.rootmap
libHtml.so

```

But inside my `ROOT_BUILD`, following are the only places I see any `gdml` inside my `ROOT_BUILD`:

```auto
/../ROOT_BUILD/etc/dictpch/geom/gdml
/../ROOT_BUILD/etc/dictpch/geom/gdml/inc
/../ROOT_BUILD/etc/dictpch/geom/gdml/inc/LinkDef.h

```

I would request you to update the instructions with an example, for example, [this says](https://root.cern.ch/building-root)

`The command using the option `-D <var>:<type>=<value>` creates an entry in the CMake cache. This is the list of the ROOT specific CMake options:`  
There is a list of `cmake variables` given and a list of `options`, `GDML`, `ALL`, etc are listed under options, while things like `CMAKE_INSTALL_PREFIX` are listed under variables… what exactly one has to do to activate `GDML` or even `ALL`, one simple example would help a non-expert. So does this: `cmake -DGDML=ON ../root/`, make sense, what I did? If not, what should I do to make it work.

I would really appreciate any help.

Thank you

* * *

\_ROOT Version: ROOT 6.10/04 [tags/v6-10-04@v6-10-04, May 04 2020, 07:22:00]  
\_Platform: Ubuntu 18.04.4 LTS  
\_Compiler: g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

* * *

I also have `GEANT4 [10.6.1]`, [GeGeDe](https://github.com/brettviren/gegede), [DUNE GGD](https://github.com/gyang9/dunendggd), CLHEP, etc installed on my `Inspiron-5491-2n1`.

* * *

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 4, 2020, 4:37pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/2 "2020-05-04T16:37:07Z")

</div>

`cmake -Dall=ON ...`  
`cmake -Dgdml=ON ...`  
`gSystem->Load("libGdml")`

[The ROOT team provides ready-to-use binary distributions for some systems, including various Ubuntu versions, which you just need to download and unpack (see “ **Using binaries** ” therein).](https://root.cern.ch/downloading-root)

---

<div class="post-metadata">

**Author:** ![quantatanu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/quantatanu/32/20730_2.png) [@quantatanu](https://root-forum.cern.ch/u/quantatanu)\
**Post date:** [May 4, 2020, 7:16pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/3 "2020-05-04T19:16:13Z")

</div>

> [@Wile\_E\_Coyote](#):
>
> The ROOT team provides ready-to-use binary distributions for some systems, including various Ubuntu versions, which you just need to download and unpack (see “ **Using binaries** ” therein).

I am facing a strange problem. I downloaded `6.20.04`  
`wget https://root.cern/download/root_v6.20.04.Linux-ubuntu18-x86_64-gcc7.5.tar.gz`  
and unpacked it and changed my `$ROOTSYS` to this new directory, exported it… still the old version `6.10.04` opens each time I start root! `echo $ROOTSYS` returns the new path though! I even removed the old build (also $ROOTSYS) directory completely… the old version won’t go away! I removed the whole root directory, including the newly unpacked… everything is gone… still from somewhere the `6.20` opens up! How is this happening… Can you please help me completely purge `ROOT` out of my system so that I can start over.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 4, 2020, 7:23pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/4 "2020-05-04T19:23:34Z")

</div>

What do you get from “`which root`” and “`which root.exe`”

BTW. You should NOT manually set “`ROOTSYS`”. [Follow the “ **Using binaries** ” instructions.](https://root.cern.ch/downloading-root)

---

<div class="post-metadata">

**Author:** ![quantatanu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/quantatanu/32/20730_2.png) [@quantatanu](https://root-forum.cern.ch/u/quantatanu)\
**Post date:** [May 4, 2020, 8:01pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/5 "2020-05-04T20:01:17Z")

</div>

> [@Wile\_E\_Coyote](#):
>
> What do you get from “ `which root` ” and “ `which root.exe` ”

I get:

```auto
/usr/local/bin/root
/usr/local/bin/root.exe

```

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 4, 2020, 8:07pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/6 "2020-05-04T20:07:41Z")

</div>

@axel I’m not sure if there is any “uninstall” target now.

Previously, in the build directory, there could be an “`install_manifest.txt`” file which you could then use: `xargs rm < install_manifest.txt`

---

<div class="post-metadata">

**Author:** ![quantatanu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/quantatanu/32/20730_2.png) [@quantatanu](https://root-forum.cern.ch/u/quantatanu)\
**Post date:** [May 4, 2020, 8:30pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/7 "2020-05-04T20:30:27Z")

</div>

I also see:

```auto
~$ whereis root
root: /usr/local/bin/root.exe /usr/local/bin/root /usr/local/etc/root.desktop /usr/local/etc/root.mimes

```

should I just delete these files?

---

<div class="post-metadata">

**Author:** ![quantatanu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/quantatanu/32/20730_2.png) [@quantatanu](https://root-forum.cern.ch/u/quantatanu)\
**Post date:** [May 4, 2020, 8:34pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/8 "2020-05-04T20:34:45Z")

</div>

Following [your answer from another thread](https://root-forum.cern.ch/t/getting-rid-of-old-version-of-root/24691/2):

```auto
sudo apt-get purge root-system* root-plugin* libroot*
 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'root-system-bin' for glob 'root-system*'
Note, selecting 'root-system-doc' for glob 'root-system*'
Note, selecting 'root-system' for glob 'root-system*'
Note, selecting 'root-system-rootd' for glob 'root-system*'
Note, selecting 'root-system-proofd' for glob 'root-system*'
Note, selecting 'root-system-common' for glob 'root-system*'
Package 'root-system' is not installed, so not removed
Package 'root-system-bin' is not installed, so not removed
Package 'root-system-common' is not installed, so not removed
Package 'root-system-doc' is not installed, so not removed
Package 'root-system-proofd' is not installed, so not removed
Package 'root-system-rootd' is not installed, so not removed
Note, selecting 'root-plugin-io-sql' for glob 'root-plugin*'
Note, selecting 'root-plugin-hist-histpainter' for glob 'root-plugin*'
Note, selecting 'root-plugin-io-xml' for glob 'root-plugin*'
Note, selecting 'root-plugin-sql-pgsql' for glob 'root-plugin*'
Note, selecting 'root-plugin-math-fftw3' for glob 'root-plugin*'
Note, selecting 'root-plugin-tree-treeviewer' for glob 'root-plugin*'
Note, selecting 'root-plugin-gui-fitpanel' for glob 'root-plugin*'
Note, selecting 'root-plugin-gui-qt' for glob 'root-plugin*'
Note, selecting 'root-plugin-proof-peac' for glob 'root-plugin*'
Note, selecting 'root-plugin-net-globus' for glob 'root-plugin*'
Note, selecting 'root-plugin-math-fumili' for glob 'root-plugin*'
Note, selecting 'root-plugin-hist-hbook' for glob 'root-plugin*'
Note, selecting 'root-plugin-geom-geompainter' for glob 'root-plugin*'
Note, selecting 'root-plugin-sql-mysql' for glob 'root-plugin*'
Note, selecting 'root-plugin-hist-spectrumpainter' for glob 'root-plugin*'
Note, selecting 'root-plugin-geom-gdml' for glob 'root-plugin*'
Note, selecting 'root-plugin-math-minuit2' for glob 'root-plugin*'
Note, selecting 'root-plugin-graf2d-qt' for glob 'root-plugin*'
Note, selecting 'root-plugin-graf3d-x3d' for glob 'root-plugin*'
Note, selecting 'root-plugin-geom-geombuilder' for glob 'root-plugin*'
Note, selecting 'root-plugin-graf2d-x11' for glob 'root-plugin*'
Note, selecting 'root-plugin-graf2d-asimage' for glob 'root-plugin*'
Note, selecting 'root-plugin-sql-odbc' for glob 'root-plugin*'
Note, selecting 'root-plugin-net-krb5' for glob 'root-plugin*'
Note, selecting 'root-plugin-montecarlo-pythia8' for glob 'root-plugin*'
Note, selecting 'root-plugin-gui-guibuilder' for glob 'root-plugin*'
Note, selecting 'root-plugin-gui-sessionviewer' for glob 'root-plugin*'
Package 'root-plugin-geom-gdml' is not installed, so not removed
Package 'root-plugin-geom-geombuilder' is not installed, so not removed
Package 'root-plugin-geom-geompainter' is not installed, so not removed
Package 'root-plugin-graf2d-asimage' is not installed, so not removed
Package 'root-plugin-graf2d-qt' is not installed, so not removed
Package 'root-plugin-graf2d-x11' is not installed, so not removed
Package 'root-plugin-graf3d-x3d' is not installed, so not removed
Package 'root-plugin-gui-fitpanel' is not installed, so not removed
Package 'root-plugin-gui-guibuilder' is not installed, so not removed
Package 'root-plugin-gui-qt' is not installed, so not removed
Package 'root-plugin-gui-sessionviewer' is not installed, so not removed
Package 'root-plugin-hist-hbook' is not installed, so not removed
Package 'root-plugin-hist-histpainter' is not installed, so not removed
Package 'root-plugin-hist-spectrumpainter' is not installed, so not removed
Package 'root-plugin-io-sql' is not installed, so not removed
Package 'root-plugin-io-xml' is not installed, so not removed
Package 'root-plugin-math-fftw3' is not installed, so not removed
Package 'root-plugin-math-fumili' is not installed, so not removed
Package 'root-plugin-math-minuit2' is not installed, so not removed
Package 'root-plugin-montecarlo-pythia8' is not installed, so not removed
Package 'root-plugin-net-globus' is not installed, so not removed
Package 'root-plugin-net-krb5' is not installed, so not removed
Package 'root-plugin-proof-peac' is not installed, so not removed
Package 'root-plugin-sql-mysql' is not installed, so not removed
Package 'root-plugin-sql-odbc' is not installed, so not removed
Package 'root-plugin-sql-pgsql' is not installed, so not removed
Package 'root-plugin-tree-treeviewer' is not installed, so not removed
Note, selecting 'libroot-html-dev' for glob 'libroot*'
Note, selecting 'libroot-bindings-python5.34' for glob 'libroot*'
Note, selecting 'libroot-montecarlo-vmc-dev' for glob 'libroot*'
Note, selecting 'libroot-io-dev' for glob 'libroot*'
Note, selecting 'libroot-misc-memstat5.34' for glob 'libroot*'
Note, selecting 'libroot-core5.34' for glob 'libroot*'
Note, selecting 'libroot-misc-table-dev' for glob 'libroot*'
Note, selecting 'libroot-math-genvector5.34' for glob 'libroot*'
Note, selecting 'libroot-graf3d-eve5.34' for glob 'libroot*'
Note, selecting 'libroot-math-physics-dev' for glob 'libroot*'
Note, selecting 'libroot-net-ldap5.34' for glob 'libroot*'
Note, selecting 'libroot-math-matrix-dev' for glob 'libroot*'
Note, selecting 'libroot-graf2d-gpad-dev' for glob 'libroot*'
Note, selecting 'libroot-gui-dev' for glob 'libroot*'
Note, selecting 'libroot-misc-minicern-dev' for glob 'libroot*'
Note, selecting 'libroot-proof-proofplayer5.34' for glob 'libroot*'
Note, selecting 'libroot-tmva-dev' for glob 'libroot*'
Note, selecting 'libroot-math-unuran-dev' for glob 'libroot*'
Note, selecting 'libroot-math-mathcore-dev' for glob 'libroot*'
Note, selecting 'libroot-graf2d-postscript-dev' for glob 'libroot*'
Note, selecting 'libroot-graf3d-g3d-dev' for glob 'libroot*'
Note, selecting 'libroot-montecarlo-eg-dev' for glob 'libroot*'
Note, selecting 'libroot-math-smatrix-dev' for glob 'libroot*'
Note, selecting 'libroot-math-quadp-dev' for glob 'libroot*'
Note, selecting 'libroot-roofit5.34' for glob 'libroot*'
Note, selecting 'libroot-hist-spectrum5.34' for glob 'libroot*'
Note, selecting 'libroot-math-mathmore5.34' for glob 'libroot*'
Note, selecting 'libroot-tree-dev' for glob 'libroot*'
Note, selecting 'libroot-proof-clarens-dev' for glob 'libroot*'
Note, selecting 'libroot-math-foam-dev' for glob 'libroot*'
Note, selecting 'libroot-graf3d-gl-dev' for glob 'libroot*'
Note, selecting 'libroot-math-splot-dev' for glob 'libroot*'
Note, selecting 'libroot-io-xmlparser-dev' for glob 'libroot*'
Note, selecting 'libroot-net-auth5.34' for glob 'libroot*'
Note, selecting 'libroot-math-minuit5.34' for glob 'libroot*'
Note, selecting 'libroot-geom-dev' for glob 'libroot*'
Note, selecting 'libroot-gui-ged-dev' for glob 'libroot*'
Note, selecting 'libroot-bindings-ruby5.34' for glob 'libroot*'
Note, selecting 'libroot-proof5.34' for glob 'libroot*'
Note, selecting 'libroot-hist-dev' for glob 'libroot*'
Note, selecting 'libroot-net-bonjour5.34' for glob 'libroot*'
Note, selecting 'libroot-net5.34' for glob 'libroot*'
Note, selecting 'libroot-math-mlp5.34' for glob 'libroot*'
Note, selecting 'libroot-tree-treeplayer5.34' for glob 'libroot*'
Note, selecting 'libroot-graf2d-graf-dev' for glob 'libroot*'
Note, selecting 'libroot-html5.34' for glob 'libroot*'
Note, selecting 'libroot-montecarlo-vmc5.34' for glob 'libroot*'
Note, selecting 'libroot-bindings-python-dev' for glob 'libroot*'
Note, selecting 'libroot-io5.34' for glob 'libroot*'
Note, selecting 'libroot-misc-memstat-dev' for glob 'libroot*'
Note, selecting 'libroot-core-dev' for glob 'libroot*'
Note, selecting 'libroot-misc-table5.34' for glob 'libroot*'
Note, selecting 'libroot-math-genvector-dev' for glob 'libroot*'
Note, selecting 'libroot-graf3d-eve-dev' for glob 'libroot*'
Note, selecting 'libroot-math-physics5.34' for glob 'libroot*'
Note, selecting 'libroot-math-matrix5.34' for glob 'libroot*'
Note, selecting 'libroot-graf2d-gpad5.34' for glob 'libroot*'
Note, selecting 'libroot-net-ldap-dev' for glob 'libroot*'
Note, selecting 'libroot-gui5.34' for glob 'libroot*'
Note, selecting 'libroot-misc-minicern5.34' for glob 'libroot*'
Note, selecting 'libroot-tmva5.34' for glob 'libroot*'
Note, selecting 'libroot-proof-proofplayer-dev' for glob 'libroot*'
Note, selecting 'libroot-math-unuran5.34' for glob 'libroot*'
Note, selecting 'libroot-math-mathcore5.34' for glob 'libroot*'
Note, selecting 'libroot-graf2d-postscript5.34' for glob 'libroot*'
Note, selecting 'libroot-graf3d-g3d5.34' for glob 'libroot*'
Note, selecting 'libroot-montecarlo-eg5.34' for glob 'libroot*'
Note, selecting 'libroot-math-smatrix5.34' for glob 'libroot*'
Note, selecting 'libroot-math-quadp5.34' for glob 'libroot*'
Note, selecting 'libroot-roofit-dev' for glob 'libroot*'
Note, selecting 'libroot-hist-spectrum-dev' for glob 'libroot*'
Note, selecting 'libroot-tree5.34' for glob 'libroot*'
Note, selecting 'libroot-math-mathmore-dev' for glob 'libroot*'
Note, selecting 'libroot-proof-clarens5.34' for glob 'libroot*'
Note, selecting 'libroot-math-foam5.34' for glob 'libroot*'
Note, selecting 'libroot-graf3d-gl5.34' for glob 'libroot*'
Note, selecting 'libroot-math-splot5.34' for glob 'libroot*'
Note, selecting 'libroot-io-xmlparser5.34' for glob 'libroot*'
Note, selecting 'libroot-net-auth-dev' for glob 'libroot*'
Note, selecting 'libroot-math-minuit-dev' for glob 'libroot*'
Note, selecting 'libroot-geom5.34' for glob 'libroot*'
Note, selecting 'libroot-gui-ged5.34' for glob 'libroot*'
Note, selecting 'libroot-hist5.34' for glob 'libroot*'
Note, selecting 'libroot-bindings-ruby-dev' for glob 'libroot*'
Note, selecting 'libroot-proof-dev' for glob 'libroot*'
Note, selecting 'libroot-static' for glob 'libroot*'
Note, selecting 'libroot-net-bonjour-dev' for glob 'libroot*'
Note, selecting 'libroot-net-dev' for glob 'libroot*'
Note, selecting 'libroot-graf2d-graf5.34' for glob 'libroot*'
Note, selecting 'libroot-math-mlp-dev' for glob 'libroot*'
Note, selecting 'libroot-tree-treeplayer-dev' for glob 'libroot*'
Package 'libroot-core-dev' is not installed, so not removed
Package 'libroot-bindings-python5.34' is not installed, so not removed
Package 'libroot-bindings-ruby5.34' is not installed, so not removed
Package 'libroot-core5.34' is not installed, so not removed
Package 'libroot-geom5.34' is not installed, so not removed
Package 'libroot-graf2d-gpad5.34' is not installed, so not removed
Package 'libroot-graf2d-graf5.34' is not installed, so not removed
Package 'libroot-graf2d-postscript5.34' is not installed, so not removed
Package 'libroot-graf3d-eve5.34' is not installed, so not removed
Package 'libroot-graf3d-g3d5.34' is not installed, so not removed
Package 'libroot-graf3d-gl5.34' is not installed, so not removed
Package 'libroot-gui-ged5.34' is not installed, so not removed
Package 'libroot-gui5.34' is not installed, so not removed
Package 'libroot-hist-spectrum5.34' is not installed, so not removed
Package 'libroot-hist5.34' is not installed, so not removed
Package 'libroot-html5.34' is not installed, so not removed
Package 'libroot-io-xmlparser5.34' is not installed, so not removed
Package 'libroot-io5.34' is not installed, so not removed
Package 'libroot-math-foam5.34' is not installed, so not removed
Package 'libroot-math-genvector5.34' is not installed, so not removed
Package 'libroot-math-mathcore5.34' is not installed, so not removed
Package 'libroot-math-mathmore5.34' is not installed, so not removed
Package 'libroot-math-matrix5.34' is not installed, so not removed
Package 'libroot-math-minuit5.34' is not installed, so not removed
Package 'libroot-math-mlp5.34' is not installed, so not removed
Package 'libroot-math-physics5.34' is not installed, so not removed
Package 'libroot-math-quadp5.34' is not installed, so not removed
Package 'libroot-math-smatrix5.34' is not installed, so not removed
Package 'libroot-math-splot5.34' is not installed, so not removed
Package 'libroot-math-unuran5.34' is not installed, so not removed
Package 'libroot-misc-memstat5.34' is not installed, so not removed
Package 'libroot-misc-minicern5.34' is not installed, so not removed
Package 'libroot-misc-table5.34' is not installed, so not removed
Package 'libroot-montecarlo-eg5.34' is not installed, so not removed
Package 'libroot-montecarlo-vmc5.34' is not installed, so not removed
Package 'libroot-net-auth5.34' is not installed, so not removed
Package 'libroot-net-bonjour5.34' is not installed, so not removed
Package 'libroot-net-ldap5.34' is not installed, so not removed
Package 'libroot-net5.34' is not installed, so not removed
Package 'libroot-proof-clarens5.34' is not installed, so not removed
Package 'libroot-proof-proofplayer5.34' is not installed, so not removed
Package 'libroot-proof5.34' is not installed, so not removed
Package 'libroot-roofit5.34' is not installed, so not removed
Package 'libroot-tmva5.34' is not installed, so not removed
Package 'libroot-tree-treeplayer5.34' is not installed, so not removed
Package 'libroot-tree5.34' is not installed, so not removed
Package 'libroot-bindings-python-dev' is not installed, so not removed
Package 'libroot-bindings-ruby-dev' is not installed, so not removed
Package 'libroot-geom-dev' is not installed, so not removed
Package 'libroot-graf2d-gpad-dev' is not installed, so not removed
Package 'libroot-graf2d-graf-dev' is not installed, so not removed
Package 'libroot-graf2d-postscript-dev' is not installed, so not removed
Package 'libroot-graf3d-eve-dev' is not installed, so not removed
Package 'libroot-graf3d-g3d-dev' is not installed, so not removed
Package 'libroot-graf3d-gl-dev' is not installed, so not removed
Package 'libroot-gui-dev' is not installed, so not removed
Package 'libroot-gui-ged-dev' is not installed, so not removed
Package 'libroot-hist-dev' is not installed, so not removed
Package 'libroot-hist-spectrum-dev' is not installed, so not removed
Package 'libroot-html-dev' is not installed, so not removed
Package 'libroot-io-dev' is not installed, so not removed
Package 'libroot-io-xmlparser-dev' is not installed, so not removed
Package 'libroot-math-foam-dev' is not installed, so not removed
Package 'libroot-math-genvector-dev' is not installed, so not removed
Package 'libroot-math-mathcore-dev' is not installed, so not removed
Package 'libroot-math-mathmore-dev' is not installed, so not removed
Package 'libroot-math-matrix-dev' is not installed, so not removed
Package 'libroot-math-minuit-dev' is not installed, so not removed
Package 'libroot-math-mlp-dev' is not installed, so not removed
Package 'libroot-math-physics-dev' is not installed, so not removed
Package 'libroot-math-quadp-dev' is not installed, so not removed
Package 'libroot-math-smatrix-dev' is not installed, so not removed
Package 'libroot-math-splot-dev' is not installed, so not removed
Package 'libroot-math-unuran-dev' is not installed, so not removed
Package 'libroot-misc-memstat-dev' is not installed, so not removed
Package 'libroot-misc-minicern-dev' is not installed, so not removed
Package 'libroot-misc-table-dev' is not installed, so not removed
Package 'libroot-montecarlo-eg-dev' is not installed, so not removed
Package 'libroot-montecarlo-vmc-dev' is not installed, so not removed
Package 'libroot-net-auth-dev' is not installed, so not removed
Package 'libroot-net-bonjour-dev' is not installed, so not removed
Package 'libroot-net-dev' is not installed, so not removed
Package 'libroot-net-ldap-dev' is not installed, so not removed
Package 'libroot-proof-clarens-dev' is not installed, so not removed
Package 'libroot-proof-dev' is not installed, so not removed
Package 'libroot-proof-proofplayer-dev' is not installed, so not removed
Package 'libroot-roofit-dev' is not installed, so not removed
Package 'libroot-static' is not installed, so not removed
Package 'libroot-tmva-dev' is not installed, so not removed
Package 'libroot-tree-dev' is not installed, so not removed
Package 'libroot-tree-treeplayer-dev' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

```

---

<div class="post-metadata">

**Author:** ![quantatanu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/quantatanu/32/20730_2.png) [@quantatanu](https://root-forum.cern.ch/u/quantatanu)\
**Post date:** [May 4, 2020, 8:49pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/9 "2020-05-04T20:49:12Z")

</div>

Just removed `/usr/local/bin/root` and it was gone, unpacked binaries and everything is working well now. I can see GDML now 🙂

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/1/0/10875b7d6c421dd168a3ab4c2d28b9f1f070ff8a.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [May 5, 2020, 9:03am UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/10 "2020-05-05T09:03:26Z")

</div>

`install_manifest.txt` should only be generated by `make install`.

---

<div class="post-metadata">

**Author:** ![quantatanu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/quantatanu/32/20730_2.png) [@quantatanu](https://root-forum.cern.ch/u/quantatanu)\
**Post date:** [May 5, 2020, 12:40pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/11 "2020-05-05T12:40:35Z")

</div>

> [@Axel](#):
>
> `install_manifest.txt` should only be generated by `make install` .

I installed using `make install`, but I removed all root through `rm -rf` so probably lost that file! But, when `whereis root` returned `/usr/local/bin`, I removed them too and so got rid of all traces I guess. No I am using pre-compiled bianries as suggested by [Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote).

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 5, 2020, 3:12pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/12 "2020-05-05T15:12:47Z")

</div>

Post the output of:

```bash
/usr/local/bin/root-config --prefix
/usr/local/bin/root-config --exec-prefix
/usr/local/bin/root-config --bindir
/usr/local/bin/root-config --libdir
/usr/local/bin/root-config --incdir
/usr/local/bin/root-config --etcdir
/usr/local/bin/root-config --tutdir
/usr/local/bin/root-config --srcdir

```

---

<div class="post-metadata">

**Author:** ![quantatanu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/quantatanu/32/20730_2.png) [@quantatanu](https://root-forum.cern.ch/u/quantatanu)\
**Post date:** [May 5, 2020, 4:31pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/13 "2020-05-05T16:31:37Z")

</div>

> [@Wile\_E\_Coyote](#):
>
> Post the output of:

```auto
/../acad$ /usr/local/bin/root-config --prefix; /usr/local/bin/root-config --exec-prefix; /usr/local/bin/root-config --bindir; /usr/local/bin/root-config --libdir; /usr/local/bin/root-config --incdir; /usr/local/bin/root-config --etcdir; /usr/local/bin/root-config --tutdir; /usr/local/bin/root-config --srcdir;
/usr/local
/usr/local
/usr/local/bin
/usr/local/lib
/usr/local/include
/usr/local/etc
Unknown argument "--tutdir"!
Usage: root-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--auxcflags] [--ldflags] [--new] [--nonew] [--libs] [--glibs] [--evelibs] [--bindir] [--libdir] [--incdir] [--etcdir] [--srcdir] [--noauxcflags] [--noauxlibs] [--noldflags] [--has-<feature>] [--arch] [--platform] [--config] [--features] [--ncpu] [--git-revision] [--python-version] [--cc] [--cxx] [--f77] [--ld] [--help]
/../Software/acad/root

```

---

<div class="post-metadata">

**Author:** ![quantatanu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/quantatanu/32/20730_2.png) [@quantatanu](https://root-forum.cern.ch/u/quantatanu)\
**Post date:** [May 5, 2020, 4:50pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/14 "2020-05-05T16:50:03Z")

</div>

With the precompiled bianries, I am facing now [this kind of problem](https://root-forum.cern.ch/t/lib-libimt-so-undefined-reference-to-tbb-isolate-within-arena-tbb-delegate-base-long/35891). In my case the error is:

```auto
/from/somewhere/$ g++ -std=c++11 mycode.cpp `root-config --glibs --cflags` -o mycode
/../Software/acad/root/lib/libImt.so: undefined reference to `tbb::interface7::internal::isolate_within_arena(tbb::interface7::internal::delegate_base&, long)'
collect2: error: ld returned 1 exit status

```

Following [this thread](https://root-forum.cern.ch/t/usr-bin-ld-home-hcx-software-gate-root-root-lib-libimt-so-undefined-reference-to-tbb-isolate-within-arena-tbb-delegate-base-long/35676) I changed `LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib` to `LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH`and exported… but the error remains.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 5, 2020, 6:15pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/15 "2020-05-05T18:15:28Z")

</div>

Two more:

```bash
/usr/local/bin/root-config --cflags
/usr/local/bin/root-config --libs

```

---

<div class="post-metadata">

**Author:** ![quantatanu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/quantatanu/32/20730_2.png) [@quantatanu](https://root-forum.cern.ch/u/quantatanu)\
**Post date:** [May 5, 2020, 6:18pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/16 "2020-05-05T18:18:05Z")

</div>

Here:

```auto
-pthread -std=c++11 -m64 -I/usr/local/include
-L/usr/local/lib -lCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -pthread -lm -ldl -rdynamic

```

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 5, 2020, 6:29pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/17 "2020-05-05T18:29:28Z")

</div>

So, you’ve got a real mess and I don’t have any easy solution.

Maybe @Axel can provide you with an appropriate full “`install_manifest.txt`” file for exactly the ROOT version that you built and installed (which you unfortunately deleted together with your “`<builddir>`”).

Otherwise, I think the only way would be to configure and build your original ROOT version (i.e. exactly the same version that you previously built and installed) from scratch again, using “`cmake -Dall=ON ...`”, and then execute “`make install`”. This will again create the “`install_manifest.txt`” file, which you can then use in order to remove all installed files: “`sudo xargs rm < install_manifest.txt`”

---

<div class="post-metadata">

**Author:** ![quantatanu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/quantatanu/32/20730_2.png) [@quantatanu](https://root-forum.cern.ch/u/quantatanu)\
**Post date:** [May 5, 2020, 8:29pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/18 "2020-05-05T20:29:12Z")

</div>

> [@Wile\_E\_Coyote](#):
>
> “ `cmake -Dall=ON ...` ”, and then execute “ `make install` ”

I was actually doing that… right now `make -j8` is at 73%… but of course some hundreds of lines of 73% … it will take a while…

> [@](#):
>
> This will again create the “ `install_manifest.txt` ” file, which you can then use in order to remove all installed files: “ `sudo xargs rm < install_manifest.txt` ”

I would like to see if this freshly `made` install (my original version) works OK… with GDML etc… then I am going to keep it… otherwise “ `sudo xargs rm < install_manifest.txt` ”.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 5, 2020, 8:44pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/19 "2020-05-05T20:44:56Z")

</div>

> [@quantatanu](#):
>
> I am going to keep it

But you do understand that the first answer to any problems will be … upgrade your ROOT version.

> [@Missing Canvas](https://root-forum.cern.ch/t/missing-canvas/17664/17):
>
> Honestly speaking, sooner or later, you will learn by hard that the policy of using a “system-provided” ROOT version (e.g. in “/usr/[bin|lib]” or “/usr/local/[bin|lib]”) is a dead end. You will learn that you need something like three different versions of ROOT - just because something that works with a particular ROOT version is not working with another ones, or because some piece of your additional, experiment / analysis specific, software explicitly requires a particular ROOT version. The s…

---

<div class="post-metadata">

**Author:** ![quantatanu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/quantatanu/32/20730_2.png) [@quantatanu](https://root-forum.cern.ch/u/quantatanu)\
**Post date:** [May 5, 2020, 8:49pm UTC](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253/20 "2020-05-05T20:49:46Z")

</div>

> [@Missing Canvas](https://root-forum.cern.ch/t/missing-canvas/17664/17):
>
> you will learn by hard that the policy of using a “system-provided” ROOT version (e.g. in “/usr/[bin|lib]” or “/usr/local/[bin|lib]”) is a dead end.

I actually have no idea how that happened! I install root through `cmake` and in other machines I have kept multiple versions and switch among them.

By the way, while `make`-ing this time, in the end… this happened:

```auto
[83%] Building CXX object hist/hist/CMakeFiles/Hist.dir/src/TPolyMarker.cxx.o
make[2]: *** No rule to make target '/acad/root/root_sources/root-v6-18-04/proof/proofx/src/TXSocketHandler.cxx', needed by 'proof/proofx/CMakeFiles/Proofx.dir/src/TXSocketHandler.cxx.o'. Stop.
make[2]: *** Waiting for unfinished jobs....
Building CXX object proof/proofx/CMakeFiles/Proofx.dir/src/TXSocket.cxx.o
/bin/sh: 1: cd: can't cd to /acad/root/root_build/proof/proofx
proof/proofx/CMakeFiles/Proofx.dir/build.make:211: recipe for target 'proof/proofx/CMakeFiles/Proofx.dir/src/TXSocket.cxx.o' failed
make[2]: *** [proof/proofx/CMakeFiles/Proofx.dir/src/TXSocket.cxx.o] Error 2
make[2]: *** No rule to make target '/acad/root/root_sources/root-v6-18-04/hist/hist/src/TProfile2D.cxx', needed by 'hist/hist/CMakeFiles/Hist.dir/src/TProfile2D.cxx.o'. Stop.
make[2]: *** Waiting for unfinished jobs....
Building CXX object hist/hist/CMakeFiles/Hist.dir/src/TPrincipal.cxx.o
/bin/sh: 1: cd: can't cd to /acad/root/root_build/hist/hist
hist/hist/CMakeFiles/Hist.dir/build.make:1529: recipe for target 'hist/hist/CMakeFiles/Hist.dir/src/TPrincipal.cxx.o' failed
make[2]: *** [hist/hist/CMakeFiles/Hist.dir/src/TPrincipal.cxx.o] Error 2
CMakeFiles/Makefile2:28879: recipe for target 'proof/proofx/CMakeFiles/Proofx.dir/all' failed
make[1]: *** [proof/proofx/CMakeFiles/Proofx.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:21836: recipe for target 'hist/hist/CMakeFiles/Hist.dir/all' failed
make[1]: *** [hist/hist/CMakeFiles/Hist.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

```

What `Waiting for unfinished jobs` it is talking about? My `MySQL` shell is open, could this be the reason? I was not doing anything else though… just importing some `DB` to my `MySQL` server and a shell was open.

Attaching the CMakeCache: [CMakeCache\_20-05-06\_02-13-54.txt](https://root-forum.cern.ch/uploads/short-url/53UdN7QJ3F4mh3CtZTfqpfn1Z9.txt) (156.3 KB)

[Next page](https://root-forum.cern.ch/t/how-does-one-turn-the-gdml-feature-on-during-root-installation/39253.md?page=2)
