# Installation problems (Ubuntu 14.04)

**URL:** <https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550>\
**Category:** ROOT\
**Created:** [November 29, 2014, 11:52am UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550 "2014-11-29T11:52:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![M.Bona](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/a8b319/32.png) [@M.Bona](https://root-forum.cern.ch/u/M.Bona)\
**Post date:** [November 29, 2014, 11:52am UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/1 "2014-11-29T11:52:31Z")

</div>

I was trying to install root (version 5.34.23) on my computer when this error occurred:

`g++ -shared -Wl,-soname,libGX11TTF.so -m64 -O2 -Wl,--no-undefined -Wl,--as-needed -o lib/libGX11TTF.so graf2d/x11ttf/src/TGX11TTF.o graf2d/x11ttf/src/G__X11TTF.o -L/usr/lib/x86_64-linux-gnu -lfreetype -lz -lpng12 -Llib -lGX11 -lGraf -lXpm -lXext -lX11 -lXft -Llib -lCore -lCint -ldl
graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x310): undefined reference to `TVirtualX::GetFontAscent(char const*) const'
graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x320): undefined reference to `TVirtualX::GetFontDescent(char const*) const'
graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x960): undefined reference to `TAttLine::SetLineColorAlpha(short, float)'
graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x9f0): undefined reference to `TAttFill::SetFillColorAlpha(short, float)'
graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0xa98): undefined reference to `TAttText::SetTextColorAlpha(short, float)'
graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0xb30): undefined reference to `TAttMarker::SetMarkerColorAlpha(short, float)'
collect2: error: ld returned 1 exit status
make: *** [lib/libGX11TTF.so] Error 1`  
If I type the command “arch” on my terminal I get “x86\_64”, so I tried to configure root for the arch linuxx8664gcc (my gcc version is gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 ) and then “make” it, but I got the problem above descripted.  
If I try to configure root for the arch linux, I get this error message:

