digitalmars.D.learn - Installing DMD on linux via snap
- matheus (21/21) May 18 2022 Hi,
- rikki cattermole (2/2) May 18 2022 Snap package source: https://github.com/dlang-snaps/dmd.snap/
- matheus (7/9) May 18 2022 I see... and even that I found my answer elsewhere, this problem
- Alain De Vos (4/4) May 18 2022 You could try on linux,
-
Jordi Sayol
(6/7)
May 18 2022
Hi, Even my problem is already solved, I'm passing this information because I don't know if you are aware. Yesterday I needed to install DMD on a fresh installed version of Linux, so since I was using Xubuntu I decided to use snap. sudo snap install dmd Then a warning appeared saying that because some permissions I should add --classic, OK I added and the installation proceeded. So I just ran DMD alone and I got the version and some info, but when I tried to compile a simple Hello world to check if everything was really fine, I was greeted with this: cc: No such file or directory --- errorlevel 255 Looking online I found my answer, this was probably because it was missing GCC, then I did: apt-get install build-essential And after that it worked, but I wonder... couldn't we get a hint about this after or even before installing DMD? I remember installing other applications and being asked to install additional libraries/packages. Couldn't we have the same? Matheus.
May 18 2022
Snap package source: https://github.com/dlang-snaps/dmd.snap/ Hasn't been updated in 3 years.
May 18 2022
On Wednesday, 18 May 2022 at 15:27:57 UTC, rikki cattermole wrote:Snap package source: https://github.com/dlang-snaps/dmd.snap/ Hasn't been updated in 3 years.I see... and even that I found my answer elsewhere, this problem was already discussed there: https://github.com/dlang-snaps/dmd.snap/issues (GCC isn't part of the dependencies). But there was no further progress. Matheus.
May 18 2022
You could try on linux, apt-cache search dmd apt-cache search ldc apt-cache search ldc2
May 18 2022
El 18/5/22 a les 17:24, matheus via Digitalmars-d-learn ha escrit:Yesterday I needed to install DMD on a fresh installed version of Linux, so since I was using Xubuntu I decided to use snap.<https://d-apt.sourceforge.io/> $ sudo wget https://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list $ sudo apt update --allow-insecure-repositories && sudo apt -y --allow-unauthenticated install --reinstall d-apt-keyring && sudo apt update then just install: $ sudo apt install dmd-compiler dmd-tools dmd-doc dub
May 18 2022