Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] Kepler environment management *** oops ?

Strange. In the "replace" case, it exports PATH and HOME variables, whereas in the "append" case it doesn't. I would have thought the "replace" case would not work since you're changing HOME to a location that no longer has a .bashrc. 

Ultimately the command that is run is 'bash -l /tmp/script' so you could experiment with this to see what stops the .bashrc from being loaded.

Greg

On Jul 16, 2013, at 4:37 AM, Christoph Pospiech <Christoph.Pospiech@xxxxxxxxxx> wrote:

> On Monday, July 15, 2013 11:31:03 Greg Watson <g.watson@xxxxxxxxxxxx> wrote:
>> On Jul 10, 2013, at 10:07 AM, Christoph Pospiech 
> <Christoph.Pospiech@xxxxxxxxxx> wrote:
>>> If I go to Project Mgr -> Properties -> C/C++ Build -> Environment and
>>> tick
>>> "Replace native environment with specified one", the .bashrc gets executed
>>> and the module function will be found. If ticking "Append variables to
>>> native environment", .bashrc is not executed and the module function is
>>> unknown.>
>>> 
>>> 
>>> Is this something that I should expect ? Another candidate for FAQ ?
>> 
>> I wouldn't have expected this behavior, but somehow the environment must be
>> being changed so that the .bashrc no longer gets executed. You could try
>> turning on the logging option (Preferences>Remote
>> Development>RemoteTools>Environments>Generic Host) to see what commands are
>> actually being executed. Note you need to restart Eclipse for this setting
>> to be used.
>> 
>> Regards,
>> Greg
> 
> Greg,
> 
> I got the two log files. I scratched the log before hitting the build button 
> and exported it immediately after. Then I executed make clean, switched from 
> "Replace native environment with specified one" to "Append variables to native 
> environment" and redid.
> 
> Looking at them, I have difficulties to spot the difference - there must be one 
> -- somewhere. A "diff -u" finds about every line due to different time stamps.
> 
> So I am attaching the two files below. Since I don't know how well the mailing 
> list deals with mail attachments, I am also copying you directly. Also, anyone 
> else wanting to have a look at them is very welcome. If the ptp-user mailing 
> list doesn't like attachments, just sent me ordinary email to the address 
> below and I will provide the files ASAP.
> 
> BTW - Even in the "replace" case (where the module command is found) there is 
> still the issue that it doesn't load all modules, as they are loaded in a 
> wrong order and some are a prerequisite of others. I remember that this was 
> discussed in this mailing list before (for Iuno) - do we have a cure now in 
> Kepler ? How ?
> -- 
> 
> Mit freundlichen Grüßen / Kind regards
> 
> Dr. Christoph Pospiech
> High Performance & Parallel Computing
> Phone: +49-351 86269826
> Mobile: +49-171-765 5871
> E-Mail: christoph.pospiech@xxxxxxxxxx
> -------------------------------------------------------------------------------------------------------------------------------------------
> IBM Deutschland GmbH / Vorsitzender des Aufsichtsrats: Martin Jetter
> Geschäftsführung: Martina Koederitz (Vorsitzende), Reinhard Reschke, Dieter 
> Scholz, Gregor Pillen, Joachim Heel, Christian Noll
> Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 
> 14562 / WEEE-Reg.-Nr. DE 99369940 
> <replace_error.log><append_error.log>_______________________________________________
> ptp-user mailing list
> ptp-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ptp-user



Back to the top