delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/06/08/07:15:08

Message-ID: <3EE31348.6CAC984F@yahoo.com>
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: gxx: Cannot execute 'gcc.exe': No such file or directory (ENOENT)
References: <5ec65db2 DOT 0306041759 DOT 1eca13e2 AT posting DOT google DOT com> <bbn9pr$ovp$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <5ec65db2 DOT 0306070805 DOT 7070aeab AT posting DOT google DOT com> <RioEa.34966$rO DOT 3250216 AT newsread1 DOT prod DOT itd DOT earthlink DOT net> <5ec65db2 DOT 0306071945 DOT 2b05a5fe AT posting DOT google DOT com> <n9v5ev8dos2h5mgkd1ep14cobc9vnslor3 AT 4ax DOT com>
Lines: 92
Date: Sun, 08 Jun 2003 11:11:52 GMT
NNTP-Posting-Host: 12.90.168.131
X-Complaints-To: abuse AT worldnet DOT att DOT net
X-Trace: bgtnsc04-news.ops.worldnet.att.net 1055070712 12.90.168.131 (Sun, 08 Jun 2003 11:11:52 GMT)
NNTP-Posting-Date: Sun, 08 Jun 2003 11:11:52 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Andrew wrote:
> 
> >DJGPP=c:\DJGPP\djgpp.env
> >
> >PATH=C:\PROGRA~1\MICROS~1.NET\Common7\IDE;
>                C:\PROGRA~1\MICROS~1.NET\VC7\BIN;
>                C:\PROGRA~1\MICROS~1.NET\Common7\Tools;
>                C:\PROGRA~1\MICROS~1.NET\Common7\Tools\bin\prerelease;
>                C:\PROGRA~1\MICROS~1.NET\Common7\Tools\bin;
>                C:\DJGPP\bin\;
>                C:\Perl\bin\;
>                C:\WINDOWS\system32;
>               C:\WINDOWS;
>               C:\WINDOWS\COMMAND;
>                C:\WINDOWS\system32\WBEM;
>               C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;
>                   C:\WINDOWS\Microsoft.NET\Framework\v1.0.2914\;
>              C:\ProgramFiles\Microsoft.NET\FrameworkSDK\Bin;
>                    C:\MSSQL7\BINN;
>         c:\j2sdk1.4.1\bin;
>         C:\WINDOWS\MICROS~1.NET\FRAMEW~1\V10~1.291\;
>         C:\PROGRA~1\MICROS~2.NET\FRAMEW~1\Bin;
> >
... snip ...
> 
> Your path looks like you have installed everything but the kitchen
> sink from MS for development tools. You need to cleanup what you
> have installed and remove old versions and fix up your path so it
> has LFN and not a mixture of LFN and SFN directories as this may
> cause you problems with MS apps. You have MS SQL 7.0 and SQL 2000
> (8.0?) in the path.

Here is an example from my own autoexec.bat.  It is organized to
allow me to quickly and easily revise the path.  I never mount
anything in "program files" (I use "prgs") except stupid Microsoft
apps that are likely to wire things in.  Note the use of subst to
cut the idiotic Microsoft long windy paths down to size, and get
rid of directory names with blanks in them.  I never pollute
\windows\command\ with extraneous utilities, they go into c:\util\
and are found as x:\

---------- snip here ---------
Rem shorten paths
subst x: c:\util
subst v: c:\progra~1\micros~3
set basepath=c:\windows;c:\windows\command

rem W98 Resource kit
set rkitpath=C:\PROGRA~1\WIN98RK

Rem Visual Studio
set vccommon=v:\common\msdev98\bin

Rem Visual C
set vcpath=v:\vc98\bin;%vccommon%
set vcinclude=v:\vc98\include
set vclibs=v:\vc98\lib

Rem Utilities
set UTILPATH=x:\;x:\ink;x:\dcf

Rem GNAT ada
set gnatpath=c:\prgs\gnat\bin

Rem Turbo Pascal
set tppath=c:\prgs\tp

Rem FPC Free Pascal system
set fpcpath=c:\pp\bin\win32

Rem DJGPP system
set djgppath=c:\djgpp\bin
set djgpp=c:\djgpp\djgpp.env

SET PATH=%djgppath%;%utilpath%;%BASEPATH%;%RKITPATH%
------------- snip here ---------

The result at boot time is:

c:\path
PATH=c:\djgpp\bin;x:\;x:\ink;x:\dcf;c:\windows;c:\windows\command;C:\PROGRA~1\WIN98RK

This is NOT directly applicable to XP and associated horrors.  The
idea is.  I don't know if subst works correctly for XP.  I do know
no machine of mine will ever have XP mounted.

-- 
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019