FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"sc.ini not found"

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Thu Feb 24, 2005 4:38 pm    Post subject: "sc.ini not found" Reply with quote

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
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Thu Feb 24, 2005 5:02 pm    Post subject: Re: "sc.ini not found" Reply with quote

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
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Thu Feb 24, 2005 5:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Thu Feb 24, 2005 5:55 pm    Post subject: Reply with quote

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?


Embarassed 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 Smile
_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Fri Feb 25, 2005 12:27 pm    Post subject: Reply with quote

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 Smile

- Kris
Back to top
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Fri Feb 25, 2005 2:45 pm    Post subject: Reply with quote

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 Smile

- 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
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Fri Feb 25, 2005 2:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Tue Apr 26, 2005 8:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Tue Apr 26, 2005 11:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Wed Apr 27, 2005 9:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group