From: "Stefan Viljoen" Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP-Newbie needs help Date: Mon, 9 Aug 1999 23:19:14 +0300 Organization: The South African Internet Exchange Lines: 95 Message-ID: <7onh9j$3ne$5@ctb-nnrp1.saix.net> References: <7ok6vc$iqk$1 AT rohrpostix DOT uta4you DOT at> NNTP-Posting-Host: pc36-01-p09.nt.saix.net X-Trace: ctb-nnrp1.saix.net 934234227 3822 155.239.194.9 (9 Aug 1999 21:30:27 GMT) X-Complaints-To: abuse AT saix DOT net NNTP-Posting-Date: 9 Aug 1999 21:30:27 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Roland Moritz wrote in message news:7ok6vc$iqk$1 AT rohrpostix DOT uta4you DOT at... > When I try to compile my "hello world"-program, the following error occurs: > "Installation problem, cannot exec 'stubify': no such file or directory > (ENOENT)" This means one of two things (I think!): 1. DJGPP was not installed correctly DUMP! I hear you shout. But hear me out. Did you do the following: - Use the ZipPicker at http://www.delorie.com/djgpp/ This is a facility that ensures that you download all the files you need, and that you do no miss certain ones which can cause the irritating problem you describe here. "stubify" is a program that is located in djgpp\bin that is needed to enable you to compile DJGPP programs. - If you did use the ZipPicker, did you get the binutils? As far as I know, stubify.exe is in the binutils package - did you get this from the ZipPicker? - If you did get the binutils, did you extract them, and the other arhcives with the pkunzip -d switch? If you did not do this, all the files would have been dumped into the same directory and nothing would work (I think!). You need to extract the .ZIPs with the -d switch so that the directories stay preserved and everything can go where it must go. 2 - You did not set up the DJGPP environment variable The "DJGPP environment variable" must point tot he file djgpp\djgpp.env. To set it do set DJGPP=C:\djgpp\djgpp.env or wherever your djgpp.env file is. I personally use a DOS mode batch file to set up a DJGPP DOS box in my W95 system where I do all my coding - something like set DJGPP = C:\PROGRAMS\DJGPP\DJGPP.ENV set path = C:\WINDOWS;C:\WINDOWS\SYSTEM;C:\DJGPP\BIN;C:\DJGPP . . etc . . > Also, if i try to compile the demo Allegro-program, the compiler says he > can't find the "Allegro.h"-File, so I put it in the include-directory List, > and then he says, that he can't find the source file "demo.c" anymore. Hmm - it probably cannot find the Allegro.h file because you have not compiled allegro yet! You need to have a fully functional DJGPP installation before you can attempt to compile allegro, which is what you MUST do before you attempt to compile an allegro demo file - by defintion an Allegro demo file will NEVER compile unless you have compiled allegro first (since allegro is called by that demo program, such as DEMO.C) - a nice little "chicken & egg" problem. I do not know what you mean by it not finding the source demo.c anymore - what exactly goes wrong? > Please help me, I know that my questions may sound stupid, but I'm quite new > to C and DJGPP; I would also appreciate it a lot, if someone could just > explain to me every step necessary to setup DJGPP right, cause so far, I > couldn't compile a single program, because there always were some .h-Files > not found or something else wasn't configured the right way. This definitely sounds as if you have not compiled allegro before attempting to compile programs that reference it or / and that you did not get all the ZIPs you need to use djgpp (see above) and / or that you possibly did not extract with the maintain directory structure switch -d when you attempted to install the compiler. http://www.delorie.com/djgpp/ has detailed instructions on how to setup the compiler. Try it! If you do not succeed, please feel free to post here again or mail me for further info. We should be able to help you in a step by step do-this-did-it-work-yes-or-no approach. Good luck and fanx for choosing DJGPP!!! -- This message courtesy of RylanNet rylan AT intekom DOT co DOT za http://home.intekom.com/rylan/ -- StarWars for ever!.