`Checking for libX11 ... no
configure: libX11 MUST be installed
`  
I’ve installed all the prerequisites listed here [root.cern.ch/drupal/content/build-prerequisites](http://root.cern.ch/drupal/content/build-prerequisites) (those for Ubuntu 10, 11, 12 and 14), but still no result.  
The problem seems to regard libX11 ( and/or libXpm) but if I try with

```auto

```

I get : `libx11-dev is already the newest version.
libxpm-dev is already the newest version.
`

Previously I had root on my pc, but I uninstalled it because there were problems in linking libraries ( doing `root-config --cflags --glibs` it didn’t find “Physics” “Postcript” & “Graf3d” libraries) : probably because the first time I installed it I did it not in the proper way.  
Hope someone can help me, thanks!

---

<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:** [November 29, 2014, 12:13pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/2 "2014-11-29T12:13:34Z")

</div>

Try:  
sudo apt-get build-dep root-system  
and then see, for example, [url=https://root-forum.cern.ch/t/trouble-installing/18046/11 old post[/url].

---

<div class="post-metadata">

**Author:** ![M.Bona](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/a8b319/32.png) [@M.Bona](https://root-forum.cern.ch/u/M.Bona)\
**Post date:** [November 29, 2014, 5:22pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/3 "2014-11-29T17:22:20Z")

</div>

I tried to  
sudo apt-get build-dep root-system  
but it seems impossible to have any resault due to a problem with this:  
libiodbc2-dev : Depends: libiodbc2 (= 3.52.7-3.1) but it won’t be installed.  
Then I tried to follow what you said here [Trouble Installing](https://root-forum.cern.ch/t/trouble-installing/18046/11)  
, doing this:

`rm -rf v5-34-00-patches
git clone -b v5-34-00-patches http://root.cern.ch/git/root.git v5-34-00-patches
cd v5-34-00-patches
unset ROOTSYS
./configure --enable-soversion --all > configure.out.txt 2>&1
make > make.out.txt 2>&1`  
But when I try to make root I (still) get this

`g++ -shared -Wl,-soname,libGX11TTF.so -m64 -O2 -Wl,--no-undefined -Wl,--as-needed -o lib/libGX11TTF.so graf2d/x11ttf/src/TGX11TTF.o graf2d/x11ttf/src/G__X11TTF.o -L/usr/lib/x86_64-linux-gnu -lfreetype -lz -lpng12 -Llib -lGX11 -lGraf -lXpm -lXext -lX11 -lXft -Llib -lCore -lCint -ldl
graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x310): undefined reference to `TVirtualX::GetFontAscent(char const*) const'
graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x320): undefined reference to `TVirtualX::GetFontDescent(char const*) const'
graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x960): undefined reference to `TAttLine::SetLineColorAlpha(short, float)'
graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x9f0): undefined reference to `TAttFill::SetFillColorAlpha(short, float)'
graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0xa98): undefined reference to `TAttText::SetTextColorAlpha(short, float)'
graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0xb30): undefined reference to `TAttMarker::SetMarkerColorAlpha(short, float)'
collect2: error: ld returned 1 exit status
make: *** [lib/libGX11TTF.so] Error 1
`

---

<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:** [November 29, 2014, 5:42pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/4 "2014-11-29T17:42:32Z")

</div>

Try (note: it will replace “libhdf5-7” and “libhdf5-dev”, if installed, but that’s o.k.):  
sudo apt-get build-dep linux  
sudo apt-get install libiodbc2 libiodbc2-dev  
sudo apt-get install libcfitsio3 libcfitsio3-dev  
sudo apt-get build-dep root-system  
sudo apt-get install mpi-default-dev libhdf5-mpi-dev

Also, execute and post here the output of:  
locate libCore  
locate libCint

BTW. The “g++” line that you show in your last post cannot be the result of the “configure” line that you show therein, too (try “cat config.status”).

---

<div class="post-metadata">

**Author:** ![M.Bona](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/a8b319/32.png) [@M.Bona](https://root-forum.cern.ch/u/M.Bona)\
**Post date:** [November 29, 2014, 7:34pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/5 "2014-11-29T19:34:01Z")

</div>

I tried to execute all the sudo commands indicated, but still no result. Should I “make” root one more time, after the execution of “sudo apt-get build-dep root-system” ? (If not, only typing “root” is unsuccessful because I get “The program ‘root’ is currently not installed. You can install it by typing:  
sudo apt-get install root-system-bin”).  
When I locate libCore the output is:

`/usr/lib/x86_64-linux-gnu/libCore.so
/usr/lib/x86_64-linux-gnu/libCore.so.5.34
/usr/lib/x86_64-linux-gnu/root5.34/libCore.rootmap
/usr/lib/x86_64-linux-gnu/root5.34/libCore.so
/usr/lib/x86_64-linux-gnu/root5.34/libCore.so.5
/usr/lib/x86_64-linux-gnu/root5.34/libCore.so.5.34
`  
And for libCint:

`/home/matteo/root/cint/build/libCint.mk
/usr/lib/x86_64-linux-gnu/libCint.so
/usr/lib/x86_64-linux-gnu/libCint.so.5.34
/usr/lib/x86_64-linux-gnu/libCintex.so
/usr/lib/x86_64-linux-gnu/libCintex.so.5.34
/usr/lib/x86_64-linux-gnu/root5.34/libCint.so
/usr/lib/x86_64-linux-gnu/root5.34/libCint.so.5
/usr/lib/x86_64-linux-gnu/root5.34/libCint.so.5.34
/usr/lib/x86_64-linux-gnu/root5.34/libCintex.rootmap
/usr/lib/x86_64-linux-gnu/root5.34/libCintex.so
/usr/lib/x86_64-linux-gnu/root5.34/libCintex.so.5
/usr/lib/x86_64-linux-gnu/root5.34/libCintex.so.5.34
`

PS: That g++ line was the result of the command make, after the execution of the others listed above.

---

<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:** [November 29, 2014, 7:41pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/6 "2014-11-29T19:41:15Z")

</div>

You apparently have some version of ROOT installed in “system directories” ("/usr/lib/x86\_64-linux-gnu/").  
You must “completely remove” (“purge”) all “system-provided” ROOT related packages (this includes any “official” packages that originate from your operating system’s repositories as well as any version that you yourself built).  
Then configure and make your new version of ROOT from scratch.  
Note: this is explicitly written in [url=https://root-forum.cern.ch/t/missing-canvas/17664/17 of the old posts that I gave you[/url].

PS: That g++ line was NOT the result of the command make after the execution my “configure” line (yes, I can clearly see that there’s something missing in that line, which must have had been there if ROOT was configured according to my “configure” line).

---

<div class="post-metadata">

**Author:** ![M.Bona](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/a8b319/32.png) [@M.Bona](https://root-forum.cern.ch/u/M.Bona)\
**Post date:** [November 29, 2014, 7:51pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/7 "2014-11-29T19:51:16Z")

</div>

Actually in usr/lib/x86\_64-linux-gnu/ there is the directory root5.34, but how do I completely delete root & everything related to it in order to configure and make a new version of it? Should I simply delete that directory (and the one that contains root’s source), or something more is required?

---

<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:** [November 29, 2014, 7:55pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/8 "2014-11-29T19:55:12Z")

</div>

Try:  
sudo dpkg --list "_"|grep libroot  
sudo apt-get purge libroot_

---

<div class="post-metadata">

**Author:** ![M.Bona](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/a8b319/32.png) [@M.Bona](https://root-forum.cern.ch/u/M.Bona)\
**Post date:** [November 29, 2014, 8:01pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/9 "2014-11-29T20:01:51Z")

</div>

Done. But the root5.34 directory is still there (almost empty. It only contains 2 .so files “Physics” & “Postcript”). Neither was removed the directory “root”, which contains root’s source files. Is it correct? What should I do next?

---

<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:** [November 29, 2014, 8:04pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/10 "2014-11-29T20:04:20Z")

</div>

Maybe:  
sudo dpkg --list "_"|grep root-plugin  
sudo apt-get purge root-plugin_

---

<div class="post-metadata">

**Author:** ![M.Bona](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/a8b319/32.png) [@M.Bona](https://root-forum.cern.ch/u/M.Bona)\
**Post date:** [November 29, 2014, 8:08pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/11 "2014-11-29T20:08:33Z")

</div>

Apparently no result: everything seems to be as it was before the execution of those commands.

---

<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:** [November 29, 2014, 8:10pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/12 "2014-11-29T20:10:40Z")

</div>

Then maybe:  
sudo dpkg --list "_"|grep root-system  
sudo apt-get purge root-system_

---

<div class="post-metadata">

**Author:** ![M.Bona](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/a8b319/32.png) [@M.Bona](https://root-forum.cern.ch/u/M.Bona)\
**Post date:** [November 29, 2014, 8:19pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/13 "2014-11-29T20:19:30Z")

</div>

Those two libraries are still there.  
Apparently now on my pc I have these files/directories regarding root (or, at least, these are the “visible” ones):  
[ul]  
root\_v5.34.23.source.tar  
root (directory created once .tar was unpacked)  
root5.34 (directory in urs/lib/x86\_64-linux-gnu/)  
[/ul]

---

<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:** [November 29, 2014, 8:23pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/14 "2014-11-29T20:23:59Z")

</div>

Try again:  
sudo apt-get purge root-system\* root-plugin\* libroot\*

---

<div class="post-metadata">

**Author:** ![M.Bona](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/a8b319/32.png) [@M.Bona](https://root-forum.cern.ch/u/M.Bona)\
**Post date:** [November 29, 2014, 8:29pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/15 "2014-11-29T20:29:01Z")

</div>

Nothing changed.  
While executing the command, I get a list of:  
Package ‘\*\*\*’ is not installed, so not removed  
So probably the previous executions went well, but I cannot remove those two libraries; even if I try to do it directly from the root5.34 directory. Should the directory root, with the source files, be removed?

---

<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:** [November 29, 2014, 8:35pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/16 "2014-11-29T20:35:11Z")

</div>

Try to reboot your machine.

Then execute again (see if it still finds any libraries in any “system directories”):  
locate libCore  
locate libCint

BTW. It seems to me that “libPhysics” belongs to “[libroot-math-physics5.34](http://packages.ubuntu.com/hu/trusty/amd64/libroot-math-physics5.34)” or “[libroot-math-physics-dev](http://packages.ubuntu.com/hu/trusty/amd64/libroot-math-physics-dev)” while “libPostscript” belongs to “[libroot-graf2d-postscript5.34](http://packages.ubuntu.com/hu/trusty/amd64/libroot-graf2d-postscript5.34)” or “[libroot-graf2d-postscript-dev](http://packages.ubuntu.com/hu/trusty/amd64/libroot-graf2d-postscript-dev)”.

---

<div class="post-metadata">

**Author:** ![M.Bona](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/a8b319/32.png) [@M.Bona](https://root-forum.cern.ch/u/M.Bona)\
**Post date:** [November 29, 2014, 9:02pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/17 "2014-11-29T21:02:18Z")

</div>

After the reboot nothing changed.  
If I try to locate libCint and libCore i get:

`/home/matteo/root/cint/build/libCint.mk
/home/matteo/root/lib/libCint.so
/usr/lib/x86_64-linux-gnu/libCint.so
/usr/lib/x86_64-linux-gnu/libCint.so.5.34
/usr/lib/x86_64-linux-gnu/libCintex.so
/usr/lib/x86_64-linux-gnu/libCintex.so.5.34
/usr/lib/x86_64-linux-gnu/root5.34/libCint.so
/usr/lib/x86_64-linux-gnu/root5.34/libCint.so.5
/usr/lib/x86_64-linux-gnu/root5.34/libCint.so.5.34
/usr/lib/x86_64-linux-gnu/root5.34/libCintex.rootmap
/usr/lib/x86_64-linux-gnu/root5.34/libCintex.so
/usr/lib/x86_64-linux-gnu/root5.34/libCintex.so.5
/usr/lib/x86_64-linux-gnu/root5.34/libCintex.so.5.34
`

`/home/matteo/root/lib/libCore.so
/usr/lib/x86_64-linux-gnu/libCore.so
/usr/lib/x86_64-linux-gnu/libCore.so.5.34
/usr/lib/x86_64-linux-gnu/root5.34/libCore.rootmap
/usr/lib/x86_64-linux-gnu/root5.34/libCore.so
/usr/lib/x86_64-linux-gnu/root5.34/libCore.so.5
/usr/lib/x86_64-linux-gnu/root5.34/libCore.so.5.34
`

But if I look for them in root5.34 I cannot find them. In root5.34 there are postscript and physics, nothing else.

---

<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:** [November 29, 2014, 9:09pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/18 "2014-11-29T21:09:47Z")

</div>

What do you get if you try:  
ls -al /usr/lib/x86\_64-linux-gnu/lib[CP]\*  
ls -al /usr/lib/x86\_64-linux-gnu/root5.34/

---

<div class="post-metadata">

**Author:** ![M.Bona](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/a8b319/32.png) [@M.Bona](https://root-forum.cern.ch/u/M.Bona)\
**Post date:** [November 29, 2014, 9:11pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/19 "2014-11-29T21:11:40Z")

</div>

I get the following output:

`lrwxrwxrwx 1 root root 22 nov 28 16:27 /usr/lib/x86_64-linux-gnu/libPhysics.so -> root5.34/libPhysics.so
lrwxrwxrwx 1 root root 25 nov 28 16:27 /usr/lib/x86_64-linux-gnu/libPostscript.so -> root5.34/libPostscript.so
`

---

<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:** [November 29, 2014, 9:14pm UTC](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550/20 "2014-11-29T21:14:27Z")

</div>

Well, you could try to install and then purge everything again:  
sudo apt-get install libroot-math-physics5.34 libroot-math-physics-dev libroot-graf2d-postscript5.34 libroot-graf2d-postscript-dev  
sudo apt-get purge root-system\* root-plugin\* libroot\*  
Afterwards you should get an empty list when you try:  
sudo dpkg --list “\*”|grep libroot

[Next page](https://root-forum.cern.ch/t/installation-problems-ubuntu-14-04/18550.md?page=2)
