www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - installation on Win32

reply "Phlip" <phlip_cpp yahoo.com> writes:
Hi.

I don't have a 20-year resume covering thousands of computer science topics,
from fractals to web sites. I just fell off a turnip truck next to a laptop.

How does someone as stupid as me install the D Language on Win32?

 cd c:\
 unzip dm.zip
 unzip dmc.zip

add c:\dm\bin to the PATH, then get into dmd/samples/d, and:

 dmc hello.d

That produces:
    Error: Error reading file 'object.d'

All the Google citations for this error message cite Linux. What do I tweak?

-- 
  Phlip
  http://www.c2.com/cgi/wiki?ZeekLand
Apr 29 2005
next sibling parent jicman <jicman_member pathlink.com> writes:
Phlip says...
Hi.

I don't have a 20-year resume covering thousands of computer science topics,
from fractals to web sites. I just fell off a turnip truck next to a laptop.

How does someone as stupid as me install the D Language on Win32?

 cd c:\
 unzip dm.zip
 unzip dmc.zip

add c:\dm\bin to the PATH, then get into dmd/samples/d, and:

 dmc hello.d

Not that I am not smarter or anything, but I would instead do dmd. You probably didn't install the d compiler, since you have dmc instead of dmd. I would suggest for you to take a look at a litter utility called build, http://www.dsource.org/projects/build/ It will save you so many steps and grieves! But I think you installed the c compiler (dmC) instead of the D compiler (dmD). I hope that helps. jic
That produces:
    Error: Error reading file 'object.d'

All the Google citations for this error message cite Linux. What do I tweak?

-- 
  Phlip
  http://www.c2.com/cgi/wiki?ZeekLand

Apr 29 2005
prev sibling next sibling parent reply David L. Davis <SpottedTiger yahoo.com> writes:
In article <d4u7i0$1m9u$1 digitaldaemon.com>, Phlip says...
Hi.

I don't have a 20-year resume covering thousands of computer science topics,
from fractals to web sites. I just fell off a turnip truck next to a laptop.

How does someone as stupid as me install the D Language on Win32?

 cd c:\
 unzip dm.zip
 unzip dmc.zip

add c:\dm\bin to the PATH, then get into dmd/samples/d, and:

 dmc hello.d

That produces:
    Error: Error reading file 'object.d'

All the Google citations for this error message cite Linux. What do I tweak?

-- 
  Phlip
  http://www.c2.com/cgi/wiki?ZeekLand

Phlip, check out steps 1 thru 4 on the left-hand menu on my D web site...I think that may help you out. MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html ;But for a quick look see, you can do the following: REM start the WinXP command window cmd.exe REM move the the root directory of C: cd C:\ REM should unzip to C:\dm unzip dm.zip REM should unzip to C:\dmd unzip dmd.zip REM change the directory to D cd dmd REM This temporary sets up D's directories set path=%path%+"C:\dm\bin;C:\dmd\bin;" REM move into the sample\d directory cd samples\d REM compile the hello.d exmple dmd hello.d REM run hello.exe hello Hope this helps you out, David L. ------------------------------------------------------------------- "Dare to reach for the Stars...Dare to Dream, Build, and Achieve!" ------------------------------------------------------------------- MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html
Apr 29 2005
next sibling parent reply "Phlip" <phlip_cpp yahoo.com> writes:
David L. Davis wrote:

 MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html

Dude, just today I was thinking to myself I had not seen anything incredibly sick in a very long time. Then I hit this: http://spottedtiger.tripod.com/D_Language/D_Whats_Needed_XP.html Folks, that web page contains a screen-shot of another web page (frame and all), with anotations Photoshopped into it. I prostrate myself in honor. -- Phlip http://www.c2.com/cgi/wiki?ZeekLand
Apr 29 2005
parent reply David L. Davis <SpottedTiger yahoo.com> writes:
In article <d4ufva$1sq3$1 digitaldaemon.com>, Phlip says...
David L. Davis wrote:

 MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html

Dude, just today I was thinking to myself I had not seen anything incredibly sick in a very long time. Then I hit this: http://spottedtiger.tripod.com/D_Language/D_Whats_Needed_XP.html Folks, that web page contains a screen-shot of another web page (frame and all), with anotations Photoshopped into it. I prostrate myself in honor. -- Phlip http://www.c2.com/cgi/wiki?ZeekLand

