Thread overview
Linux Installation
Sep 26, 2006
he_the_great
Sep 26, 2006
Frank Benoit
Sep 26, 2006
Sean Kelly
Sep 26, 2006
he_the_great
Re: Linux Installation - Debian
Nov 30, 2006
Witold Baryluk
Dec 17, 2006
Witold Baryluk
Dec 18, 2006
Leandro Lucarella
September 26, 2006
I've run into a problem with my latest attempt to install D. I'm using the second method from the instructions at

http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/InstallingDCompiler#InstallingDMDonLinuxX86

I this method has worked for me in the past, but now I'm getting a "object.d: module object cannot read file 'object.d'" message when I attempt a compilation.
September 26, 2006
he_the_great schrieb:
> I've run into a problem with my latest attempt to install D. I'm using the second method from the instructions at
> 
> http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/InstallingDCompiler#InstallingDMDonLinuxX86
> 
> 
> I this method has worked for me in the past, but now I'm getting a "object.d: module object cannot read file 'object.d'" message when I attempt a compilation.

The instructions seem fine to me. Nevertheless the error messages says, that the dmd compiler does not find the phobos library source. That usually means that in /etc/dmd.conf the DFLAGS=-I<path> does not point to the right location.

To verify, you can also give this include path directly in the dmd call,
e.g.:
dmd test.d -I<path>
dmd test.d -I/usr/local/lib/phobos
September 26, 2006
Frank Benoit wrote:
> he_the_great schrieb:
>> I've run into a problem with my latest attempt to install D. I'm using
>> the second method from the instructions at
>>
>> http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/InstallingDCompiler#InstallingDMDonLinuxX86
>>
>>
>> I this method has worked for me in the past, but now I'm getting a
>> "object.d: module object cannot read file 'object.d'" message when I
>> attempt a compilation.
> 
> The instructions seem fine to me. Nevertheless the error messages says,
> that the dmd compiler does not find the phobos library source. That
> usually means that in /etc/dmd.conf the DFLAGS=-I<path> does not point
> to the right location.

For what it's worth, I've noticed that the use of double quotes in dmd.conf is a risky venture.  If you have any quotes that are unnecessary, remove them.


Sean
September 26, 2006
Sean Kelly wrote:
> Frank Benoit wrote:
>> he_the_great schrieb:
>>> I've run into a problem with my latest attempt to install D. I'm using
>>> the second method from the instructions at
>>>
>>> http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/InstallingDCompiler#InstallingDMDonLinuxX86 
>>>
>>>
>>>
>>> I this method has worked for me in the past, but now I'm getting a
>>> "object.d: module object cannot read file 'object.d'" message when I
>>> attempt a compilation.
>>
>> The instructions seem fine to me. Nevertheless the error messages says,
>> that the dmd compiler does not find the phobos library source. That
>> usually means that in /etc/dmd.conf the DFLAGS=-I<path> does not point
>> to the right location.
> 
> For what it's worth, I've noticed that the use of double quotes in dmd.conf is a risky venture.  If you have any quotes that are unnecessary, remove them.
> 
> 
> Sean

Thanks, I didn't have a /etc/dmd.conf for some reason.
November 30, 2006
Hi.

If any body interested in simple instalation of DMD on Debian GNU/Linux.

Try this.

http://smp.if.uj.edu.pl/~baryluk/d/dmddeb/dmd_0.175_i386.deb

Instalation:

apt-get install wget unzip debianutils gcc findutils tofrodos libstdc++5

wget \ http://smp.if.uj.edu.pl/~baryluk/d/dmddeb/dmd-nonfree_0.175_i386.deb

dpkg -i ./dmd-nonfree_0.175_i386.deb

That all :)

If you want to modify something later look at
/etc/dmd.conf
/usr/lib/dmd/src/phobos/
/usr/share/doc/dmd-nonfree/

Binaries will be places in /usr/bin/ (e.g. /usr/bin/dmd)
Library in /usr/lib (e.g. /usr/lib/libphobos.a)

! This deb package have no binary files, only installation script. !

Note: Network connection required for
download when installing. Instalation can fail especialy if you have
installed dmd in another way - not tested well, reports about discovered
bugs please send to me.

In preparation: private deb respository, and eventually oficial upload to debian.

Or eventually build package with binaries included and host in
officialy on http://digitalmars.com/ :)
Walter what are you thinking about this idea?

--
Witold Baryluk
MAIL: baryluk@smp.if.uj.edu.pl, baryluk@mpi.int.pl
JID: movax@jabber.autocom.pl


December 17, 2006
Dnia Thu, 30 Nov 2006 04:50:40 +0100
Witold Baryluk <baryluk@mpi.int.pl> napisał/a:

> Hi.
>
> If any body interested in simple instalation of DMD on Debian GNU/Linux.
>

You can use my private repository.

Add this line
deb http://smp.if.uj.edu.pl/~baryluk/d/debian/ unstable contrib
to your /etc/apt/sources.list file.

Run apt-get update

And apt-get install dmd-nonfree.

You will need to aprove notsigned package.

>
> That all :)
>
> If you want to modify something later look at
> /etc/dmd.conf
> /usr/lib/dmd/src/phobos/
> /usr/share/doc/dmd-nonfree/
>
> Binaries will be places in /usr/bin/ (e.g. /usr/bin/dmd)
> Library in /usr/lib (e.g. /usr/lib/libphobos.a)
>
> ! This deb package have no binary files, only installation script. !
>
> Note: Network connection required for
> download when installing. Instalation can fail especialy if you have
> installed dmd in another way - not tested well, reports about
> discovered bugs please send to me.

If anyone wants i can add also gdc to this repository,
or some d libraries.

--
Witold Baryluk
MAIL: baryluk@smp.if.uj.edu.pl, baryluk@mpi.int.pl
JID: movax@jabber.autocom.pl


December 18, 2006
Witold Baryluk escribió:
> If anyone wants i can add also gdc to this repository,
> or some d libraries.

GDC Debian packages would be great!

-- 
Leandro Lucarella
Integratech S.A.
4571-5252
December 18, 2006
Leandro Lucarella wrote:

>> If anyone wants i can add also gdc to this repository,
>> or some d libraries.
> 
> GDC Debian packages would be great!

I'm building a package for Ubuntu. Probably NOT going
to use the regular system gcc-4.0 package*, but just
something with C/C++/D and the "vanilla" tarballs ?

Basically just configure as i486-linux-gnu-gcc-4.0
or powerpc-linux-gnu-gcc-4.0, and then package it
up with all required debian/ files and information ?

Installing from the official GDC tarballs or building
it locally should also work OK in the meantime, though.
Or you can convert an RPM package using "alien" tool ?

Not sure how the GDC-in-Debian-GCC lobbying is going...

--anders

* Mostly because I don't want to dig through the debian
  build stuff for it, stopped counting at 100K (!) lines.
  (from http://packages.ubuntu.com/dapper/devel/gcc-4.0)