Closed wanyuac closed 3 years ago
You are setting C++ compiler incorrectly, please see here:
https://stackoverflow.com/questions/3299754/cpp-c-is-not-a-valid-option-to-the-preprocessor
Also, it can be easier to build raxml-ng without using conda. Please see instructions here:
https://github.com/amkozlov/raxml-ng/wiki/Installation#mpi-enabled-version
Hi @amkozlov , thanks for your help. As discussed in the post from your reply, I mistook the C++ compiler for the C preprocessor cpp
. After installing g++ using command line conda install -c anaconda gxx_linux-64
, I ran commands:
ln -s $CC ~/anaconda3/envs/raxml/bin/gcc
ln -s $HOME/anaconda3/envs/raxml/bin/x86_64-conda_cos6-linux-gnu-g++ $HOME/anaconda3/envs/raxml/bin/g++
mkdir build && cd build
cmake -DUSE_MPI=ON -DCMAKE_C_COMPILER=$HOME/anaconda3/envs/raxml/bin/gcc -DCMAKE_CXX_COMPILER=$HOME/anaconda3/envs/raxml/bin/g++ -S=$HOME/software/raxml ..
make
Program raxml-ng was successfully built and appeared under the directory bin
. This issue is hence solved. Please feel free to close this issue.
Great, thanks for reporting back!
I could not installed this RAxML-NG version using conda v4.8.3.
My command lines are:
The last command failed with the error message:
I have also attached the output log files here: CMakeError.log CMakeOutput.log
I would appreciate it if anyone would help me to address this issue.