Mail Archives: djgpp/1997/01/26/23:16:51
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
>On Thu, 23 Jan 1997, Master of Zoul wrote:
>> I unzip them all into the djgpp root direc, and some of my programs,
>If the general advice that others gave you doesn't help, please post
>detailed information about what's not working, and you will get further
>help.
I think we've got him figured out. he downloaded from x2ftp.oulu.fi
which means he got some older packages, adn there was a few probelms
with 272, I remember. Anyway, I have a batch file I want you to look at
when you have a chance, I think it may help our newbie can't install
probelms, but I'd like some help with debugging. I know it is weird, but
it is always easier to debug somebody elses code, and never you own.
@ECHO OFF
REM %1 must be the SOURCE path & %2 must be the Dest path.
REM %3 must be the full path to PKUNZIP/UNZIP if not in ENV PATH
REM variable otherwise just PKUNZIP or UNZIP will do.
REM IF Target DIR does not exist, DJINST will create it.
REM DJINST expects several packages many people will not have, please
REM remember this when reading the Warnings.
REM
REM Check args
IF "%1" == "" GOTO ARGS
IF "%2" == "" GOTO ARGS
IF "%3" == "" GOTO ARGS
REM Make dest_path if not already present
IF NOT EXIST %2\NUL MKDIR %2
CHDIR %2
IF NOT EXIST %1\DJDEV*.ZIP GOTO NODJDEV
%3 -d -o %1\DJDEV*B.ZIP
:FAQ
IF NOT EXIST %1\FAQ*B.ZIP GOTO NOFAQ
%3 -d -o %1\FAQ*B.ZIP
:BNU
IF NOT EXIST %1\BNU*B.ZIP GOTO NOBNU
%3 -d -o %1\BNU*B.ZIP
:GCC
IF NOT EXIST %1\GCC*B.ZIP GOTO NOGCC
%3 -d -o %1\GCC*B.ZIP
:GDB
IF NOT EXIST %1\GDB*B.ZIP GOTO NOGDB
%3 -d -o %1\GDB*B.ZIP
:GPC
IF NOT EXIST %1\GPC*B.ZIP GOTO NOGPC
%3 -d -o %1\GPC*B.ZIP
:GPP
IF NOT EXIST %1\GPP*B.ZIP GOTO NOGPP
%3 -d -o %1\GPP*B.ZIP
:LGP
IF NOT EXIST %1\LGP*B.ZIP GOTO NOLGP
%3 -d -o %1\LGP*B.ZIP
:MAK
IF NOT EXIST %1\MAK*B.ZIP GOTO NOMAK
%3 -d -o %1\MAK*B.ZIP
:OBC
IF NOT EXIST %1\OBC*B.ZIP GOTO NOOBC
%3 -d -o %1\OBC*B.ZIP
:TXI
IF NOT EXIST TXI*B.ZIP GOTO NOTXI
%3 -d -o %1\TXI*B.ZIP
:CSDPMI
IF NOT EXIST CSDPMI*B.ZIP GOTO NOCSDPMI
%3 -d -o %1\CSDPMI*B.ZIP
:WMEMU
IF NOT EXIST WMEMU*B.ZIP GOTO NOWMEMU
%3 -d -o %1\WMEMU*B.ZIP
:DJCRX
IF NOT EXIST DJCRX*.ZIP GOTO NODJCRX
%3 -d -o %1\DJCRX*.ZIP
:RHIDE
IF NOT EXIST RHIDE*B.ZIP GOTO NORHIDE
%3 -d -o %1\RHIDE*B.ZIP
GOTO DONE
:NoDJDEV
ECHO WARNING: DJGPP Environment archive missing, You MUST have this
ECHO unless you have already installed it before
ECHO
ECHO.
ECHO Retrieve the package using
ECHO ftp://DJGPP_MIRROR/v2/djdev*.zip
ECHO.
PAUSE
GOTO FAQ
:NOFAQ
ECHO WARNING: FAQ missing, you really should get the FAQs so you
ECHO don't piss off Eli!
ECHO.
ECHO If wanted/needed, retrieve the package using
ECHO ftp://DJGPP_MIRROR/v2/faq*b.zip
ECHO.
PAUSE
GOTO BNU
:NOBNU
ECHO
ECHO WARNING: Binary util package missing, this is a MANDATORY
ECHO package.
ECHO.
ECHO If wanted/needed, retrieve the package using
ECHO ftp://DJGPP_MIRROR/v2gnu/bnu*b.zip
ECHO.
PAUSE
GOTO GCC
:NOGCC
ECHO WARNING: GNU C compiler archive not found, it is real hard to
ECHO compile things without it!
ECHO.
ECHO If wanted/needed, retrieve the package using
ECHO ftp://DJGPP_MIRROR/v2gnu/gcc*b.zip
ECHO.
PAUSE
GOTO GDB
:NOGDB
ECHO WARNING: GNU Debugger archive missing, it really is a nice
ECHO debugger.
ECHO.
ECHO If wanted/needed, retrieve the package using
ECHO ftp://DJGPP_MIRROR/v2gnu/gdb*b.zip
ECHO.
PAUSE
GOTO GPC
:NOGPC
ECHO WARNING: GNU Pascal compiler archive missing, Pascal support
ECHO will NOT be installed!
ECHO.
ECHO If wanted/needed, retrieve the package using
ECHO ftp://DJGPP_MIRROR/v2gnu/gpc*b.zip
ECHO.
PAUSE
GOTO GPP
:NOGPP
ECHO WARNING: C++ Compiler missing, C++ support will NOT be
ECHO installed.
ECHO.
ECHO If wanted/needed, retrieve the package using
ECHO ftp://DJGPP_MIRROR/v2gnu/gpp*b.zip
ECHO.
PAUSE
GOTO LGP
:NOLGP
ECHO WARNING: C++ Libraries not present, GO DOWNLOAD if you wish to
ECHO use C++!
ECHO.
ECHO If wanted/needed, retrieve the package using
ECHO ftp://DJGPP_MIRROR/v2gnu/lgp*b.zip
ECHO.
PAUSE
GOTO MAK
:NOMAK
ECHO WARNING: MAKE missing, I strongly suggest you get THIS.
ECHO However, it ECHO isn't required.
ECHO.
ECHO If wanted/needed, retrieve the package using
ECHO ftp://DJGPP_MIRROR/v2gnu/mak*b.zip
ECHO.
PAUSE
GOTO OBC
:NOOBC
ECHO WARNING: OBC-C compiler archive missing, OBJ-C support will not
ECHO be installed.
ECHO.
ECHO If wanted/needed, retrieve the package using
ECHO ftp://DJGPP_MIRROR/v2gnu/obc*b.zip
ECHO.
PAUSE
GOTO TXI
:NOTXI
ECHO
ECHO WARNING: Info archive missing, you have NO DOCS!
ECHO.
ECHO If wanted/needed, retrieve the package using
ECHO ftp://DJGPP_MIRROR/v2gnu/txi*b.zip
ECHO.
PAUSE
GOTO CSDPMI
:NOCSDPMI
ECHO
ECHO WARNING: DPMI host missing, If you are running DOS as your OS you
ECHO need a 32bit DPMI host, any 32-bit host will work, but
ECHO EMM386 is NOT a 32-bit DPMI host.
ECHO.
ECHO If you need a host, retrieve the package using
ECHO ftp://DJGPP_MIRROR/v2misc/csdpmi*b.zip
ECHO.
PAUSE
GOTO WMEMU
:NOWMEMU
ECHO
ECHO WARNING: No Floating-point emulator found , I strongly suggest
ECHO you get THIS or you won't be able to target
ECHO 386SX/486SX systems.
ECHO.
ECHO If wanted/needed, retrieve the package using
ECHO ftp://DJGPP_MIRROR/v2misc/wmemu*b.zip
ECHO.
PAUSE
GOTO DJCRX
:NODJCRX
ECHO WARNING: Cross-compiler kit archive not found.
ECHO.
ECHO If wanted/needed, retrieve the package using
ECHO ftp://DJGPP_MIRROR/v2/djcrx*.zip
ECHO.
PAUSE
GOTO RHIDE
:NORHIDE
ECHO WARNING: RHIDE not found. RHIDE is an IDE for DJGPP similar to
ECHO DOS based IDE.
ECHO.
ECHO If wanted/needed, retrieve the package using
ECHO ftp://DJGPP_MIRROR/v2apps/rhide*b.zip
PAUSE
:DONE
ECHO.
PAUSE
CLS
ECHO.
ECHO.
ECHO Installation complete. Any Warnings given should be carefully
ECHO read and considered. Some are minor such as no OBJ-C compiler
ECHO since you probably aren't going to use OBJ-C. Others are
ECHO serious such as missing Binary utils which are required for
ECHO GCC to work correctly. Warnings that sound a beep should be
ECHO paid particular attention to.
ECHO.
ECHO.
PAUSE
GOTO BYE
:ARGS
ECHO
CLS
ECHO.
ECHO ERROR: improper invoking of DJINST.
ECHO.
ECHO Use: DJINST source_path dest_path [d:\path\]PKUNZIP
ECHO.
ECHO or
ECHO.
ECHO Use: DJINST source_path dest_path [d:\path\]UNZIP
ECHO.
PAUSE
GOTO EOB
:BYE
CLS
IF EXIST %1\README.1ST GOTO README
ECHO
ECHO.
ECHO Missing file README.1st. You should have and READ this file.
ECHO For now, please set the Environmental variable DJGPP like so
ECHO SET DJGPP = %2\DJGPP.ENV
ECHO.
ECHO Then edit the file %2\DJGPP.ENV and change the line that reads
ECHO DJDIR=* to DJDIR=%2
ECHO.
ECHO Now, you should be ready to anything DJGPP V2 has to offer
providing
ECHO you meet the hardware requirements which is why you should have
read
ECHO README.1ST already.
ECHO.
ECHO README.1ST is available using
ECHO ftp://DJGPP_MIRROR/v2/readme.1st
PAUSE
GOTO EOB
:README
CLS
MOVE %1/README.1ST %2\README.1ST
MORE < %2\README.1ST
PAUSE
CLS
ECHO.
ECHO In reference to ftp://DJGPP_MIRROR/, DJGPP_MIRROR is a
ECHO mnumonic that represents your local SimTelNet mirror or
ECHO delorie.com along with the necessary path structure to reach
ECHO the /djgpp/ path. IE ftp://oak.oakland.edu/pub/simtelnet/gnu/djgpp
PAUSE
:EOB
CLS
CD\
- Raw text -