delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/07/06/09:06:54

Sender: burgers AT ecn DOT nl
Message-ID: <39647DF2.821626A@ecn.nl>
Date: Thu, 06 Jul 2000 14:39:14 +0200
From: Teun Burgers <burgers AT ecn DOT nl>
Organization: Netherlands Energy Research Foundation ECN
X-Mailer: Mozilla 4.51 [en] (X11; I; OSF1 V5.0 alpha)
X-Accept-Language: nl
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: DJGPP problem executing a script
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000706150646 DOT 25107A-100000 AT is>
Reply-To: djgpp-workers AT delorie DOT com

Eli Zaretskii wrote:
 
> If I'm right, then I don't understand how does Perl work for people (me
> included) whose DJGPP tree is not rooted at c:/djgpp.  ("/dev/env/DJDIR"
> trick might help, but I don't think that current Perl binaries were
> compiled with DJGPP v2.03.)

This I guess is precisely what the piece of code in Perl_DJGPP_init
does that I sent to this list on July 4th 2000 in this same thread.

It takes argv[0], looks for the last / and strips of the string
"/bin" before that. This last step fails when there is "\bin"
in the prefix which is why we get in @INC something
like c:\djgpp\bin/lib/perl5 instead of c:/djgpp/lib/perl5 as intended

Teun


-- 
Drs A.R. Burgers        Netherlands Energy Research Foundation ECN
Phone: +31-224-564959   Solar & Wind Energy, PV Cells & Modules
Fax  : +31-224-563214   P.O. Box 1
email: burgers AT ecn DOT nl   1755 ZG Petten, The Netherlands

- Raw text -


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