# Failed to install root-6.02.05 on ubuntu14.04(LTS)

**URL:** <https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962>\
**Category:** ROOT\
**Created:** [March 13, 2015, 12:26pm UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962 "2015-03-13T12:26:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![orenane](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/o/ea5d25/32.png) [@orenane](https://root-forum.cern.ch/u/orenane)\
**Post date:** [March 13, 2015, 12:26pm UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/1 "2015-03-13T12:26:10Z")

</div>

When I tryed to install root from source following [https://root.cern.ch/drupal/content/installing-root-source](https://root.cern.ch/drupal/content/installing-root-source) and make the source, errors occured

`g++ -m32 -O2 -DNDEBUG -Wl,--no-undefined -Wl,--as-needed -o core/utils/src/rootcling_tmp core/utils/src/rootcling_tmp.o core/utils/src/DictSelectionReader.o core/utils/src/LinkdefReader.o core/utils/src/TModuleGenerator.o \
	   core/metautils/src/RConversionRuleParser.o core/metautils/src/TClassEdit.o core/metautils/src/TMetaUtils.o core/metautils/src/BaseSelectionRule.o core/metautils/src/ClassSelectionRule.o core/metautils/src/VariableSelectionRule.o core/metautils/src/RStl.o core/metautils/src/Scanner.o core/metautils/src/SelectionRules.o core/metautils/src/XMLReader.o core/clib/src/snprintf.o core/clib/src/strlcpy.o core/clib/src/strlcat.o \
	    interpreter/cling/lib/Interpreter/AutoloadCallback.o interpreter/cling/lib/Interpreter/AutoSynthesizer.o interpreter/cling/lib/Interpreter/BackendPass.o interpreter/cling/lib/Interpreter/CheckEmptyTransactionTransformer.o interpreter/cling/lib/Interpreter/CIFactory.o interpreter/cling/lib/Interpreter/ClangInternalState.o interpreter/cling/lib/Interpreter/DeclCollector.o interpreter/cling/lib/Interpreter/DeclExtractor.o interpreter/cling/lib/Interpreter/DynamicExprInfo.o interpreter/cling/lib/Interpreter/DynamicLibraryManager.o interpreter/cling/lib/Interpreter/DynamicLookup.o interpreter/cling/lib/Interpreter/ForwardDeclPrinter.o interpreter/cling/lib/Interpreter/IncrementalExecutor.o interpreter/cling/lib/Interpreter/IncrementalParser.o interpreter/cling/lib/Interpreter/InterpreterCallbacks.o interpreter/cling/lib/Interpreter/Interpreter.o interpreter/cling/lib/Interpreter/InvocationOptions.o interpreter/cling/lib/Interpreter/LookupHelper.o interpreter/cling/lib/Interpreter/NullDerefProtectionTransformer.o interpreter/cling/lib/Interpreter/RequiredSymbols.o interpreter/cling/lib/Interpreter/RuntimeException.o interpreter/cling/lib/Interpreter/Transaction.o interpreter/cling/lib/Interpreter/TransactionTransformer.o interpreter/cling/lib/Interpreter/TransactionUnloader.o interpreter/cling/lib/Interpreter/Value.o interpreter/cling/lib/Interpreter/ValueExtractionSynthesizer.o interpreter/cling/lib/Interpreter/ValuePrinter.o interpreter/cling/lib/Interpreter/ValuePrinterSynthesizer.o interpreter/cling/lib/MetaProcessor/Display.o interpreter/cling/lib/MetaProcessor/InputValidator.o interpreter/cling/lib/MetaProcessor/MetaLexer.o interpreter/cling/lib/MetaProcessor/MetaParser.o interpreter/cling/lib/MetaProcessor/MetaProcessor.o interpreter/cling/lib/MetaProcessor/MetaSema.o interpreter/cling/lib/Utils/AST.o -L/home/coordinator/soft/root-6.02.05/interpreter/llvm/inst/lib -lclangFrontend -lclangSerialization -lclangDriver -lclangCodeGen -lclangParse -lclangSema -lclangAnalysis -lclangAST -lclangEdit -lclangLex -lclangBasic -lLLVMProfileData -lLLVMObjCARCOpts -lLLVMInstrumentation -lLLVMipo -lLLVMVectorize -lLLVMOption -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMX86Desc -lLLVMObject -lLLVMMCParser -lLLVMBitReader -lLLVMMCDisassembler -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMBitWriter -lLLVMCore -lLLVMSupport -L/home/coordinator/soft/root-6.02.05/interpreter/llvm/inst/lib -lz -lpthread -ldl -lm -lm -ldl -rdynamic
/home/coordinator/soft/root-6.02.05/interpreter/llvm/inst/lib/libclangCodeGen.a(CodeGenTypes.o): In function `clang::CodeGen::CodeGenTypes::ConvertRecordDeclType(clang::RecordDecl const*)':
CodeGenTypes.cpp:(.text._ZN5clang7CodeGen12CodeGenTypes21ConvertRecordDeclTypeEPKNS_10RecordDeclE+0x540): undefined reference to `clang::CodeGen::CodeGenTypes::ComputeRecordLayout(clang::RecordDecl const*, llvm::StructType*)'
/home/coordinator/soft/root-6.02.05/interpreter/llvm/inst/lib/libclangCodeGen.a(CGObjCRuntime.o): In function `clang::CodeGen::CGObjCRuntime::EmitValueForIvarAtOffset(clang::CodeGen::CodeGenFunction&, clang::ObjCInterfaceDecl const*, llvm::Value*, clang::ObjCIvarDecl const*, unsigned int, llvm::Value*)':
CGObjCRuntime.cpp:(.text._ZN5clang7CodeGen13CGObjCRuntime24EmitValueForIvarAtOffsetERNS0_15CodeGenFunctionEPKNS_17ObjCInterfaceDeclEPN4llvm5ValueEPKNS_12ObjCIvarDeclEjS9_+0x356): undefined reference to `clang::CodeGen::CGBitFieldInfo::MakeInfo(clang::CodeGen::CodeGenTypes&, clang::FieldDecl const*, unsigned long long, unsigned long long, unsigned long long, unsigned long long)'
collect2: error: ld returned 1 exit status
make: *** [core/utils/src/rootcling_tmp] Error 1
`  
I need your help.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:** [March 17, 2015, 7:13pm UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/2 "2015-03-17T19:13:54Z")

</div>

Hi,

Are you intentionally building for 32bit? (Why?)

How did you configure?

Cheers, Axel.

---

<div class="post-metadata">

**Author:** ![orenane](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/o/ea5d25/32.png) [@orenane](https://root-forum.cern.ch/u/orenane)\
**Post date:** [March 25, 2015, 1:34pm UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/3 "2015-03-25T13:34:59Z")

</div>

[quote=“Axel”]Hi,

Are you intentionally building for 32bit? (Why?)

How did you configure?

Cheers, Axel.[/quote]  
Thanks for your reply! 😆  
Yes, it’s 32bit. Because my PC’s os is ubuntu (32bit)  
I run “./configure” without arguments.

---

<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:** [March 26, 2015, 9:51am UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/4 "2015-03-26T09:51:58Z")

</div>

Hi,

Can you rm -rf interpreter/llvm/obj; make -j4 (or whatever number) and send the complete output of the build?

Cheers, Axel.

---

<div class="post-metadata">

**Author:** ![orenane](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/o/ea5d25/32.png) [@orenane](https://root-forum.cern.ch/u/orenane)\
**Post date:** [March 29, 2015, 3:30am UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/5 "2015-03-29T03:30:49Z")

</div>

[quote=“Axel”]Hi,

Can you rm -rf interpreter/llvm/obj; make -j4 (or whatever number) and send the complete output of the build?

Cheers, Axel.[/quote]  
I am sorry, the output of build is too long (about 6000 lines).  
Can I send the output text file to you by email ?

---

<div class="post-metadata">

**Author:** ![hcohen](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/58956e/32.png) [@hcohen](https://root-forum.cern.ch/u/hcohen)\
**Post date:** [March 29, 2015, 4:21pm UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/6 "2015-03-29T16:21:15Z")

</div>

this is my pre install packages for root on ubuntu, last tested with root-6.02.05 and linux mint 17 (ubuntu 14.04)

```auto

```

then simply:

[code]wget [http://root.cern.ch/download/root\_v6.02.05.source.tar.gz](http://root.cern.ch/download/root_v6.02.05.source.tar.gz)  
gzip -dc root\_v6.02.05.source.tar.gz | tar -xf -  
cd root-6.02.05

./configure linuxx8664gcc --enable-explicitlink --all --enable-minuit2 --enable-qt --enable-roofit --enable-table --enable-shared --enable-xml --enable-reflex --enable-python --enable-gdml --enable-rpath --enable-qt --enable-soversion --prefix=/usr/local

make -j4  
sudo make install  
[/code]

---

<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:** [March 29, 2015, 6:20pm UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/7 "2015-03-29T18:20:07Z")

</div>

Hi,

you can attach files - or indeed send by email to [axel@cern.ch](mailto:axel@cern.ch)

We happily build ROOT on Ubuntu 14.04 after every check-in - we know it /should/ work.

Axel.

---

<div class="post-metadata">

**Author:** ![orenane](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/o/ea5d25/32.png) [@orenane](https://root-forum.cern.ch/u/orenane)\
**Post date:** [March 30, 2015, 4:53am UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/8 "2015-03-30T04:53:56Z")

</div>

[quote=“hcohen”]this is my pre install packages for root on ubuntu, last tested with root-6.02.05 and linux mint 17 (ubuntu 14.04)

```auto

```

then simply:

[code]wget [http://root.cern.ch/download/root\_v6.02.05.source.tar.gz](http://root.cern.ch/download/root_v6.02.05.source.tar.gz)  
gzip -dc root\_v6.02.05.source.tar.gz | tar -xf -  
cd root-6.02.05

./configure linuxx8664gcc --enable-explicitlink --all --enable-minuit2 --enable-qt --enable-roofit --enable-table --enable-shared --enable-xml --enable-reflex --enable-python --enable-gdml --enable-rpath --enable-qt --enable-soversion --prefix=/usr/local

make -j4  
sudo make install  
[/code][/quote]  
Thanks, I’ll try it later!

[quote=“Axel”]Hi,

you can attach files - or indeed send by email to [axel@cern.ch](mailto:axel@cern.ch)

We happily build ROOT on Ubuntu 14.04 after every check-in - we know it /should/ work.

Axel.[/quote]  
Thanks, I have sent the make.out to you!

---

<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:** [March 30, 2015, 8:00am UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/9 "2015-03-30T08:00:10Z")

</div>

Hi,

Okay - so now it works? You sent me a different error than the one you mentioned first; the step that failed before now works.

Your new error points at a broken previous build (misconfigured?): the missing ROOT::Class\_ShowMembers is in libCore which is linked (-lCore).

I’d recommend to run  
make distclean  
make -j4

Cheers, Axel.

---

<div class="post-metadata">

**Author:** ![orenane](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/o/ea5d25/32.png) [@orenane](https://root-forum.cern.ch/u/orenane)\
**Post date:** [March 30, 2015, 4:00pm UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/10 "2015-03-30T16:00:52Z")

</div>

[quote=“Axel”]Hi,

Okay - so now it works? You sent me a different error than the one you mentioned first; the step that failed before now works.

Your new error points at a broken previous build (misconfigured?): the missing ROOT::Class\_ShowMembers is in libCore which is linked (-lCore).

I’d recommend to run  
make distclean  
make -j4

Cheers, Axel.[/quote]  
At this time, I deleted the directories ,unpacked the source files in another directory and run  
./configure  
make -j4  
, then different erros occured

`11921 g++ -shared -Wl,-soname,libGX11TTF.so -m32 -O2 -DNDEBUG -Wl,--no-undefined -Wl,--as-needed -o lib/libGX11TTF.so graf2d/x11ttf/src/TGX11TTF .o graf2d/x11ttf/src/G__GX11TTF.o -L/usr/lib/i386-linux-gnu -lfreetype -lz -lpng12 -Llib -lGX11 -lGraf -lXpm -lXext -lX11 -lXft -Llib -lCo re -ldl
11922 graf2d/x11ttf/src/TGX11TTF.o: In function `TNamed::ShowMembers(TMemberInspector&) const':
11923 TGX11TTF.cxx:(.text._ZNK6TNamed11ShowMembersER16TMemberInspector[_ZNK6TNamed11ShowMembersER16TMemberInspector]+0x28): undefined reference to `ROOT::Class_ShowMembers(TClass*, void const*, TMemberInspector&)'
11924 graf2d/x11ttf/src/TGX11TTF.o: In function `TGX11TTF::ShowMembers(TMemberInspector&) const':
11925 TGX11TTF.cxx:(.text._ZNK8TGX11TTF11ShowMembersER16TMemberInspector[_ZNK8TGX11TTF11ShowMembersER16TMemberInspector]+0x28): undefined refere nce to `ROOT::Class_ShowMembers(TClass*, void const*, TMemberInspector&)'
11926 graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x188): undefined reference to `TVirtualX::GetFontAscent(char cons t*) const'
11927 graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x190): undefined reference to `TVirtualX::GetFontDescent(char con st*) const'
11928 graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x4b0): undefined reference to `TAttLine::SetLineColorAlpha(short, float)'
11929 graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x4f8): undefined reference to `TAttFill::SetFillColorAlpha(short, float)'
11930 graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x54c): undefined reference to `TAttText::SetTextColorAlpha(short, float)'
11931 graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x598): undefined reference to `TAttMarker::SetMarkerColorAlpha(sh ort, float)'
11932 graf2d/x11ttf/src/G__GX11TTF.o: In function `ROOT::GenerateInitInstanceLocal(TGX11TTF const*)':
11933 G__GX11TTF.cxx:(.text+0x123): undefined reference to `ROOT::TGenericClassInfo::TGenericClassInfo(char const*, int, char const*, int, std:: type_info const&, ROOT::TInitBehavior const*, TClass* (*)(), TVirtualIsAProxy*, int, int)'
11934 graf2d/x11ttf/src/G__GX11TTF.o: In function `TGX11TTF::Class()':
11935 G__GX11TTF.cxx:(.text+0x326): undefined reference to `gInterpreterMutex'
11936 G__GX11TTF.cxx:(.text+0x350): undefined reference to `gInterpreterMutex'
11937 G__GX11TTF.cxx:(.text+0x384): undefined reference to `gInterpreterMutex'
11938 G__GX11TTF.cxx:(.text+0x3aa): undefined reference to `gInterpreterMutex'
11939 graf2d/x11ttf/src/G__GX11TTF.o: In function `(anonymous namespace)::TriggerDictionaryInitialization_libGX11TTF_Impl()':
11940 G__GX11TTF.cxx:(.text+0x5a0): undefined reference to `TROOT::RegisterModule(char const*, char const **, char const** , char const*, char con st*, void (*)(), std::vector<std::pair<std::string, int>, std::allocator<std::pair<std::string, int> > > const&, char const**)'
11941 collect2: error: ld returned 1 exit status
11942 make: *** [lib/libGX11TTF.so] Error 1
11943 make: *** Waiting for unfinished jobs....`  
The full output is attached.  
[make.tar.bz2](https://root-forum.cern.ch/uploads/default/original/2X/3/36e031a5851e8a1cede7a1ca47001605a2b5ed9a.bz2) (101 KB)

---

<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:** [March 30, 2015, 4:15pm UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/11 "2015-03-30T16:15:43Z")

</div>

Can it be that you have another ROOT version installed somewhere (and this “old” version is “seen” when you try to build the “new” one)?  
Try something like:  
which root  
type root  
which root-config  
type root-config  
locate libCore

---

<div class="post-metadata">

**Author:** ![orenane](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/o/ea5d25/32.png) [@orenane](https://root-forum.cern.ch/u/orenane)\
**Post date:** [March 30, 2015, 4:28pm UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/12 "2015-03-30T16:28:13Z")

</div>

[quote=“Wile E. Coyote”]Can it be that you have another ROOT version installed somewhere (and this “old” version is “seen” when you try to build the “new” one)?  
Try something like:  
which root  
type root  
which root-config  
type root-config  
locate libCore[/quote]  
Thanks!  
I’m sorry I haven’t mentioned that I have installed Version 5.34/14 16 December 2013 by typing “sudo apt-get install root-system-bin”.  
Below are the results

` 1 /usr/bin/root
  2 root is /usr/bin/root
  3 /usr/bin/root-config
  4 root-config is /usr/bin/root-config
  5 /home/coordinator/.local/share/Trash/expunged/2162516355/root-6.02.05/lib/li bCore.so
  6 /home/coordinator/.local/share/Trash/expunged/2162516355/root-6.02.05/lib/li bCore_rdict.pcm
  7 /home/coordinator/soft/root-6.02.05/lib/libCore.so
  8 /home/coordinator/soft/root-6.02.05/lib/libCore_rdict.pcm
  9 /usr/lib/i386-linux-gnu/libCore.so
 10 /usr/lib/i386-linux-gnu/libCore.so.5.34
 11 /usr/lib/i386-linux-gnu/root5.34/libCore.rootmap
 12 /usr/lib/i386-linux-gnu/root5.34/libCore.so
 13 /usr/lib/i386-linux-gnu/root5.34/libCore.so.5
 14 /usr/lib/i386-linux-gnu/root5.34/libCore.so.5.34
~ `

---

<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:** [March 30, 2015, 4:31pm UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/13 "2015-03-30T16:31:38Z")

</div>

sudo apt-get purge root-system\* root-plugin\* libroot\*  
(Note: afterwards check that the “/usr/lib/x86\_64-linux-gnu/root5.34” and the “/usr/lib/i386-linux-gnu/root5.34” subdirectories disappeared completely.)  
Then try to build your “new” ROOT version completely from scratch again.  
See also:  
[[Installation problems (Ubuntu 14.04)](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/1)  
[[Old version vs. New Version Installation Processes](https://root-forum.cern.ch/t/old-version-vs-new-version-installation-processes/18997/1)

---

<div class="post-metadata">

**Author:** ![orenane](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/o/ea5d25/32.png) [@orenane](https://root-forum.cern.ch/u/orenane)\
**Post date:** [March 30, 2015, 6:37pm UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/14 "2015-03-30T18:37:04Z")

</div>

[quote=“Wile E. Coyote”]sudo apt-get purge root-system\* root-plugin\* libroot\*  
(Note: afterwards check that the “/usr/lib/x86\_64-linux-gnu/root5.34” and the “/usr/lib/i386-linux-gnu/root5.34” subdirectories disappeared completely.)  
Then try to build your “new” ROOT version completely from scratch again.  
See also:  
[[Installation problems (Ubuntu 14.04)](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/1)  
[[Old version vs. New Version Installation Processes](https://root-forum.cern.ch/t/old-version-vs-new-version-installation-processes/18997/1)

[quote=“Axel”]Hi,

Okay - so now it works? You sent me a different error than the one you mentioned first; the step that failed before now works.

Your new error points at a broken previous build (misconfigured?): the missing ROOT::Class\_ShowMembers is in libCore which is linked (-lCore).

I’d recommend to run  
make distclean  
make -j4

Cheers, Axel.[/quote]

[quote=“hcohen”]this is my pre install packages for root on ubuntu, last tested with root-6.02.05 and linux mint 17 (ubuntu 14.04)

```auto

```

then simply:

[code]wget [http://root.cern.ch/download/root\_v6.02.05.source.tar.gz](http://root.cern.ch/download/root_v6.02.05.source.tar.gz)  
gzip -dc root\_v6.02.05.source.tar.gz | tar -xf -  
cd root-6.02.05

./configure linuxx8664gcc --enable-explicitlink --all --enable-minuit2 --enable-qt --enable-roofit --enable-table --enable-shared --enable-xml --enable-reflex --enable-python --enable-gdml --enable-rpath --enable-qt --enable-soversion --prefix=/usr/local

make -j4  
sudo make install  
[/code][/quote]

Thanks for all of your helps, it’s really very kind of you!  
The solution is to uninstall the previously installed ROOT by run  
sudo apt-get purge root-system\* root-plugin\* libroot\*

---

<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:** [March 30, 2015, 6:42pm UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/15 "2015-03-30T18:42:09Z")

</div>

[url=https://root-forum.cern.ch/t/missing-canvas/17664/17 you use “–prefix=/usr/local”, you will have the same problem one day in the future again.[/url]

---

<div class="post-metadata">

**Author:** ![orenane](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/o/ea5d25/32.png) [@orenane](https://root-forum.cern.ch/u/orenane)\
**Post date:** [March 31, 2015, 11:30am UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/16 "2015-03-31T11:30:15Z")

</div>

> [@Wile E. Coyote](#):
>
> [url=[Missing Canvas - #17 by Wile\_E\_Coyote](https://root-forum.cern.ch/t/missing-canvas/17664/17) you use “–prefix=/usr/local”, you will have the same problem one day in the future again.[/url]

Yes, the problem occured as you expected. Then I use “–prefix=another\existed\directory”, it says “No such file or directory”. I don’t know why. At last, I use the “environment driven build” to install ROOT, which really works.  
Anyway, thanks for your reminder!  
But now I find that when I try to make the example in “geant4.10.01/examples/advanced/iort\_therapy” ,  
after typing cmake

```auto
G4 Examples: ROOT found. --> iort_therapy example with ROOT enabled.
```

,then make

`[2%] Building CXX object CMakeFiles/iort_therapy.dir/iort_therapy.cc.o
In file included from /home/coordinator/soft/geant4.10.01/examples/advanced/iort_therapy/iort_therapy.cc:70:0:
/home/coordinator/soft/geant4.10.01/examples/advanced/iort_therapy/include/IORTAnalysisManager.hh:48:19: fatal error: TROOT.h: No such file or directory
 #include "TROOT.h"
                   ^
compilation terminated.
`  
How can I let geant4 know where TROO.h is. Of cource, “root-6.02.05/include/TROOT.h” exists.

---

<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:** [March 31, 2015, 11:47am UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/17 "2015-03-31T11:47:15Z")

</div>

[[root.cern.ch/phpBB3/viewtopic.p](http://root.cern.ch/phpBB3/viewtopic.p) … 448#p83314]([Old version vs. New Version Installation Processes](https://root-forum.cern.ch/t/old-version-vs-new-version-installation-processes/18997/1)  
[[ROOT uninstalls on reboot](https://root-forum.cern.ch/t/root-uninstalls-on-reboot/17952/1)

---

<div class="post-metadata">

**Author:** ![orenane](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/o/ea5d25/32.png) [@orenane](https://root-forum.cern.ch/u/orenane)\
**Post date:** [March 31, 2015, 1:04pm UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/18 "2015-03-31T13:04:16Z")

</div>

[quote=“Wile E. Coyote”][Old version vs. New Version Installation Processes](https://root-forum.cern.ch/t/old-version-vs-new-version-installation-processes/18997/1)  
[[ROOT uninstalls on reboot](https://root-forum.cern.ch/t/root-uninstalls-on-reboot/17952/1)  
Thanks a lot!  
As is stated above, root-6.02.05 can work very well on my pc, but the problem is that Geant4 can’t find some header files such as TROOT.h in “root-6.02.05/include”. And before I make the example in “geant4.10.01/examples/advanced/iort\_therapy” , I have ran  
source full\path/root-6.02.05/bin/thisroot.sh in the same session and root can run properly.

`echo $LD_LIBRARY_PATH
 /home/coordinator/soft/root-6.02.05/root-6.02.05/lib:/home/coordinator/soft/geant4.10.01-build/lib`

Then how can I deal with this problem?

---

<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:** [March 31, 2015, 1:20pm UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/19 "2015-03-31T13:20:56Z")

</div>

If you get proper output from:  
root-config --incdir  
root-config --cflags  
then you need to talk to geant4 people why it fails.

---

<div class="post-metadata">

**Author:** ![orenane](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/o/ea5d25/32.png) [@orenane](https://root-forum.cern.ch/u/orenane)\
**Post date:** [March 31, 2015, 2:51pm UTC](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962/20 "2015-03-31T14:51:01Z")

</div>

[quote=“Wile E. Coyote”]If you get proper output from:  
root-config --incdir  
root-config --cflags  
then you need to talk to geant4 people why it fails.[/quote]  
Below are the results

`1 /home/coordinator/soft/root-6.02.05/root-6.02.05/include
  2 -pthread -std=c++11 -Wno-deprecated-declarations -m32 -msse -mfpmath=sse -I/home/coordinator/soft/root-6.02.05/root-6.02.05/include
~ `

Then, what’s the problem?  
Thanks for your patience!

[Next page](https://root-forum.cern.ch/t/failed-to-install-root-6-02-05-on-ubuntu14-04-lts/18962.md?page=2)