Well, I'll be damned!! ...you just can't help some people. :( David L. ------------------------------------------------------------------- "Dare to reach for the Stars...Dare to Dream, Build, and Achieve!" ------------------------------------------------------------------- MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html
Apr 29 2005
parent "Phlip" <phlip_cpp yahoo.com> writes:
David L. Davis wrote:

I prostrate myself in honor.


 Well, I'll be damned!! ...you just can't help some people. :(

Sorry to be obfuscating. I meant it's a good thing. Just ... twisted. ;-) -- Phlip http://www.c2.com/cgi/wiki?ZeekLand
Apr 29 2005
prev sibling parent reply "Unknown W. Brackets" <unknown simplemachines.org> writes:
I'm afraid that should be:

set path=%path%;C:\dm\bin;C:\dmd\bin;

This ain't bash or perl :P.

-[Unknown]


  REM This temporary sets up D's directories
 set path=%path%+"C:\dm\bin;C:\dmd\bin;"

Apr 29 2005
next sibling parent "Phlip" <phlip_cpp yahoo.com> writes:
Unknown W. Brackets wrote:

 I'm afraid that should be:

 set path=%path%;C:\dm\bin;C:\dmd\bin;

Okay, add that to the _short_ directions - the ones for people who remember 8-inch floppies. And thanks, jicman, but both dmd and dmc had the same issue. Now back to David: http://spottedtiger.tripod.com/D_Language/D_Compile_1st_Program_XP.html Noop. I still get the aforementioned error message, all my paths are correct, and my WinXP environment is a soup of various CygWin and MS compilers. D depends not on INCLUDE, right? Noop: C:\dmd\samples\d>set INCLUDE= C:\dmd\samples\d>dmd hello.d Error: Error reading file 'object.d' Now what? go dumpster diving for an old Pentium to install Linux on? don't tempt me! -- Phlip http://www.c2.com/cgi/wiki?ZeekLand
Apr 29 2005
prev sibling parent David L. Davis <SpottedTiger yahoo.com> writes:
In article <d4ufve$1sm6$1 digitaldaemon.com>, Unknown W. Brackets says...
I'm afraid that should be:

set path=%path%;C:\dm\bin;C:\dmd\bin;

This ain't bash or perl :P.

-[Unknown]


  REM This temporary sets up D's directories
 set path=%path%+"C:\dm\bin;C:\dmd\bin;"


Yeah you're right. Thanks for pointing it out. David L. ------------------------------------------------------------------- "Dare to reach for the Stars...Dare to Dream, Build, and Achieve!" ------------------------------------------------------------------- MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html
Apr 29 2005
prev sibling next sibling parent reply Derek Parnell <derek psych.ward> writes:
On Fri, 29 Apr 2005 14:04:49 -0700, Phlip wrote:

 Hi.
 
 I don't have a 20-year resume covering thousands of computer science topics,
 from fractals to web sites. I just fell off a turnip truck next to a laptop.

That's okay. Can I go through some confirmations with you then?
 How does someone as stupid as me install the D Language on Win32?
 
  cd c:\
  unzip dm.zip
  unzip dmc.zip

I guess you left out from your message that you also unzipped the 'dmd.zip'? I only ask because dmc is the C++ compiler and dmd is the D compiler. You need both to compile D programs. Anyhow did that create the folders correctly? In other words, do you now have a C:\dm and a c:\dmd folders and do they have all their sub folders looking good? In the c:\dmd folder there should be a bin, html, lib, man, samples, and src sub-folder.
 add c:\dm\bin to the PATH, then get into dmd/samples/d, and:

You need to add two entries to the PATH. c:\dm\bin *and* c:\dmd\bin I don't know which Windows version you have so I'd reboot just to make sure that the additions to PATH took effect. And then after rebooting, type in PATH on the command line to verify that your changes are there.
  dmc hello.d

We *are* talking about the D language, no? 'dmc' is the C++ compiler. To invoke D you need to enter "dmd hello.d"
 That produces:
     Error: Error reading file 'object.d'

I get a totally other set of error messages ... ------------------------------------------------ F:\dmd\samples\d>dmc hello.d f:\dmd\bin\..\..\dm\bin\link.exe hello,,,user32+kernel32/noi; link hello,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved phobos.lib Warning 2: File Not Found phobos.lib OPTLINK : Warning 23: No Stack hello.obj(hello) Error 42: Symbol Undefined _main hello.obj(hello) Error 42: Symbol Undefined __acrtused_con OPTLINK : Warning 134: No Start Address --- errorlevel 2 ------------------------------------------------ But when I use the D language compiler I get ... ------------------------------------------------ F:\dmd\samples\d>dmd hello.d f:\dmd\bin\..\..\dm\bin\link.exe hello,,,user32+kernel32/noi; ------------------------------------------------ No errors. In order to get the error you describe, I renamed "\dmd\src\" to "\dmd\srcx\" in order to hide it from the compiler, then reran the command line. I then got ... -------------------------------------------------- F:\dmd\samples\d>dmc hello.d Error: Error reading file 'object.d' --- errorlevel 1 -------------------------------------------------- So I guess that somehow, when you unzipped the dmd.zip file, you managed to place the \dmd\src\ folder somewhere else or maybe you didn't unzip that folder, or maybe its empty, or maybe just \dmd\src\phobos\object.d is missing...but whatever, I'm guessing that it isn't where DMD is expecting it to be. -- Derek Parnell Melbourne, Australia http://www.dsource.org/projects/build 30/04/2005 11:03:35 AM
Apr 29 2005
parent reply "Phlip" <phlip_cpp yahoo.com> writes:
Derek Parnell wrote:

  cd c:\
  unzip dm.zip
  unzip dmc.zip

I guess you left out from your message that you also unzipped the 'dmd.zip'? I only ask because dmc is the C++ compiler and dmd is the D compiler. You need both to compile D programs.

Yes. I left out the d.
  dmc hello.d

We *are* talking about the D language, no? 'dmc' is the C++ compiler. To invoke D you need to enter "dmd hello.d"

Man, I gotta lay off that crack pipe, huh? Between all my typos, dmd hello.d _also_ produced that error message.
 If you have the object.d file located where DMD.exe would typically
 expect it, are you missing this file: \dmd\bin\sc.ini?
 jcc7

Jah: /cygdrive/c/dmd/bin> cat sc.ini [Version] version=7.51 Build 020 [Environment] LIB="% P%\..\lib";\dm\lib DFLAGS="-I% P%\..\src\phobos" LINKCMD=% P%\..\..\dm\bin\link.exe /cygdrive/c/dmd/bin> (Note I'm using that commie pinko "CygWin", not CMD.EXE like a real, god-fearing 'Merikin. Deal.)
 Bingo! Yes this is the problem, I'm sure. And its caused by not having
 c:\dmd\bin in the PATH symbol. Well, that's my guess anyway ;-)

PATH

Bpl;c:\ruby2\bin;C:\Perl\bin\;C:\WINDOWS\sys tem32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\d oxygen\bin;C:\mophun\bin;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Common Files\Compuware;C:\Program Fi les\Compuware\TestPartner;C:\Program Files\Compuware\TestPartner\AppExtDlls;c:\ruby\bin;C:\dm\bin;C:\dmd\bin Maybe I should start either using or yanking some of that stuff... Now, one more experiment: /cygdrive/c/dmd/samples/d> cp ../../src/phobos/object.d . /cygdrive/c/dmd/samples/d> cp ../../lib/phobos.lib . /cygdrive/c/dmd/samples/d> dmd hello.d link hello,,,user32+kernel32/noi; /cygdrive/c/dmd/samples/d> ./hello.exe hello world args.length = 1 args[0] = 'c:\dmd\samples\d\hello.exe' There ya go. Don't worry about explaining to me why copying the includers and libbers into every working folder might not be workable... -- Phlip http://www.c2.com/cgi/wiki?ZeekLand
Apr 29 2005
next sibling parent J C Calvarese <jcc7 cox.net> writes:
Phlip wrote:
 Derek Parnell wrote:
 

 (Note I'm using that commie pinko "CygWin", not CMD.EXE like a real,
 god-fearing 'Merikin. Deal.)

If you're that into open source, you might want to just go all out and use Linux exclusively. ;) Seriously, though, I suspect your problem is related to cygwin. It's just a guess, and I'm no expert in cygwin so I probably can't help with that. Maybe someone (anyone who has some experience in cygwin) will chime in with a helpful suggestion.
 PATH=C:\PROGRA~1\Borland\CBUILD~1\Bin;C:\PROGRA~1\Borland\CBUILD~1\Projects\
 Bpl;c:\ruby2\bin;C:\Perl\bin\;C:\WINDOWS\sys
 tem32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft Visual
 Studio\Common\MSDev98\Bin;C:\Program Files\d
 oxygen\bin;C:\mophun\bin;C:\Program Files\Common
 Files\GTK\2.0\bin;C:\Program Files\Common Files\Compuware;C:\Program Fi
 les\Compuware\TestPartner;C:\Program
 Files\Compuware\TestPartner\AppExtDlls;c:\ruby\bin;C:\dm\bin;C:\dmd\bin
 
 Maybe I should start either using or yanking some of that stuff...

I don't know. I've seen worst on my machine. I should warn you though that if you try running MAKE for a D library, it'll probably pick the wrong MAKE (such as Borland's MAKE) instead of the Digital Mars one and fail. The solution is either change the order in the path so that C:\dm\bin is found first or reset PATH (PATH=C:\dm\bin) right before running MAKE.
 Now, one more experiment:
 
 /cygdrive/c/dmd/samples/d> cp ../../src/phobos/object.d .
 
 /cygdrive/c/dmd/samples/d> cp ../../lib/phobos.lib .
 
 /cygdrive/c/dmd/samples/d> dmd hello.d
 link hello,,,user32+kernel32/noi;
 
 /cygdrive/c/dmd/samples/d> ./hello.exe
 hello world
 args.length = 1
 args[0] = 'c:\dmd\samples\d\hello.exe'
 
 There ya go. Don't worry about explaining to me why copying the includers
 and libbers into every working folder might not be workable...

I guess it's workable, but I don't think I'd have the patience. Glad to see you got it to work somehow. -- jcc7 http://jcc_7.tripod.com/d/
Apr 29 2005
prev sibling next sibling parent reply Derek Parnell <derek psych.ward> writes:
On Fri, 29 Apr 2005 19:41:01 -0700, Phlip wrote:

 Derek Parnell wrote:
 
  cd c:\
  unzip dm.zip
  unzip dmc.zip

I guess you left out from your message that you also unzipped the 'dmd.zip'? I only ask because dmc is the C++ compiler and dmd is the D compiler. You need both to compile D programs.

Yes. I left out the d.
  dmc hello.d

We *are* talking about the D language, no? 'dmc' is the C++ compiler. To invoke D you need to enter "dmd hello.d"

Man, I gotta lay off that crack pipe, huh? Between all my typos, dmd hello.d _also_ produced that error message.
 If you have the object.d file located where DMD.exe would typically
 expect it, are you missing this file: \dmd\bin\sc.ini?
 jcc7

Jah: /cygdrive/c/dmd/bin> cat sc.ini [Version] version=7.51 Build 020 [Environment] LIB="% P%\..\lib";\dm\lib DFLAGS="-I% P%\..\src\phobos" LINKCMD=% P%\..\..\dm\bin\link.exe /cygdrive/c/dmd/bin> (Note I'm using that commie pinko "CygWin", not CMD.EXE like a real, god-fearing 'Merikin. Deal.)
 Bingo! Yes this is the problem, I'm sure. And its caused by not having
 c:\dmd\bin in the PATH symbol. Well, that's my guess anyway ;-)

PATH

Bpl;c:\ruby2\bin;C:\Perl\bin\;C:\WINDOWS\sys tem32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\d oxygen\bin;C:\mophun\bin;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Common Files\Compuware;C:\Program Fi les\Compuware\TestPartner;C:\Program Files\Compuware\TestPartner\AppExtDlls;c:\ruby\bin;C:\dm\bin;C:\dmd\bin Maybe I should start either using or yanking some of that stuff... Now, one more experiment: /cygdrive/c/dmd/samples/d> cp ../../src/phobos/object.d . /cygdrive/c/dmd/samples/d> cp ../../lib/phobos.lib . /cygdrive/c/dmd/samples/d> dmd hello.d link hello,,,user32+kernel32/noi; /cygdrive/c/dmd/samples/d> ./hello.exe hello world args.length = 1 args[0] = 'c:\dmd\samples\d\hello.exe' There ya go. Don't worry about explaining to me why copying the includers and libbers into every working folder might not be workable...

It seems then that cygwin is not so compatible after all. I'm sure now that the source of your problem is cygwin. I've had other people come up with (different) problems when running under cygwin. Just a thought, but does cygwin use the PATH entries in a case-sensitive way? You have "C:\dmd\bin" int your PATH but the current drive is "c:". -- Derek Parnell Melbourne, Australia 30/04/2005 2:17:37 PM
Apr 29 2005
next sibling parent "Phlip" <phlip_cpp yahoo.com> writes:
Derek Parnell wrote:

 It seems then that cygwin is not so compatible after all. I'm sure now

 the source of your problem is cygwin. I've had other people come up with
 (different) problems when running under cygwin.

 Just a thought, but does cygwin use the PATH entries in a case-sensitive
 way? You have "C:\dmd\bin" int your PATH but the current drive is "c:".

When cygwin invokes an EXE that invokes no cygwin*.dll, the EXE still sees a normal PATH and normal environmental variables. When cygwin*.dll does invoke, it is forward-compatible with . dir *.q can't see *.Q, but open("file.q") _can_ see file.Q. CygWin ain't to blame (fun though that is), because raw CMD.EXE delivers the same error. Contrarily, if DigitalMars saw fit to toss us a CygWin package, that would be sweet (and more stable!). -- Phlip http://www.c2.com/cgi/wiki?ZeekLand
Apr 29 2005
prev sibling parent "Walter" <newshound digitalmars.com> writes:
"Derek Parnell" <derek psych.ward> wrote in message
news:1o4s0krau80i9$.916u4p196svt.dlg 40tude.net...
 It seems then that cygwin is not so compatible after all. I'm sure now

 the source of your problem is cygwin. I've had other people come up with
 (different) problems when running under cygwin.

Cygwin seems to be a constant source of weird problems. I'd recommend disabling it before trying dmd.
May 08 2005
prev sibling parent reply Manfred Nowak <svv1999 hotmail.com> writes:
"Phlip" <phlip_cpp yahoo.com> wrote:

I don't have a 20-year resume covering thousands of computer
science topics, from fractals to web sites. I just fell off a
turnip truck next to a laptop. 

 (Note I'm using that commie pinko "CygWin", not CMD.EXE like a
 real, god-fearing 'Merikin. Deal.)

PATH


Wohoo! Just landed and cygwin already found, downloaded and installed? And a Borland Compiler? And how do one get the output of the windows-cmd-shell without using it? And you do not know that if the correct entries are in the windows-cmd-shell PATH, that will be taken into the cygwin-bash-shell on restart of cygwin only (so there is the need to show the output of `echo $PATH')? Or do you use *nix commands but have no idea what you are using there?
 /cygdrive/c/dmd/bin> cat sc.ini
 [Version]
 version=7.51 Build 020

 [Environment]
 LIB="% P%\..\lib";\dm\lib
 DFLAGS="-I% P%\..\src\phobos"
 LINKCMD=% P%\..\..\dm\bin\link.exe

 /cygdrive/c/dmd/samples/d> dmd hello.d
 link hello,,,user32+kernel32/noi;

Wohoo! Again! Just landed and already found out how to change the command prompt of the cygwin bash? And how did you manage to have the digitalmars link command in c:\dmd\samples\d? This is what the compilation command looks like with my fresh installed cygwin and dmd: | manfred home /cygdrive/e/dmd/samples/d | $ dmd hello | e:\dmd\bin\..\..\dm\bin\link.exe hello,,,user32+kernel32/noi; Quite a difference wouldn't you say that? So what are you telling us? That you have fringed your win32 near to collapse? That you are not able to copyPaste but to change bash prompts? Or simply that you are one of these guys filthying the usenet called trolls or caspers or what not? -manfred
Apr 30 2005
parent reply "Phlip" <phlip_cpp yahoo.com> writes:
Manfred Nowak wrote:

 So what are you telling us? That you have fringed your win32 near to
 collapse? That you are not able to copyPaste but to change bash
 prompts? Or simply that you are one of these guys filthying the
 usenet called trolls or caspers or what not?

Welcome yourself. Next time, please read the rest of the thread first. We determined the paths are correct, CygWin is not (directly) to blame, sc.ini is correct, and nobody had any further suggestions. And please hesitate before accusing someone of trolling. That is mud that splatters easily back on the accuser. -- Phlip http://www.c2.com/cgi/wiki?ZeekLand
Apr 30 2005
next sibling parent reply J C Calvarese <jcc7 cox.net> writes:
Phlip wrote:
 Manfred Nowak wrote:
 
 
So what are you telling us? That you have fringed your win32 near to
collapse? That you are not able to copyPaste but to change bash
prompts? Or simply that you are one of these guys filthying the
usenet called trolls or caspers or what not?

Welcome yourself. Next time, please read the rest of the thread first. We determined the paths are correct, CygWin is not (directly) to blame, sc.ini is correct, and nobody had any further suggestions. And please hesitate before accusing someone of trolling. That is mud that splatters easily back on the accuser.

Have you tried that evil cmd.exe program yet? You might get some further suggestions if you'd meet us half way. I often disagree with Manfred's style, but you're seeming more like a troll all the time. -- jcc7 http://jcc_7.tripod.com/d/
Apr 30 2005
next sibling parent Manfred Nowak <svv1999 hotmail.com> writes:
J C Calvarese <jcc7 cox.net> wrote:

[...]
 you're seeming more like a troll all the time.

Thanks for the confirmation. It has lasted some years that this forum was astonishingly clean. However, also phlip's reaction on my questions on the desinformation he gave is a typical one: no reactions. And on the _question_ whether he is a troll: astonishingly no denial but reasoning over things that not has happened. So I feel that my renaming of the subject to a big welcome is justified by his reaction. -manfred
May 01 2005
prev sibling parent reply "Phlip" <phlip_cpp yahoo.com> writes:
J C Calvarese wrote:

 Have you tried that evil cmd.exe program yet? You might get some further
 suggestions if you'd meet us half way.

The problem now is a rambling thread is hard to read. I repeatedly reported I repeatedly tried CMD.EXE. Guys - cleansing breath, everyone. Now. jicman wrote:
 Derek,

 I've tried a bunch of ways to get build and dmd to work with cygwin and I

 not.  I can get gcd to work with cygwin, but not dmd and build.  However,

 working perfectly with the crazy DOS prompt. :-)

I have no need for CygWin: The following question is only because jicman did not make clear the meaning of "get to work". Entirely out of curiosity, and not because anyone is not using CMD.EXE, does "get to work" mean compile into CygWin's GNU platform? Manfred Nowak wrote:
 However, also phlip's reaction on my questions on the desinformation
 he gave is a typical one: no reactions.

Apologies, but my disinformations were not technically relevant. They were ice-breakers. They were to lead J C Calvarese to say, "That's okay, we're here to help". If you don't have this reaction, please have none. If I announce "I have a twenty-year resume, from AmigaDOS to zsh, and I can't install dmd and it's you guy's fault", that's slightly off-putting, right? -- Phlip http://www.c2.com/cgi/wiki?ZeekLand
May 01 2005
parent reply Derek Parnell <derek psych.ward> writes:
On Sun, 1 May 2005 04:54:09 -0700, Phlip wrote:

[snip]
 If I announce "I have a twenty-year resume, from AmigaDOS to zsh, and I
 can't install dmd and it's you guy's fault", that's slightly off-putting,
 right?

Yep! Especially when no one else is having the problem. Must be a bit embarrassing for you ... oh hang on ... you meant off-putting for us. Sorry. My bad. But seriously, what else can we do? We have explained what needs to happen, and you have told us you have done such; ... but you are still having problems that we are not having. So all we can assume at this point is that you have made a mistake in installing it and/or setting up the environment correctly, *and* you cannot see your error. Hundreds of people have followed the installation notes and it works for them. Now true, it may be possible that thousands have also tried to install it and failed, and haven't bothered to mention that to the author or this news group ... but that's straining the probability curve a bit much. Ok, I've bitten the bullet and installed cygwin to see if I could be of any use. Here is some console output that I got ... bash-2.05b$ pwd /cygdrive/c/dmd/samples/d bash-2.05b$ dmd hello.d c:\dmd\bin\..\..\bm\link.exe hello,,,user32=kernel32/noi; bash-2.05b$ ./hello hello world args.length = 1 args[0] = 'c:\dmd\samples\d\hello.exe' bash-2.05b$ All I can suggest now is that you start again from scratch and double check each step before proceeding to the next step. (A) Download the two ZIP files ... http://ftp.digitalmars.com/dmd.zip http://ftp.digitalmars.com/dmd.zip (B) Unzip these files, using the 'create sub-folders as required' option, which is usually the default. Let's assume for the purposes of this discussion, that you installed it onto the C: drive. Thus unzipping these would have produced the following folders and sub-folders ... c:\dmd c:\dmd\bin c:\dmd\html c:\dmd\lib c:\dmd\man c:\dmd\practice c:\dmd\samples c:\dmd\src c:\dm c:\dm\bin c:\dm\html\ctg c:\dm\html c:\dm\images c:\dm\include c:\dm\lib c:\dm\html\make_files c:\dm\samples\me c:\dm\samples c:\dm\include\sys c:\dm\include\win32 (C) Update your PATH symbol so that it includes "c:\dm\bin" and "c:\dmd\bin". You may have to reboot after doing this. (D) Start up a DOS/WINDOWS command prompt (command.com or cmd.exe depending on which version of windows you are using). (E) At the command prompt enter in ... dmd c:\dmd\samples\d\hello.d and expect output such as ... c:\dmd\bin\..\..\dm\bin\link.exe hello,,,user32+kernel32/noi; (F) Now try it with a Cygwin console window. -- Derek Parnell Melbourne, Australia http://www.dsource.org/projects/build 1/May/2005 9:59:03 PM
May 01 2005
parent reply "Phlip" <phlip_cpp yahoo.com> writes:
Derek Parnell wrote:

 If I announce "I have a twenty-year resume, from AmigaDOS to zsh, and I
 can't install dmd and it's you guy's fault", that's slightly


 right?

Yep! Especially when no one else is having the problem. Must be a bit embarrassing for you ... oh hang on ... you meant off-putting for us. Sorry. My bad.

Would "I have installed 4 different distros of Ruby on 6 different computers and each one worked right out of the box" be less off-putting? ;-)
 (C) Update your PATH symbol so that it includes "c:\dm\bin" and
 "c:\dmd\bin". You may have to reboot after doing this.

Gaaarr! I pride myself in only rebooting my WinXP twice a week. The current boot was doing so well, otherwise. Oh well, we'll see which of Sybel's personalities we get this time... <pause to reboot> Nope. C:\dmd\samples>dmd d\hello.d Error: Error reading file 'object.d' From here, I can work around like this: C:\dmd\samples>dmd -IC:\dmd\src\phobos d\hello.d link hello,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved phobos.lib Warning 2: File Not Found phobos.lib OPTLINK : Warning 23: No Stack One final question: What's the argument to dmd to help the linker find phobos.lib? -- Phlip http://www.c2.com/cgi/wiki?ZeekLand
May 01 2005
next sibling parent reply John Reimer <brk_6502 yahoo.com> writes:
Phlip wrote:
 Derek Parnell wrote:
 
 
If I announce "I have a twenty-year resume, from AmigaDOS to zsh, and I
can't install dmd and it's you guy's fault", that's slightly


off-putting,
right?

Yep! Especially when no one else is having the problem. Must be a bit embarrassing for you ... oh hang on ... you meant off-putting for us. Sorry. My bad.

Would "I have installed 4 different distros of Ruby on 6 different computers and each one worked right out of the box" be less off-putting? ;-)

Just to stir the pot up more, I found nothing offputting or trollish about your previous posts. ;-) *runs and ducks as rotten fruit get's thrown in my direction from fellow community members* Your style of introduction was quite original, though. Oh and Manfred is always like that, sometimes he's right...sometimes he's wrong depending on how patient he feels at the time. In this case, it just had to do with the unusual way of your introduction... I know you were trying to be suave and self-deprecating to attract the needed help... but I guess doing that doesn't always work. Might as well be up front. And considering the characters on this group, I'm very surprised at the reception you got... heh! As great as this newsgroup is, you have no idea what kind of weird discussions have occurred here... really! This one's mild. Most of the responses come from the fact that these characters have been around here for awhile, are comfortable with their surroundings, and have developed a certain amount of respect in the community... kind of. Guaranteed most of these guys, including myself, would have been much more self-conscious about what we post if it were a year ago... but you know how it goes when one's carved a nitch: now we're allowed to be as opinionated, abrasive, and condescending as we want... especially to new-comers because we're invincible (/not/)! :-D. See? It's just like putting on a new suit for work. Do you think we'd be like this in person? ;-) (well maybe some of us would!)
(C) Update your PATH symbol so that it includes "c:\dm\bin" and
"c:\dmd\bin". You may have to reboot after doing this.

Gaaarr! I pride myself in only rebooting my WinXP twice a week. The current boot was doing so well, otherwise. Oh well, we'll see which of Sybel's personalities we get this time...

You don't usually have to reboot after environment variable updates on WinXP. You just have to close and reopen the command console.
 <pause to reboot>
 
 Nope.
 
 C:\dmd\samples>dmd d\hello.d
 Error: Error reading file 'object.d'
 
 From here, I can work around like this:
 
 C:\dmd\samples>dmd -IC:\dmd\src\phobos d\hello.d
 link hello,,,user32+kernel32/noi;
 OPTLINK (R) for Win32  Release 7.50B1
 Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
 
 phobos.lib
  Warning 2: File Not Found phobos.lib
 OPTLINK : Warning 23: No Stack
 
 One final question: What's the argument to dmd to help the linker find
 phobos.lib?
 

This is a very strange problem. Have you tried installing on another computer? Perhaps you should test to see if another cygwin installation will work. the "-IC:\dmd\src\phobos" should be read from sc.ini. It must not be finding it. Also, LIB is in sc.ini and should point to where the libraries are situated. Strange. In the meantime, just add phobos.lib to the command line, no switch required (full path to it may be necessary). -JJR
May 01 2005
parent reply "Phlip" <phlip_cpp yahoo.com> writes:
John Reimer wrote:

 Just to stir the pot up more, I found nothing offputting or trollish
 about your previous posts. ;-)

Well, I once told a forum full of game designers they should write high-level scenario tests for their games instead of making their programmers work all night code-and-fixing. They had a shit fit.
 You don't usually have to reboot after environment variable updates on
 WinXP. You just have to close and reopen the command console.

I know; I could also have written a new, shorter PATH on a command line. I'l get back to that. One possibility is something in my (fragged) environment has the same name or signature as some element of the dmd toolchain. So attempting to install on another computer is a good idea. But...
 In the meantime, just add phobos.lib to the command line, no switch
 required (full path to it may be necessary).

Noop: C:\dmd\samples>dmd -IC:\dmd\src\phobos d\hello.d c:\dmd\lib\phobos.lib ... phobos.lib Warning 2: File Not Found phobos.lib C:\dmd\samples>dir c:\dmd\lib\phobos.lib 15-Apr-05 02:30 PM 669,696 phobos.lib -- Phlip http://www.c2.com/cgi/wiki?ZeekLand
May 01 2005
parent reply John Reimer <brk_6502 yahoo.com> writes:
Phlip wrote:
 John Reimer wrote:
 
 
Just to stir the pot up more, I found nothing offputting or trollish
about your previous posts. ;-)

Well, I once told a forum full of game designers they should write high-level scenario tests for their games instead of making their programmers work all night code-and-fixing. They had a shit fit.

Heh... I hear you. I guess what I'm saying is "no big deal." There's plenty of complicated issues in life for people to get disgruntled over. Your posts weren't one of them. And I could care less if I get smacked with a rotten tomato for saying that.
You don't usually have to reboot after environment variable updates on
WinXP. You just have to close and reopen the command console.

I know; I could also have written a new, shorter PATH on a command line. I'l get back to that. One possibility is something in my (fragged) environment has the same name or signature as some element of the dmd toolchain. So attempting to install on another computer is a good idea. But...

Environment does sound messed up.
In the meantime, just add phobos.lib to the command line, no switch
required (full path to it may be necessary).

Noop: C:\dmd\samples>dmd -IC:\dmd\src\phobos d\hello.d c:\dmd\lib\phobos.lib ... phobos.lib Warning 2: File Not Found phobos.lib C:\dmd\samples>dir c:\dmd\lib\phobos.lib 15-Apr-05 02:30 PM 669,696 phobos.lib

!!! Super wierd !!! Well, I think it's more to do with your computer environment then the compiler installation. That's just bizarre. I don't have much of a clue. -JJR
May 01 2005
parent reply "Phlip" <phlip_cpp yahoo.com> writes:
John Reimer wrote:

 Environment does sound messed up.

Moving \dm\bin and \dmd\bin to the front of the PATH didn't work either...
 Noop:

 C:\dmd\samples>dmd -IC:\dmd\src\phobos d\hello.d c:\dmd\lib\phobos.lib
 ...
 phobos.lib
  Warning 2: File Not Found phobos.lib

 C:\dmd\samples>dir c:\dmd\lib\phobos.lib
 15-Apr-05  02:30 PM           669,696 phobos.lib

!!! Super wierd !!!

Waitaminute! That's just a warning. The compilation worked, and produced an executable. I can live with a warning. (I'l grep -v it out). -- Phlip http://www.c2.com/cgi/wiki?ZeekLand
May 01 2005
parent reply John Reimer <brk_6502 yahoo.com> writes:
Phlip wrote:

 
 Waitaminute! That's just a warning. The compilation worked, and produced an
 executable. I can live with a warning. (I'l grep -v it out).
 

Does the executable actually run? If phobos.lib isn't found and isn't linked in, how can the program work? Or maybe it's lieing? :-O What's the filesize of the executable? -JJR
May 01 2005
parent reply "Phlip" <phlip_cpp yahoo.com> writes:
John Reimer wrote:

 Does the executable actually run?  If phobos.lib isn't found and isn't
 linked in, how can the program work?  Or maybe it's lieing? :-O

The executable runs. What's probably happening is dmd sees two phobos.lib commands, and doesn't reconcile them. One can't be found, so produces a warning. The other one, found, produces the executable. Thanks everyone, and Sammy, please consider the reign of terror over. I'l be back soon to ask how to reflect an expression into a trace statement as text. You know - a job for the C Preprocessor ;-) -- Phlip http://www.c2.com/cgi/wiki?ZeekLand
May 01 2005
parent reply Sammy <Sammy.Deroy sympatico.ca> writes:
Phlip wrote:
 
 Thanks everyone, and Sammy, please consider the reign of terror over.
 

Ok..., :-) I made some more testing. Here is what i found. The only unzip executable on my machine, is the one that comes with Cygwin. cygwin\bin is in my Path, but i work only under cmd.exe box. The first time i unzipped dmc and dmd, i was unable to execute dmd.exe, and the error message was "access denied". I checked the permissions on DM and DMD folders and they look strange. With the explorer, (i have Win XP), i changed the permissions to give all permissions to every one on this 2 folders and their contents. But nothing worked ok (even under cmd.exe). So i started over with a clean install, and unzipped with Winzip. This time every thing was Ok. The only way to get the Phobos related error message was to hide sc.ini. Now, i made on more test. I use the unzip from Infozip. Available at http://www.info-zip.org/pub/infozip/ And every thing is ok. This probably means that the unzip (Cygwin version) do domething special with the files permissions which confuse DMD. May i suggest, if you have cygwin\bin in your path, that you remove it, and you test Infozip unzip to see if it works for you. Sammy
May 01 2005
parent "Phlip" <phlip_cpp yahoo.com> writes:
Sammy wrote:

 I made some more testing. Here is what i found.

 The only unzip executable on my machine, is the one that comes
 with Cygwin. cygwin\bin is in my Path, but i work only
 under cmd.exe box.

Man, muscle memory will Undo me. Of course I unzipped with CygWin, and now the permissions are all -rwxrwxrwx+. I can imagine a CygWin might configure so new files get no execution permissions (that's more secure), but I can't imagine a system screwing up because text files have the x bit set too. (And CygWin maps x onto the NTFS file permissions that _deny_ executability to files that otherwise should execute, like EXE. So CygWin's tar command can expand EXEs that you then can't run...)
 So i started over with a clean install, and unzipped with Winzip.
 This time every thing was Ok. The only way to get the Phobos
 related error message was to hide sc.ini.

Okay. I zilched the folders and expanded with WinXP's Explorer, and... That was it! Thank you, everyone, for helping us discover D has an issue with too many x bits set!! Now here's your reward: http://www.greencheese.org/ZeekLand -- Phlip http://www.c2.com/cgi/wiki?ZeekLand
May 01 2005
prev sibling parent reply Derek Parnell <derek psych.ward> writes:
On Sun, 1 May 2005 10:38:47 -0700, Phlip wrote:


[snip]

 Would "I have installed 4 different distros of Ruby on 6 different computers
 and each one worked right out of the box" be less off-putting? ;-)

I do understand your frustration with this problem. And I know that me saying I've installed D on multiple machines (and now also with Cygwin) - out of the box - and they have always worked is not helping matters. But it is also a true statement.
 (C) Update your PATH symbol so that it includes "c:\dm\bin" and
 "c:\dmd\bin". You may have to reboot after doing this.

Gaaarr! I pride myself in only rebooting my WinXP twice a week. The current boot was doing so well, otherwise. Oh well, we'll see which of Sybel's personalities we get this time... <pause to reboot>

I did say "may". I hadn't noticed which Windows version you were using and as you know, earlier versions of Windows do require a reboot after messing about with the autoexec.bat file. I mentioned the possible need for a reboot also because other people are reading this discussion and it might trigger something for them.
 Nope.
 
 C:\dmd\samples>dmd d\hello.d
 Error: Error reading file 'object.d'
 
 From here, I can work around like this:
 
 C:\dmd\samples>dmd -IC:\dmd\src\phobos d\hello.d
 link hello,,,user32+kernel32/noi;
 OPTLINK (R) for Win32  Release 7.50B1
 Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
 
 phobos.lib
  Warning 2: File Not Found phobos.lib
 OPTLINK : Warning 23: No Stack

I can exactly reproduce the errors above. In order to do that, I need to 'hide' the c:\dmd\bin\sc.ini file. So at this stage, it seems like either that file is missing, or the logged on user does not have read rights to the file. ----------------------------------------------------------- F:\dmd\samples>rename \dmd\bin\sc.ini sc_hide.ini F:\dmd\samples>dmd d\hello.d Error: Error reading file 'object.d' F:\dmd\samples>dmd d\hello.d -If:\dmd\src\phobos link hello,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved phobos.lib Warning 2: File Not Found phobos.lib OPTLINK : Warning 23: No Stack hello.obj(hello) Error 42: Symbol Undefined _main hello.obj(hello) Error 42: Symbol Undefined __acrtused_con OPTLINK : Warning 134: No Start Address --- errorlevel 2 F:\dmd\samples>rename \dmd\bin\sc_hide.ini sc.ini F:\dmd\samples>dmd d\hello.d f:\dmd\bin\..\..\dm\bin\link.exe hello,,,user32+kernel32/noi; F:\dmd\samples> --------------------------------------------------
 One final question: What's the argument to dmd to help the linker find
 phobos.lib?

Well I thought that all one would need to do is add it to the command line, but I tried that and it failed too, but not as verbosely... ------------------------------------------------------ F:\dmd\samples>dmd d\hello.d f:\dmd\lib\phobos.lib -If:\dmd\src\phobos link hello,,,f:\dmd\lib\phobos.lib+user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved phobos.lib Warning 2: File Not Found phobos.lib F:\dmd\samples> ------------------------------------------------------ So, it still seems like there is something unusual going on with the sc.ini file. -- Derek Parnell Melbourne, Australia 2/05/2005 6:45:31 AM
May 01 2005
parent reply "Phlip" <phlip_cpp yahoo.com> writes:
Derek Parnell wrote:

 So, it still seems like there is something unusual going on with the

 file.

/cygdrive/c/dmd/bin> ll sc.ini -rwxrwxrwx+ 1 plumlee mkpasswd 146 Nov 18 2002 sc.ini /cygdrive/c/dmd/bin> dump sc.ini sc.ini: Addr 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 2 4 6 8 A C E -------- ---- ---- ---- ---- ---- ---- ---- ---- ---------------- 00000000 5b56 6572 7369 6f6e 5d0d 0a76 6572 7369 [Version]..versi 00000010 6f6e 3d37 2e35 3120 4275 696c 6420 3032 on=7.51 Build 02 00000020 300d 0a0d 0a5b 456e 7669 726f 6e6d 656e 0....[Environmen 00000030 745d 0d0a 4c49 423d 2225 4050 255c 2e2e t]..LIB="% P%\.. 00000040 5c6c 6962 223b 5c64 6d5c 6c69 620d 0a44 \lib";\dm\lib..D 00000050 464c 4147 533d 222d 4925 4050 255c 2e2e FLAGS="-I% P%\.. 00000060 5c73 7263 5c70 686f 626f 7322 0d0a 4c49 \src\phobos"..LI 00000070 4e4b 434d 443d 2540 5025 5c2e 2e5c 2e2e NKCMD=% P%\..\.. 00000080 5c64 6d5c 6269 6e5c 6c69 6e6b 2e65 7865 \dm\bin\link.exe 00000090 0d0a .. Note the linefeeds are 0d0a, meaning \r\n, not \n the way God intended... Switch to \n didn't work (which only means dmd correctly interpreted \r as a blank, which is also the way God intended...;). Also, I tested in CMD.EXE, not Bash, guys! -- Phlip http://www.c2.com/cgi/wiki?ZeekLand
May 01 2005
parent John Reimer <brk_6502 yahoo.com> writes:
Phlip wrote:
 Derek Parnell wrote:
 
 
So, it still seems like there is something unusual going on with the

sc.ini
file.

/cygdrive/c/dmd/bin> ll sc.ini -rwxrwxrwx+ 1 plumlee mkpasswd 146 Nov 18 2002 sc.ini /cygdrive/c/dmd/bin> dump sc.ini sc.ini: Addr 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 2 4 6 8 A C E -------- ---- ---- ---- ---- ---- ---- ---- ---- ---------------- 00000000 5b56 6572 7369 6f6e 5d0d 0a76 6572 7369 [Version]..versi 00000010 6f6e 3d37 2e35 3120 4275 696c 6420 3032 on=7.51 Build 02 00000020 300d 0a0d 0a5b 456e 7669 726f 6e6d 656e 0....[Environmen 00000030 745d 0d0a 4c49 423d 2225 4050 255c 2e2e t]..LIB="% P%\.. 00000040 5c6c 6962 223b 5c64 6d5c 6c69 620d 0a44 \lib";\dm\lib..D 00000050 464c 4147 533d 222d 4925 4050 255c 2e2e FLAGS="-I% P%\.. 00000060 5c73 7263 5c70 686f 626f 7322 0d0a 4c49 \src\phobos"..LI 00000070 4e4b 434d 443d 2540 5025 5c2e 2e5c 2e2e NKCMD=% P%\..\.. 00000080 5c64 6d5c 6269 6e5c 6c69 6e6b 2e65 7865 \dm\bin\link.exe 00000090 0d0a .. Note the linefeeds are 0d0a, meaning \r\n, not \n the way God intended... Switch to \n didn't work (which only means dmd correctly interpreted \r as a blank, which is also the way God intended...;). Also, I tested in CMD.EXE, not Bash, guys!

/r/n is normal line ending for windows based text. I don't think that's related to the issue but good thought, nonetheless.
May 01 2005
prev sibling parent reply Derek Parnell <derek psych.ward> writes:
On Sat, 30 Apr 2005 15:00:09 -0700, Phlip wrote:

 We determined ...CygWin is not (directly) to blame ...

Well, I'm not yet convinced of that. You told us that it's not Cygwin but I haven't got any evidence to suggest you are correct. Would it be possible for you to use the native Windows command line instead just so we can determine if its a command processor related problem or not. -- Derek Parnell Melbourne, Australia http://www.dsource.org/projects/build 1/05/2005 11:22:42 AM
Apr 30 2005
parent reply jicman <jicman_member pathlink.com> writes:
Derek,

I've tried a bunch of ways to get build and dmd to work with cygwin and I have
not.  I can get gcd to work with cygwin, but not dmd and build.  However, I am
working perfectly with the crazy DOS prompt. :-)

Just a thought...

Derek Parnell says...
On Sat, 30 Apr 2005 15:00:09 -0700, Phlip wrote:

 We determined ...CygWin is not (directly) to blame ...

Well, I'm not yet convinced of that. You told us that it's not Cygwin but I haven't got any evidence to suggest you are correct. Would it be possible for you to use the native Windows command line instead just so we can determine if its a command processor related problem or not. -- Derek Parnell Melbourne, Australia http://www.dsource.org/projects/build 1/05/2005 11:22:42 AM

Apr 30 2005
parent reply Manfred Nowak <svv1999 hotmail.com> writes:
jicman <jicman_member pathlink.com> wrote:

[...]
 I've tried a bunch of ways to get build and dmd to work with
 cygwin and I have not.

This is cygwin dmd/gdc and digitalmars dmd/build coinstalled on a winXPPro: <copyPasted> manfred home /cygdrive/e/dmd/samples/d $ which dmd /usr/bin/dmd manfred home /cygdrive/e/dmd/samples/d $ which build /cygdrive/e/dmd/bin/build manfred home /cygdrive/e/dmd/samples/d $ build hello e:\dmd\bin\..\..\dm\bin\link.exe hello,hello.exe,,user32 +kernel32,hello.def/noi; manfred home /cygdrive/e/dmd/samples/d $ hello hello world args.length = 1 args[0] = 'e:\dmd\samples\d\hello.exe' </copyPasted> So at first glance I do not believe that on a sane Win/cygwin/dmd installation there are any problems. If you meet this requirements I am willing to help. -manfred
May 01 2005
parent reply jicman <jicman_member pathlink.com> writes:
Manfred,

all I did was to add,

/cygdrive/c/dmd/bin

to the PATH in the .bashrc file and everything is working fine!  Good bye DOS
command prompt. :-)

Thanks all.

jic

Manfred Nowak says...
jicman <jicman_member pathlink.com> wrote:

[...]
 I've tried a bunch of ways to get build and dmd to work with
 cygwin and I have not.

This is cygwin dmd/gdc and digitalmars dmd/build coinstalled on a winXPPro: <copyPasted> manfred home /cygdrive/e/dmd/samples/d $ which dmd /usr/bin/dmd manfred home /cygdrive/e/dmd/samples/d $ which build /cygdrive/e/dmd/bin/build manfred home /cygdrive/e/dmd/samples/d $ build hello e:\dmd\bin\..\..\dm\bin\link.exe hello,hello.exe,,user32 +kernel32,hello.def/noi; manfred home /cygdrive/e/dmd/samples/d $ hello hello world args.length = 1 args[0] = 'e:\dmd\samples\d\hello.exe' </copyPasted> So at first glance I do not believe that on a sane Win/cygwin/dmd installation there are any problems. If you meet this requirements I am willing to help. -manfred

May 01 2005
parent Manfred Nowak <svv1999 hotmail.com> writes:
jicman <jicman_member pathlink.com> wrote:

 all I did was to add,
 
 /cygdrive/c/dmd/bin

Congrat. But the cygwin-PATH is set from the win32-PATH. Then the conclusion of this infomation is, that dmd\bin was not in your win32- path. This in turn would mean, that you did not set the win32-PATH and did not have dmd running under win32? -manfred
May 01 2005
prev sibling next sibling parent reply J C Calvarese <jcc7 cox.net> writes:
Phlip wrote:
 Hi.
 
 I don't have a 20-year resume covering thousands of computer science topics,
 from fractals to web sites. I just fell off a turnip truck next to a laptop.

It's okay. We're here to help. :)
 
 How does someone as stupid as me install the D Language on Win32?

I know a lot of people have made suggestions, so this might be too much of a good thing, but you could try reading this: http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/InstallingDCompiler But you'd probably rather have some specific suggestions...
  cd c:\
  unzip dm.zip
  unzip dmc.zip
 
 add c:\dm\bin to the PATH, then get into dmd/samples/d, and:
 
  dmc hello.d
 
 That produces:
     Error: Error reading file 'object.d'

It sounds like DMD.exe isn't finding the file \dmd\src\phobos\object.d. If you have the object.d file located where DMD.exe would typically expect it, are you missing this file: \dmd\bin\sc.ini? -- jcc7 http://jcc_7.tripod.com/d/
Apr 29 2005
parent Derek Parnell <derek psych.ward> writes:
On Fri, 29 Apr 2005 20:14:44 -0500, J C Calvarese wrote:

[snip]

 It sounds like DMD.exe isn't finding the file \dmd\src\phobos\object.d.
 
 If you have the object.d file located where DMD.exe would typically 
 expect it, are you missing this file: \dmd\bin\sc.ini?

Bingo! Yes this is the problem, I'm sure. And its caused by not having c:\dmd\bin in the PATH symbol. Well, that's my guess anyway ;-) -- Derek Parnell Melbourne, Australia 30/04/2005 11:16:52 AM
Apr 29 2005
prev sibling parent reply Sammy <Sammy.Deroy sympatico.ca> writes:
Phlip wrote:
 Hi.
  cd c:\
  unzip dm.zip

i guess you mean dmd.zip, because i cant find dm.zip
  unzip dmc.zip
 add c:\dm\bin to the PATH, then get into dmd/samples/d, and:

i guess you mean c:\dmd\bin
  dmc hello.d

i guess you mean dmd hello.d After doing these obvious corrections to your commands, i tried to reproduce you problem, using a very clean environment. The only way i can get the message:
 Error: Error reading file 'object.d'

and this is the exact message i got, when i renamed the dmd\bin\sc.ini file to something dmd.exe wont find. So, my guess is there is something wrong with your sc.ini file: the name, the location or the content. And the installation instructions on: http://www.digitalmars.com/d/dcompiler.html are *incomplete* if not wrong.
May 01 2005
parent "Walter" <newshound digitalmars.com> writes:
"Sammy" <Sammy.Deroy sympatico.ca> wrote in message
news:d53dqd$50l$1 digitaldaemon.com...
 And the installation instructions on:

    http://www.digitalmars.com/d/dcompiler.html

 are *incomplete* if not wrong.

I just did some updates to it, hopefully it's better now. Also, please note any problems/improvements in the feedback link at the bottom.
May 08 2005