www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Installing DMD on linux via snap

reply matheus <matheus gmail.com> writes:
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
next sibling parent reply rikki cattermole <rikki cattermole.co.nz> writes:
Snap package source: https://github.com/dlang-snaps/dmd.snap/

Hasn't been updated in 3 years.
May 18 2022
parent reply matheus <matheus gmail.com> writes:
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
parent Alain De Vos <devosalain ymail.com> writes:
You could try on linux,
apt-cache search dmd
apt-cache search ldc
apt-cache search ldc2
May 18 2022
prev sibling parent Jordi Sayol <g.sayol gmail.com> writes:
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