add-debian-repo.sh is hard coded for amd64 architecture
Functionality to add/problem to solve
Hello, I have been experimenting with installing OpenFOAM2112 on arm cpus. I noticed that the add-debian-repo.sh
script (https://dl.openfoam.com/add-debian-repo.sh) is hardcoded for amd64 but it could easily be updated to support arm64.
Target audience
Target audience is anybody who is trying to install OpenFOAM on an ARM cpu (like AWS graviton).
Proposal
In the add-debian-repo.sh
script (https://dl.openfoam.com/add-debian-repo.sh), replace the hardcoded amd64
with $(dpkg --print-architecture)
For example, change:
echo "### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] ${repos_url} ${codeName} main" \
> "$apt_source_path"
to this
echo "### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=$(dpkg --print-architecture)] ${repos_url} ${codeName} main" \
> "$apt_source_path"
What does success look like, and how can we measure that?
After this update, those who are running on an arm architecture will have the correct repository and can easily install OpenFOAM.