www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Let dmd or ldc be easy to setup on Ubuntu

reply FrankLike <1150015857 qq.com> writes:
Now,we can't setup dmd or ldc like this:
  sudo apt-get install dmd
  sudo apt-get install ldc2

If I set 'The Installation Source' is :
deb http://downloads.dlang.org/releases/2015/ main

But it's error,why?

Thank you.
Dec 22 2015
parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
On 23/12/15 3:09 AM, FrankLike wrote:
 Now,we can't setup dmd or ldc like this:
   sudo apt-get install dmd
   sudo apt-get install ldc2

 If I set 'The Installation Source' is :
 deb http://downloads.dlang.org/releases/2015/ main

 But it's error,why?

 Thank you.
dlang.org does not host a apt repository. There is one on sourceforge for just this however. http://d-apt.sourceforge.net/
Dec 22 2015
parent reply FrankLike <1150015857 qq.com> writes:
On Tuesday, 22 December 2015 at 14:11:29 UTC, Rikki Cattermole 
wrote:
 On 23/12/15 3:09 AM, FrankLike wrote:
 Now,we can't setup dmd or ldc like this:
   sudo apt-get install dmd
   sudo apt-get install ldc2

 If I set 'The Installation Source' is :
 deb http://downloads.dlang.org/releases/2015/ main

 But it's error,why?

 Thank you.
dlang.org does not host a apt repository. There is one on sourceforge for just this however. http://d-apt.sourceforge.net/
deb http://d-apt.sourceforge.net/ trusty main 'The Installation Source' is ok,but in Terminal it's error. Do you have some detail about 'The Installation Source' for dmd or ldc? Thank you.
Dec 22 2015
parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
On 23/12/15 3:32 AM, FrankLike wrote:
 On Tuesday, 22 December 2015 at 14:11:29 UTC, Rikki Cattermole wrote:
 On 23/12/15 3:09 AM, FrankLike wrote:
 Now,we can't setup dmd or ldc like this:
   sudo apt-get install dmd
   sudo apt-get install ldc2

 If I set 'The Installation Source' is :
 deb http://downloads.dlang.org/releases/2015/ main

 But it's error,why?

 Thank you.
dlang.org does not host a apt repository. There is one on sourceforge for just this however. http://d-apt.sourceforge.net/
deb http://d-apt.sourceforge.net/ trusty main 'The Installation Source' is ok,but in Terminal it's error. Do you have some detail about 'The Installation Source' for dmd or ldc? Thank you.
I'm confused. The commands listed e.g. $ sudo wget http://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list $ sudo apt-get update && sudo apt-get -y --allow-unauthenticated install --reinstall d-apt-keyring && sudo apt-get update Should work. If it does not, please post output.
Dec 22 2015
parent reply FrankLike <1150015857 qq.com> writes:
On Tuesday, 22 December 2015 at 14:37:21 UTC, Rikki Cattermole 
wrote:
 I'm confused.
 The commands listed e.g.

 $ sudo wget 
 http://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list -O
/etc/apt/sources.list.d/d-apt.list
 $ sudo apt-get update && sudo apt-get -y 
 --allow-unauthenticated install --reinstall d-apt-keyring && 
 sudo apt-get update

 Should work.
 If it does not, please post output.
Sorry, it works,but can't get any useful info.
Dec 22 2015
parent reply FrankLike <1150015857 qq.com> writes:
On Tuesday, 22 December 2015 at 15:08:20 UTC, FrankLike wrote:
 On Tuesday, 22 December 2015 at 14:37:21 UTC, Rikki Cattermole 
 wrote:
 I'm confused.
 The commands listed e.g.

 $ sudo wget 
 http://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list -O
/etc/apt/sources.list.d/d-apt.list
 $ sudo apt-get update && sudo apt-get -y 
 --allow-unauthenticated install --reinstall d-apt-keyring && 
 sudo apt-get update

 Should work.
 If it does not, please post output.
Sorry, it works,but can't get any useful info.
sudo apt-get install dmd ← it's error. Now I setup by double click the 'dmd_2.069.2-0-amd64.deb' file,and setup it. then sudo apt-get install dub it's ok.
Dec 22 2015
next sibling parent Jordi Sayol via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
El 22/12/15 a les 16:38, FrankLike via Digitalmars-d-learn ha escrit:
 sudo apt-get install dmd ← it's error.
dmd_2.069.2-0-amd64.deb from http://downloads.dlang.org/ is an all-in-one deb package, containing all the tools and libraries for each release. "d-lang" splits it in few deb packages: dmd-bin (compiler and other executable files) dmd-doc (documentation, man pages and examples) libphobos2-69 (shared library) libphobos2-dev (static library, symlink to shared library, module sources and pkg-config files) So if you want to install dmd compiler, just type: $ sudo apt-get install dmd-bin Regards, Jordi
Dec 22 2015
prev sibling parent Jordi Sayol via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
El 22/12/15 a les 18:28, Jordi Sayol via Digitalmars-d-learn ha escrit:
 "d-lang" splits it in few deb packages:
s/d-lang/d-apt/
Dec 22 2015