digitalmars.D - Installing D on MacOS X Leopard box
- Duke Normandin (14/14) May 24 2010 Hello list...
- Nick Sabalausky (11/26) May 25 2010 Welcome to D :)
- Duke Normandin (9/40) May 25 2010 I'm glad that in my noobiness, I've been able to contribute
- Michel Fortin (10/27) May 25 2010 If you want to avoid the hassle of installing things manually, you can
- Duke Normandin (8/30) May 25 2010 Have it already - thanks! However, _now_ I need a tutorial on how to
- Michel Fortin (15/28) May 25 2010 First, you don't *need* Xcode. The D for Xcode installer installs DMD
- Duke Normandin (6/32) May 25 2010 Never had a problem with gcc and all the other tools before I
- Jacob Carlborg (5/17) May 25 2010 You can just unzip the zip file, add executable permission on
- Duke Normandin (11/31) May 25 2010 dnormandin@ ~/programming/dmd2/osx/bin
- Jacob Carlborg (8/38) May 25 2010 What have you done with your developer tools installation ?? It doesn't
- Duke Normandin (7/47) May 25 2010 I simply followed the installation instructions on:
- Michel Fortin (12/25) May 25 2010 Noticed that both refer to files in /usr/local/gnat? "GNAT", isn't this
- Duke Normandin (6/27) May 25 2010 Nice catch! You must be French! ;) (like me..) Have to go out of town
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/. -- Duke
May 24 2010
"Duke Normandin" <dukeofperl ml1.net> wrote in message news:mailman.43.1274754397.24349.digitalmars-d puremagic.com...Hello list... I'm new to D, but not programming.Welcome to D :)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/. -- DukeLooks like those instructions need to be fixed. The file dmd.conf is expecting to live in the same directory as the DMD executable (ie, "{wherever you unzipped DMD}/osx/bin/" ). Deleting it out of /etc/ should work. Or, if you really wanted, you could edit it (it's a pretty simple text file) and change the paths to point to the right places (Just replace "% P%" with ""{wherever you unzipped DMD}/osx/bin/") BTW, these sorts of things are probably best asked over in "digitalmars.D.learn".
May 25 2010
On Tue, 25 May 2010, Nick Sabalausky wrote:"Duke Normandin" <dukeofperl ml1.net> wrote in message news:mailman.43.1274754397.24349.digitalmars-d puremagic.com...Thank you!Hello list... I'm new to D, but not programming.Welcome to D :)I'm glad that in my noobiness, I've been able to contribute _something_ ;)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/. -- DukeLooks like those instructions need to be fixed.The file dmd.conf is expecting to live in the same directory as the DMD executable (ie, "{wherever you unzipped DMD}/osx/bin/" ). Deleting it out of /etc/ should work. Or, if you really wanted, you could edit it (it's a pretty simple text file) and change the paths to point to the right places (Just replace "% P%" with ""{wherever you unzipped DMD}/osx/bin/")Kinda thought so - but thought I'd ask first, _before_ I started hacking and chopping.BTW, these sorts of things are probably best asked over in "digitalmars.D.learn".Thanks for the heads-up! -- Duke
May 25 2010
On 2010-05-24 21:56:55 -0400, Duke Normandin <dukeofperl ml1.net> said: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/.If you want to avoid the hassle of installing things manually, you can also use the D for Xcode installer which, in addition to installing a plugin for Xcode, downloads and installs the latest version of DMD 1 and 2. <http://michelf.com/projects/d-for-xcode/> -- Michel Fortin michel.fortin michelf.com http://michelf.com/
May 25 2010
On Tue, 25 May 2010, Michel Fortin wrote:On 2010-05-24 21:56:55 -0400, Duke Normandin <dukeofperl ml1.net> said:Have it already - thanks! However, _now_ I need a tutorial on how to use XCode, cuz I've been using emacs forever. I dabbled in ObjC for awhile, but never got anywhere with, because I spent most of my time keeping XCode happy. I don't want that to happen with my D experience. Do you know of a _real good_ XCode tutorial? -- DukeHello 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/.If you want to avoid the hassle of installing things manually, you can also use the D for Xcode installer which, in addition to installing a plugin for Xcode, downloads and installs the latest version of DMD 1 and 2. <http://michelf.com/projects/d-for-xcode/>
May 25 2010
On 2010-05-25 09:19:01 -0400, Duke Normandin <dukeofperl ml1.net> said:On Tue, 25 May 2010, Michel Fortin wrote:First, you don't *need* Xcode. The D for Xcode installer installs DMD so it is usable on the command line. You shouldn't have any problem using emacs, make, and whatever else you may like. If the 'dmd' command doesn't work after install, then it's probably something else outside of the DMD installation that is causing problems. Second, most Xcode tutorials focus on Cocoa and writing GUI applications. I'm not sure what you want to know, but personally what I find quite useful to be aware of is how the build system works. If that's what you want to learn, perhaps this is what you should read: <http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/XcodeBuildSystem/> -- Michel Fortin michel.fortin michelf.com http://michelf.com/If you want to avoid the hassle of installing things manually, you can also use the D for Xcode installer which, in addition to installing a plugin for Xcode, downloads and installs the latest version of DMD 1 and 2. <http://michelf.com/projects/d-for-xcode/>Have it already - thanks! However, _now_ I need a tutorial on how to use XCode, cuz I've been using emacs forever. I dabbled in ObjC for awhile, but never got anywhere with, because I spent most of my time keeping XCode happy. I don't want that to happen with my D experience. Do you know of a _real good_ XCode tutorial?
May 25 2010
On Tue, 25 May 2010, Michel Fortin wrote:On 2010-05-25 09:19:01 -0400, Duke Normandin <dukeofperl ml1.net> said:Never had a problem with gcc and all the other tools before I installed D...On Tue, 25 May 2010, Michel Fortin wrote:First, you don't *need* Xcode. The D for Xcode installer installs DMD so it is usable on the command line. You shouldn't have any problem using emacs, make, and whatever else you may like. If the 'dmd' command doesn't work after install, then it's probably something else outside of the DMD installation that is causing problems.If you want to avoid the hassle of installing things manually, you can also use the D for Xcode installer which, in addition to installing a plugin for Xcode, downloads and installs the latest version of DMD 1 and 2. <http://michelf.com/projects/d-for-xcode/>Have it already - thanks! However, _now_ I need a tutorial on how to use XCode, cuz I've been using emacs forever. I dabbled in ObjC for awhile, but never got anywhere with, because I spent most of my time keeping XCode happy. I don't want that to happen with my D experience. Do you know of a _real good_ XCode tutorial?Second, most Xcode tutorials focus on Cocoa and writing GUI applications. I'm not sure what you want to know, but personally what I find quite useful to be aware of is how the build system works. If that's what you want to learn, perhaps this is what you should read: <http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/XcodeBuildSystem/>That URL is exactly what I've been looking for. Thanks. -- duke
May 25 2010
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. -- /Jacob Carlborg
May 25 2010
On Tue, 25 May 2010, Jacob Carlborg wrote:On 2010-05-25 03.56, Duke Normandin wrote: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? -- dukeHello 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.
May 25 2010
On 2010-05-25 15.55, Duke Normandin wrote:On Tue, 25 May 2010, Jacob Carlborg wrote: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. -- /Jacob CarlborgOn 2010-05-25 03.56, Duke Normandin wrote: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?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.
May 25 2010
On Tue, 25 May 2010, Jacob Carlborg wrote:On 2010-05-25 15.55, Duke Normandin wrote: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? -- dukeOn Tue, 25 May 2010, Jacob Carlborg wrote: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.On 2010-05-25 03.56, Duke Normandin wrote: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?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.
May 25 2010
On 2010-05-25 10:30:44 -0400, Duke Normandin <dukeofperl ml1.net> said: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?Unlikely. The two errors you wrote about:Noticed that both refer to files in /usr/local/gnat? "GNAT", isn't this a GCC-based ADA compiler? My guess is that some of you environment variables have the "/usr/local/gnat" path before the standard system path, and "gnat" seems to include single-architecture (x86_64) copies of the GCC libraries. If that's the case, GCC running in 64 bit will work using these libraries, but since DMD is 32 bit it won't. -- Michel Fortin michel.fortin michelf.com http://michelf.com/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
May 25 2010
On Tue, 25 May 2010, Michel Fortin wrote:On 2010-05-25 10:30:44 -0400, Duke Normandin <dukeofperl ml1.net> said:Nice catch! You must be French! ;) (like me..) Have to go out of town for a few days, so I'll get back to this stuff at the end of the week. L8r.. -- dukeI 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?Unlikely. The two errors you wrote about:Noticed that both refer to files in /usr/local/gnat? "GNAT", isn't this a GCC-based ADA compiler? My guess is that some of you environment variables have the "/usr/local/gnat" path before the standard system path, and "gnat" seems to include single-architecture (x86_64) copies of the GCC libraries. If that's the case, GCC running in 64 bit will work using these libraries, but since DMD is 32 bit it won't.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
May 25 2010