View previous topic :: View next topic |
Author |
Message |
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Thu Feb 24, 2005 4:38 pm Post subject: "sc.ini not found" |
|
|
Quote: | C:\D\mango\mango>build -nounittest -DCPATH\D\dmd\bin test\unittest
-DCPATH\D\dmd\bin was c:\dmd\bin\ now \D\dmd\bin\
Error: File 'c:\dmd\bin\sc.ini' not found. |
seems to be looking in the wrong place;
[build 223] |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Thu Feb 24, 2005 5:02 pm Post subject: Re: "sc.ini not found" |
|
|
kris wrote: | Quote: | C:\D\mango\mango>build -nounittest -DCPATH\D\dmd\bin test\unittest
-DCPATH\D\dmd\bin was c:\dmd\bin\ now \D\dmd\bin\
Error: File 'c:\dmd\bin\sc.ini' not found. |
seems to be looking in the wrong place;
[build 223] |
Okay, what's happening is that build initially finds dmd via the PATH enviro symbol, and sets the DCPATH and CFPATH to where it found DMD. If you supply a DCPATH switch, it updates the location of where to find DMD but leaves the CFPATH untouched.
So, currently one has to provide both -DCPATH and -CFPATH switches. I need to make this a lot smarter. Thanks for pointing it out. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Thu Feb 24, 2005 5:42 pm Post subject: |
|
|
Not quite. Dmd is not on the PATH at all. That "c:\dmd\bin" appears to be a 'default' path embedded within Build itself? |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Thu Feb 24, 2005 5:55 pm Post subject: |
|
|
kris wrote: | Not quite. Dmd is not on the PATH at all. That "c:\dmd\bin" appears to be a 'default' path embedded within Build itself? |
You're right. That is a hardcoded default. Not really clever of me, eh?
Okay, that's something else for me to improve in the next release _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Fri Feb 25, 2005 12:27 pm Post subject: |
|
|
tried the -CFPATH also. Now it doesn't complain about sc.ini, but cannot find dmd.exe via the path I provided:
Quote: | -DCPATHc:\D\dmd\bin was c:\dmd\bin\ now c:\D\dmd\bin\
-CFPATHc:\D\dmd\bin was c:\dmd\bin\ now c:\D\dmd\bin\
'dmd.exe' is not recognized as an internal or external command,
operable program or batch file. |
It seems to really want dmd.exe to be on the system-path, regardless of -PATH settings. And I assure you, it does reside in the location I specified
- Kris |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Fri Feb 25, 2005 2:45 pm Post subject: |
|
|
kris wrote: | tried the -CFPATH also. Now it doesn't complain about sc.ini, but cannot find dmd.exe via the path I provided:
Quote: | -DCPATHc:\D\dmd\bin was c:\dmd\bin\ now c:\D\dmd\bin\
-CFPATHc:\D\dmd\bin was c:\dmd\bin\ now c:\D\dmd\bin\
'dmd.exe' is not recognized as an internal or external command,
operable program or batch file. |
It seems to really want dmd.exe to be on the system-path, regardless of -PATH settings. And I assure you, it does reside in the location I specified
- Kris |
Ummmm that would be because the line
Code: | command = vCompiler ~ " @" ~ rspfile;
|
should have been
Code: | command = vCompilerPath ~ vCompiler ~ " @" ~ rspfile;
|
It'll be fixed in the next release.
Thanks for helping me find these mistakes. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Fri Feb 25, 2005 2:50 pm Post subject: |
|
|
No sweat ~ thanks for a potentially valuable tool. If this works out well, I'll consider dropping the Mango makefiles. Would certainly be less hassle without them. |
|
Back to top |
|
|
jicman
Joined: 22 Dec 2004 Posts: 298 Location: Rochester, NY
|
Posted: Tue Apr 26, 2005 8:11 pm Post subject: |
|
|
Speaking of missing 'sc.ini', this also happens with cygwin. For example:
[code]jicman 22:06:42-> ls
DAERpt/ GetXML.e_e* dflexe.d* servlets.exe*
DAERpt.d* GetXML0/ doc/ sieve.d*
DAERpt.def* TokenRpt.d* examples/ sieve.exe*
DAERpt.d~* TokenRpt.exe* htmlget.d* temp.txt*
DAERpt.exe* TokenRpt_bn.d* htmlget.exe* test.d*
DAERpt.map* activetest.d* jic/ test.exe*
DAERpt.obj* activetest.def* jicDAELib.d* test.vbs*
DAERpt.rsp* activex.d* jicDAELib.d~* test0.d*
DAERpt.zip* append.d* jicDAELib.obj* test0.exe*
DTSP1.d* append.exe* jicFPSDKLibs.d* test1.d*
DTSP1.exe* cap.txt* jicLibs.d* test1.exe*
DTSP1a.d* char.d* jicLibs.obj* test1_bn.d*
DeleteTokens.d* char.exe* license.txt* test2.d*
DeleteTokens.exe* char.txt* mango/ test2.exe*
DeleteTokensSP3.d* count.txt* mangoio.d* testa.d*
EnvTest.js* d/ mangoio.exe* testa.exe*
FormMgr.d* dToken1.d* montherror.bmp* time.exe*
FormMgr.e_e* dToken1.exe* mytime.d* tips.txt*
FormMgr.exe* dToken2.d* mytime.exe* vbScript.vbs*
FormMgr0/ dTokens.d* name.d* wc.d*
FormMgr0.d* dTokens.d!* name.exe* wc.exe*
FormMgr00.d* dTokens.exe* news000.d year.d*
FormMgr_bn.d* dfl/ news000.def* year.exe*
FormMgr_bn.obj* dfl.chm* nonchar.dat*
GetXML/ dfl.exe* readme.txt*
GetXML.d* dfl.lib* servlets.d*
jicman 22:08:18->[/code]
and if I do,
build DAERpt.d
I get,
jicman 22:08:18-> build DAERpt.d
Error: File 'sc.ini' not found.
Of course, if I do this from a command prompt, it works fine. But from within the cygwin terminal, I get that message.
Any ideas on how to fix it? |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Tue Apr 26, 2005 11:09 pm Post subject: |
|
|
jicman wrote: | if I do,
build DAERpt.d
I get,
jicman 22:08:18-> build DAERpt.d
Error: File 'sc.ini' not found.
Of course, if I do this from a command prompt, it works fine. But from within the cygwin terminal, I get that message. |
In a Unix environment, the configuration file is expected to be "/etc/dmd.conf". I thought cygwin was a unix-like environment? Are you running the Windows version of DMD?
run "build DAERpt.d -V" and look through the verbose messages. You should see a line like Code: | Configuration File installed in ... | that will tell you where its looking for the file. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
jicman
Joined: 22 Dec 2004 Posts: 298 Location: Rochester, NY
|
Posted: Wed Apr 27, 2005 9:09 am Post subject: |
|
|
cygwin is an unix like environment. I just need to set dmd to work on both places. I like to work on the cygwin console instead of the DOS console. So, I am trying to get build to work on both environments. Here is the output.
jic 10:59:16-> build DAERpt.d -V
*** build v2.03 (build 746)***
Current Dir 'C:\cygwin\home\us319318\myprograms\d\'
Compiler installed in
Configuration File installed in
Active Version: 'X86'
Active Version: 'Win32'
Active Version: 'LittleEndian'
Active Version: 'Windows'
Active Version: 'build'
Active Version: 'D_InlineAsm'
Active Version: 'DigitalMars'
Error: File 'sc.ini' not found.
I see the emptyness of some variables settings. I'll work on that. Also, as you can see here,
jic 11:03:19-> dmd
gdc: no input files
jic 11:07:43-> gdc DAERpt.d
Error: Error reading file 'std/stdio.d'
there are other things to clear up.
thanks.
josé |
|
Back to top |
|
|
|