Linux
Welcome to c/linux!
Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!
Rules:
-
Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.
-
Be respectful: Treat fellow community members with respect and courtesy.
-
Quality over quantity: Share informative and thought-provoking content.
-
No spam or self-promotion: Avoid excessive self-promotion or spamming.
-
No NSFW adult content
-
Follow general lemmy guidelines.
view the rest of the comments
I'm surprised to encounter someone who uses a D compiler but doesn't know much about environment variables or unix shells.
Are you familiar with the
man
command, for reading the system's manual pages? When you get some time, you might want to runman bash
and read whatever sections are relevant to things you want to do, such as where the Invocation section talks about startup files.Creating a symlink (symbolic link) with a generic name to point at the version-specific directory name is a common way to do this. (For example,
ln -s dmd-2.107.1 dmd
) You could then add the symlink's path to your PATH environment variable, and replace the symlink whenever you want to point it at a different compiler version. Runman ln
for more info.I also suggest finding a beginner's guide to linux (or unix) when you get a chance. This stuff gets a lot easier once you learn the basics.
I use LDC2 on the Pi, since that's my only option there.