www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - LDC2 install in Win / WSL2 / Ubuntu

reply Paul <phshaffer gmail.com> writes:
Pardon my elementary question.  I'm trying to install the latest 
LDC on ubuntu.  Not sure what exactly I need to do.  sudo apt 
get/install ldc2 doesn't work.  Downloaded the binary 
ldc2-1.35.0-linux-x86_64.tar.xz to Windows.

Thanks for any assistance.
Oct 19 2023
next sibling parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Thursday, 19 October 2023 at 13:27:58 UTC, Paul wrote:
 Pardon my elementary question.  I'm trying to install the 
 latest LDC on ubuntu.  Not sure what exactly I need to do.  
 sudo apt get/install ldc2 doesn't work.  Downloaded the binary 
 ldc2-1.35.0-linux-x86_64.tar.xz to Windows.

 Thanks for any assistance.
Just run this and follow the instructions: curl -fsS https://dlang.org/install.sh | bash -s ldc
Oct 19 2023
parent Paul <phshaffer gmail.com> writes:
On Thursday, 19 October 2023 at 13:54:45 UTC, Imperatorn wrote:
 On Thursday, 19 October 2023 at 13:27:58 UTC, Paul wrote:
 Pardon my elementary question.  I'm trying to install the 
 latest LDC on ubuntu.  Not sure what exactly I need to do.  
 sudo apt get/install ldc2 doesn't work.  Downloaded the binary 
 ldc2-1.35.0-linux-x86_64.tar.xz to Windows.

 Thanks for any assistance.
Just run this and follow the instructions: curl -fsS https://dlang.org/install.sh | bash -s ldc
Thanks Imperatorn!
Oct 19 2023
prev sibling next sibling parent Paul <phshaffer gmail.com> writes:
On Thursday, 19 October 2023 at 13:27:58 UTC, Paul wrote:
 Pardon my elementary question.  I'm trying to install the 
 latest LDC on ubuntu.  Not sure what exactly I need to do.  
 sudo apt get/install ldc2 doesn't work.  Downloaded the binary 
 ldc2-1.35.0-linux-x86_64.tar.xz to Windows.

 Thanks for any assistance.
mkdir -p ~/dlang && wget https://dlang.org/install.sh -O ~/dlang/install.sh --2023-10-19 10:04:27-- https://dlang.org/install.sh Resolving dlang.org (dlang.org)... 162.217.114.56, 2607:fc50:1:ff02::5:0 Connecting to dlang.org (dlang.org)|162.217.114.56|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 37956 (37K) [application/x-sh] Saving to: ‘/home/lu/dlang/install.sh’ /home/lu/dlang/install.sh 100%[===========================================>] 37.07K --.-KB/s in 0.04s 2023-10-19 10:04:27 (865 KB/s) - ‘/home/lu/dlang/install.sh’ saved [37956/37956] lu DESKTOP-AOB2J65:~$ ~/dlang/install.sh install ldc -bash: /home/lu/dlang/install.sh: Permission denied lu DESKTOP-AOB2J65:~$ sudo ~/dlang/install.sh install ldc sudo: /home/lu/dlang/install.sh: command not found lu DESKTOP-AOB2J65:~$ lu DESKTOP-AOB2J65:~$ ./dlang/install.sh install ldc -bash: ./dlang/install.sh: Permission denied lu DESKTOP-AOB2J65:~$ sudo ./dlang/install.sh install ldc sudo: ./dlang/install.sh: command not found lu DESKTOP-AOB2J65:~$
Oct 19 2023
prev sibling parent bachmeier <no spam.net> writes:
On Thursday, 19 October 2023 at 13:27:58 UTC, Paul wrote:
 Pardon my elementary question.  I'm trying to install the 
 latest LDC on ubuntu.  Not sure what exactly I need to do.  
 sudo apt get/install ldc2 doesn't work.  Downloaded the binary 
 ldc2-1.35.0-linux-x86_64.tar.xz to Windows.

 Thanks for any assistance.
sudo apt install ldc (not ldc2) And yes, it works, because I have a Windows 11 laptop running ldc in WSL.
Oct 20 2023