# ROOT 6.22.02 installation error: cannot find libvectorDict.so

**URL:** <https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162>\
**Category:** ROOT\
**Created:** [November 8, 2020, 11:33am UTC](https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162 "2020-11-08T11:33:26Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![uzair90](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/u/839c29/32.png) [@uzair90](https://root-forum.cern.ch/u/uzair90)\
**Post date:** [November 8, 2020, 11:33am UTC](https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162/1 "2020-11-08T11:33:26Z")

</div>

Hello,

I am trying to install ROOT 6.22.02. The cmake compilation runs fine but right at the end I get this error:

```auto
CMake Error at core/clingutils/cmake_install.cmake:51 (file):
  file INSTALL cannot find "/usr/local/build_root/lib/libvectorDict.so": No
  such file or directory.
Call Stack (most recent call first):
  core/cmake_install.cmake:70 (include)
  cmake_install.cmake:205 (include)

gmake: *** [Makefile:129: install] Error 1

```

Can somebody please guide me on how to resolve this error?

* * *

_ROOT Version:_ 6.22.02  
_Platform:_ Ubuntu 19.10  
_Compiler:_ 9.3

* * *

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [November 9, 2020, 9:24am UTC](https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162/2 "2020-11-09T09:24:05Z")

</div>

Hi @uzair90,  
can you please share the full output of the cmake configuration (including the command you use to configure the build) and also possibly some lines around/before the error message appears?

Also note that unless you have specific needs you don’t need to compile ROOT from source, there are several more painless installation methods listed at [https://root.cern/install](https://root.cern/install) , e.g. you could install ROOT as a conda package.

Hope this helps!  
Enrico

---

<div class="post-metadata">

**Author:** ![uzair90](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/u/839c29/32.png) [@uzair90](https://root-forum.cern.ch/u/uzair90)\
**Post date:** [November 9, 2020, 7:32pm UTC](https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162/3 "2020-11-09T19:32:03Z")

</div>

Hello @eguiraud,

I use this first command to configure:

`cmake -DCMAKE_INSTALL_PREFIX=/usr/local/build_root /usr/local/root-6.22.02/ -Dminuit2=ON`

And I use this to run the installation by the second command:

` cmake --build . -- install -j4`

I have attached the output of the two commands for your reference.

I saw the conda install option recently. I am not a python use so I was not aware of that. I use ROOT in conjunction with some other softwares/simulations. If I install ROOT from conda would I still have access to this environment variable: export ROOTSYS=/usr/local/build\_root  
[command2\_output.txt](https://root-forum.cern.ch/uploads/short-url/xolMwWBnzFQcvWpCuPY5eG4qyM1.txt) (960.1 KB)  
[command1\_output.txt](https://root-forum.cern.ch/uploads/short-url/kU7RNSD4IJa1sQvyxQf4kGIpmI5.txt) (11.9 KB)

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [November 10, 2020, 8:59am UTC](https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162/4 "2020-11-10T08:59:10Z")

</div>

Uhm sorry I cannot tell what the problem is, maybe @Axel or @oshadura have an idea.

As a workaround you can install via conda or also just use the pre-compiled binaries, see [https://root.cern/install](https://root.cern/install) .

Cheers,  
Enrico

---

<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:** [November 10, 2020, 9:18am UTC](https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162/5 "2020-11-10T09:18:26Z")

</div>

Traditionally, `/usr/local/` isn’t a user-writable directory, this should only be written to by the superuser (user `root`); as such you might want to build in your home directory as a regular user and then run `sudo cmake --build . install -j4` _after_ `cmake --build . -j4` (without `sudo`).

That said: do you have `/usr/local/build_root/lib/libvectorDict.so`? Your log says `[77%] Linking CXX shared library ../../lib/libvectorDict.so` which should have created it. What does `ls -l /usr/local/build_root/lib/libvectorDict.so` show?

---

<div class="post-metadata">

**Author:** ![uzair90](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/u/839c29/32.png) [@uzair90](https://root-forum.cern.ch/u/uzair90)\
**Post date:** [November 10, 2020, 1:39pm UTC](https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162/6 "2020-11-10T13:39:50Z")

</div>

Hell @Axel,

That is true. Traditionally `/usr/local` is not a user-writable directory. However, in my case I have made it as such so that I have full permissions to write in it as a user so that I do not have use `sudo` or `su`.

If I do `ls -l /usr/local/build_root/lib/libvectorDict.so` there is no such file. However, I do find this file:

`ls -l /usr/local/build_root/lib/libvectorDict.rootmap -rw-rw-r-- 1 uzairlatif uzairlatif 427 Nov 10 12:49 /usr/local/build_root/lib/libvectorDict.rootmap`

I would like to add that I did find this other post for a user who had a similar problem: [Error with libvectorDict.so](https://root-forum.cern.ch/t/error-with-libvectordict-so/39097)

However, the binary pointed out there was for GCC 9.2 and I have GCC 9.3.

---

<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:** [November 10, 2020, 1:53pm UTC](https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162/7 "2020-11-10T13:53:07Z")

</div>

Super weird - CMake tells us that it built `libvectorDict.so` yet now it’s gone. What happens if you re-run `cmake --build . -- install -j4`? Say a couple of times? Does it state `Linking CXX shared library ../../lib/libvectorDict.so` all the time? Do you ever see `/usr/local/build_root/lib/libvectorDict.so` being generated?

---

<div class="post-metadata">

**Author:** ![uzair90](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/u/839c29/32.png) [@uzair90](https://root-forum.cern.ch/u/uzair90)\
**Post date:** [November 11, 2020, 8:04am UTC](https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162/8 "2020-11-11T08:04:48Z")

</div>

Hello @Axel ,

So when I re-ran the command: `cmake --build . -- install -j4` three times and each time I got the same error with this message: `[77%] Linking CXX shared library ../../lib/libvectorDict.so `.

`libvectorDict.so` is never generated. Let me know what else I can try.

I also made a mistake earlier in reporting what OS I have. I Ubuntu 20.04 LTS not 19.10.

---

<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:** [November 11, 2020, 8:17am UTC](https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162/9 "2020-11-11T08:17:47Z")

</div>

OK that’s _good_ - it’s a reproducible error! Please run `cmake --build . -- vectorDict VERBOSE=1 > make.log 2>&1` and upload the file `make.log`. Thanks!

---

<div class="post-metadata">

**Author:** ![uzair90](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/u/839c29/32.png) [@uzair90](https://root-forum.cern.ch/u/uzair90)\
**Post date:** [November 11, 2020, 8:49am UTC](https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162/10 "2020-11-11T08:49:04Z")

</div>

[make.txt](https://root-forum.cern.ch/uploads/short-url/waUF67fdj7cqrsDdhTHAOatUVIr.txt) (241.0 KB)

I have attached the make.log file for your reference. I was not allowed to upload a file with \*.log extension so I changed the extension to \*.txt.

---

<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:** [November 11, 2020, 10:08am UTC](https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162/11 "2020-11-11T10:08:26Z")

</div>

Thanks. CMake says it has created a file `/usr/local/build_root/core/clingutils/../../lib/libvectorDict.so`. If you `ls -l` that, what does that show?

---

<div class="post-metadata">

**Author:** ![uzair90](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/u/839c29/32.png) [@uzair90](https://root-forum.cern.ch/u/uzair90)\
**Post date:** [November 11, 2020, 10:14am UTC](https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162/12 "2020-11-11T10:14:07Z")

</div>

Yes! The file is finally there when I do `ls -l` in the `/lib` folder.

`-rwxrwxr-x 1 uzairlatif uzairlatif 144160 Nov 11 13:46 libvectorDict.so`

So next time if it happens again should I just run the command: `cmake --build . -- vectorDict` to build the file?

Thank you so much for your help!

---

<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:** [November 11, 2020, 10:41am UTC](https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162/13 "2020-11-11T10:41:13Z")

</div>

Hmm, well, that solves it for you but not for me - I still don’t understand why the file was removed after it got created. But okay, solve for you, and we will debug this once we see this on our machines!

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [November 25, 2020, 10:41am UTC](https://root-forum.cern.ch/t/root-6-22-02-installation-error-cannot-find-libvectordict-so/42162/14 "2020-11-25T10:41:15Z")

</div>

Closed on November 25, 2020, 10:41am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
