Installing D on MacOS X Leopard box

Duke Normandin dukeofperl at ml1.net
Tue May 25 07:30:44 PDT 2010


On Tue, 25 May 2010, Jacob Carlborg wrote:

> On 2010-05-25 15.55, Duke Normandin wrote:
> > On Tue, 25 May 2010, Jacob Carlborg wrote:
> >
> > > On 2010-05-25 03.56, Duke Normandin wrote:
> > > > Hello list...
> > > >
> > > > I'm new to D, but not programming. I've followed the instructions on
> > > >
> > > > http://www.digitalmars.com/d/2.0/dmd-osx.html
> > > >
> > > > However, I keep on getting this error:
> > > >
> > > > dnormandin@ ~/programming/dmd2/code
> > > > 04:38 pm>>   dmd -w firstApp.d
> > > > object.d: Error: module object is in file 'object.d' which cannot be
> > > > read
> > > > import path[0] = /etc/../../src/phobos
> > > > import path[1] = /etc/../../src/druntime/import
> > > >
> > > > My guess is that dmd.conf is hosed somehow. I haven't edited the
> > > > default one - I've got it living in /etc/.
> > >
> > > You can just unzip the zip file, add executable permission on
> > > dmd/osx/bin/dmd
> > > and use it just where it is.
> >
> > dnormandin@ ~/programming/dmd2/osx/bin
> > 07:53 am>>  ./dmd ../../code/firstApp.d
> > ld warning: in /usr/local/gnat/lib/libgcc_s.10.5.dylib, missing
> > required architecture i386 in file
> > ld warning: in
> > /usr/local/gnat/lib/gcc/x86_64-apple-darwin9.6.0/4.3.4/libgcc.a, file
> > is not of required architecture
> >
> > Now what?
>
> What have you done with your developer tools installation ?? It doesn't
> install anything in /usr/local by default. And by default all libraries are
> universal binaries so you shouldn't have that problem.
>
> It seems you have installed a new gcc version and you haven't build it the
> Apple way, that is building with support for universal builds.

I simply followed the installation instructions on:

http://www.digitalmars.com/d/2.0/dmd-osx.html

I also installed the XCode plugin for D. Could _that_ have hosed my
install?
-- 
duke


More information about the Digitalmars-d mailing list