Re: Let dmd or ldc be easy to setup on Ubuntu

2015-12-22 Thread FrankLike via Digitalmars-d-learn
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.


Re: Let dmd or ldc be easy to setup on Ubuntu

2015-12-22 Thread FrankLike via Digitalmars-d-learn

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.


Re: Let dmd or ldc be easy to setup on Ubuntu

2015-12-22 Thread Jordi Sayol via Digitalmars-d-learn
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/


Re: Let dmd or ldc be easy to setup on Ubuntu

2015-12-22 Thread Rikki Cattermole via Digitalmars-d-learn

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.


Let dmd or ldc be easy to setup on Ubuntu

2015-12-22 Thread FrankLike via Digitalmars-d-learn

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.


Re: Let dmd or ldc be easy to setup on Ubuntu

2015-12-22 Thread Rikki Cattermole via Digitalmars-d-learn

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/


Re: Let dmd or ldc be easy to setup on Ubuntu

2015-12-22 Thread FrankLike via Digitalmars-d-learn
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.




Re: Let dmd or ldc be easy to setup on Ubuntu

2015-12-22 Thread Jordi Sayol via Digitalmars-d-learn
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