re-installing the libra

92 views
Skip to first unread message

hamid Mehdipour

unread,
Jun 14, 2019, 7:39:05 AM6/14/19
to Quantum-Dynamics-Hub
Dear Libra user

I am reinstalling the Libra on the machine on which I installed the lIbra for the first time. I am now using the same instruction as I used before, but now receiving the below message every time I try to re-install. I first 1) install miniconda, 2) create and activate an environment 'libra' 3) download and install all the compilers, packages, etc. at the new environment (https://quantum-dynamics-hub.github.io/libra/installation.html), then when 4) want to cmake, every time encounter error message never seen before.

""""" 
The C compiler

    "/home/sacss11/miniconda2/envs/libra/bin/x86_64-conda_cos6-linux-gnu-cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/sacss11/Libra/_build/CMakeFiles/CMakeTmp

""""""""

Would really appreciate it if you tell me what the caused such problem

Best
Hamid

Alexey Akimov

unread,
Jun 14, 2019, 10:22:42 PM6/14/19
to Quantum-Dynamics-Hub
Hamid,

This usually means Linux can't find the C compiler in the path - it is either not installed or not "visible". Have you activated your environment to where all the required packages are installed?

My advice - follow the instructions very closely. Many people have already gone through it successfully. The cases when they got into troubles is when they deviate (or miss something) in the installation.

Keep in mind that if you need to run the "cmake" command with the arguments (-D...), you should first delete the content of "_build" directory, otherwise make files aren't properly updated.


Best,
Alexey

hamid Mehdipour

unread,
Jun 16, 2019, 10:32:48 AM6/16/19
to Quantum-Dynamics-Hub
Hi Alexey,

Many thanks for your response. My C compiler is installed and is visible everywhere in the shell-when which "compiler" it gives the below

(libra) [sacss11@raven13 _build]$ which x86_64-conda_cos6-linux-gnu-cc
~/miniconda2/envs/libra/bin/x86_64-conda_cos6-linux-gnu-cc
,

which means the compiler is installed and visible.

Also, as a matter of fact, I am one of those who many times used the instructions and successfully installed the package. Before, each cmake I completely remove _build folder and remake it.


Thank you

Alexey Akimov

unread,
Jun 16, 2019, 12:50:48 PM6/16/19
to Quantum-Dynamics-Hub
Hamid, 

Great to know it worked all the time before. So, if you was able to compile Libra earlier and can't now - the question is: what's different? Have you updated/installed something on your system?

Possible things to try might be:
- reinstall the compilers (this may reset the pathes and other env variables)
- remove Libra completely and and try to compile it from scratch 

I really doubt it is anything about the code itself, so the option 2 may not be as productive. The message clearly says there is a problem with a compiler - so, you'll need to focus on fixing that. So maybe google for a solution or check out on StackOverflow for it is more of a general software question.

Best, 
Alexey
Reply all
Reply to author
Forward
0 new messages