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

cmake on a broken mirror #365

Open
LukasvdWiel opened this issue Oct 6, 2023 · 6 comments
Open

cmake on a broken mirror #365

LukasvdWiel opened this issue Oct 6, 2023 · 6 comments

Comments

@LukasvdWiel
Copy link

Dear developer,

I am trying to run the latest candi, in order to install Deal2. The procedure insists on installing cmake, even while I have cmake already installed, and I explicity do not request it using the command:

./candi.sh --prefix=/trinity/opt/apps/software/Deal2/dealii-9.4.2/buildHere -j 32 --packages="opencascade parmetis hdf5 p4est trilinos symengine dealii" -y

I have checked the packages variable and see that cmake has been added before all the packages I requested:

packages: once:cmake opencascade parmetis hdf5 p4est trilinos symengine dealii

That would not even be so bad, but candi tries to download cmake from

https://tjhei.info/candi-mirror/cmake-3.20.5-linux-x86_64.tar.gz

and this website is down/broken/does not exist, breaking the install procedure.

How can I prevent cmake from being added to the list of to-be-installed packages?

Thanks a lot,
Lukas

@gassmoeller
Copy link
Member

Hi Lukas,
I observe similar problems (although it eventually downloads for me after many failed tries). What should work is to comment out this line in candi.cfg:

MIRROR="https://tjhei.info/candi-mirror/ https://cecas.clemson.edu/dealii/mirror/"

Then candi should download all necessary packages directly from the websites of their repositories, instead of the mirror site that seems to be broken right now.

@koecher
Copy link
Contributor

koecher commented Oct 9, 2023

Hi Lukas,

for me it sounds like, that your operating system (platform) is detected as centos7, for that platform we have an additional request for cmake in the file platform/supported/centos7.platform

Just comment out the last line with once:cmake there.

PACKAGES="once:cmake ${PACKAGES}"

Best
Uwe

@LukasvdWiel
Copy link
Author

Thank you both for the replies!

@gassmoeller I removed the mirror as you suggested. Then everything installs accept ParMetis. We already have an existing install of ParMetis and Candi and Deal2 picked that up nicely. Users of Aspect which used Deal2 have confirmed everything functions according to their wishes

@koecher Ah, that is good to know! I thought an existing cmake was enough, and that candi.cfg was a sort of central dashboard. It is good to know that there are more files I have to keep in mind.

@flacombe1
Copy link

@gassmoeller

candi/candi.cfg

Line 27 in dc8e8d3
MIRROR="https://tjhei.info/candi-mirror/ https://cecas.clemson.edu/dealii/mirror/"

This seems to still be the solution for cmake-related dealii building failures, even if the mirror link isn't broken in the same way as the author of this post describes. I've been trying to compile aspect on a fresh Ubuntu 24.04.2 install for a few days now while using candi to install deal.ii-v9.6.1 and have had the final few failures stem from deal.ii's installation of cmake.
Just wanted to appreciate the old solution post and let you know it was still a relevant issue, as the lab hadn't seen things like this before either.

@bangerth
Copy link
Member

Just to put that here as well: Ob Ubuntu 24.04, the easiest way to install deal.II is to do apt install libdeal.ii-dev. This currently installs (I believe) version 9.5 plus all of the necessary dependencies. If you want 9.6, you can either use candi or simply the instructions in the README: https://www.dealii.org/current/readme.html The point is that in either case, you no longer need to worry about any of the dependencies, because they have already been installed on your system by apt install ....

@flacombe1
Copy link

@bangerth If you don't mind, where would that install to for use with cmake? I tried that route but it didn't update the $DEAL_II_DIR location and for the life of me I couldn't find anything but the .gz and copyright files in /usr/lib/libdeal.ii-dev/ (or some path like this).

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

5 participants