Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiNest cmake error at CMakeLists #204

Open
AnnaPuecher opened this issue Jan 19, 2022 · 12 comments
Open

MultiNest cmake error at CMakeLists #204

AnnaPuecher opened this issue Jan 19, 2022 · 12 comments

Comments

@AnnaPuecher
Copy link

Hi,

I was trying to install MultiNest following the instructions here https://johannesbuchner.github.io/PyMultiNest/install.html, but when running $cmake .. I got the following error

 ........

 -- A library with BLAS API found.

 -- A library with LAPACK API found.
 
 -- Detected gfortran, adding -ffree-line-length-none compiler flag.

 CMake Error at src/CMakeLists.txt:38 (if):

 if given arguments:


"CMAKE_C_COMPILER_VERSION" "VERSION_GREATER_EQUAL" "10"


Unknown arguments specified

 -- Configuring incomplete, errors occurred!

Looking into /MultiNest/src/CMakeLists.txt I think the problem is that it doesn't recognize the variable CMAKE_FORTRAN_COMPILER_VERSION, since a similar error is given at line 46. A quick solution was commenting out lines 38-41 and 46-49, but I was wondering if there's a better way to make it work.
I've installed MultiNest other times before and this is the first one I'm getting this error. Also, I'm using cmake 2.8.12.2, which should meet the minimum requirements.

Thanks a lot in advance.

@JohannesBuchner
Copy link
Owner

sounds similar to #189

@AnnaPuecher
Copy link
Author

Thanks, I looked into this issue, and if I understood correctly it was caused by a merge request and solved with a git pull. I tried but I'm still getting the same error (and git pull just says everything is already up to date), was there something different to do?

@JohannesBuchner
Copy link
Owner

JohannesBuchner commented Jan 20, 2022

Did you try cleaning your build/ folder completely (including hidden files)?

@AnnaPuecher
Copy link
Author

I used rm -r build/*, is that ok?
I also tried re-installing from scratch and doing a git pull right after cloning but I got the same error

@JohannesBuchner
Copy link
Owner

ls -A will show you the files

@AnnaPuecher
Copy link
Author

ok, ls -A prompted

  .  ..  .gitignore

Removing also .gitignore still gives the same error, but I can't delete the other two, I get

rm: refusing to remove ‘.’ or ‘..’ directory: skipping ‘.’

rm: refusing to remove ‘.’ or ‘..’ directory: skipping ‘..’

@JohannesBuchner
Copy link
Owner

yeah, that's fine. So you still get the same error when doing cmake .. && make?

@AnnaPuecher
Copy link
Author

yes, when I try cmake .. I get the same

@JohannesBuchner
Copy link
Owner

Then I don't know. What OS is this?

@AnnaPuecher
Copy link
Author

Linux, with

 Distributor ID:	Scientific
 Description:	Scientific Linux release 7.9 (Nitrogen) 
 Release:	7.9 
 Codename:	Nitrogen

But I'm actually running on a cluster, so there might be some conflict

@JohannesBuchner
Copy link
Owner

Perhaps updating cmake could help.

@jenniferyee
Copy link

FYI I had this same problem and "solved" it using this thread:

glfw/glfw#1584

CMakeLists only checks for cmake > 2.8, but VERSION_GREATER_EQUAL was not introduced until cmake 3.7. I cannot update cmake on my system due to permissions, but I got it to run by changing VERSION_GREATER_EQUAL --> VERSION_GREATER (in 2 places).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants