www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Linux Installation

reply he_the_great <jessekphillips+digitalmars gmail.com> writes:
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.
Sep 25 2006
next sibling parent reply Frank Benoit <keinfarbton nospam.xyz> writes:
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
Sep 25 2006
parent reply Sean Kelly <sean f4.ca> writes:
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
Sep 26 2006
parent he_the_great <jessekphillips+digitalmars gmail.com> writes:
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#Ins
allingDMDonLinuxX86 



 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.
Sep 26 2006
prev sibling parent reply Witold Baryluk <baryluk mpi.int.pl> writes:
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

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
Nov 29 2006
parent reply Witold Baryluk <baryluk mpi.int.pl> writes:
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Dnia Thu, 30 Nov 2006 04:50:40 +0100
Witold Baryluk <baryluk mpi.int.pl> napisa=B3/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
Dec 17 2006
parent reply Leandro Lucarella <llucarella integratech.com.ar> writes:
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
Dec 18 2006
parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
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)
Dec 18 2006