From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: How to fix 'Could not locate executable on path: gnatmake'
Date: Fri, 07 May 2010 11:49:40 +0200
Date: 2010-05-07T11:49:40+02:00 [thread overview]
Message-ID: <87vdb0yrbf.fsf@ludovic-brenta.org> (raw)
In-Reply-To: f002267e-9126-4771-8519-a1119177b6c3@o14g2000yqb.googlegroups.com
resander <kresander@yahoo.com> writes:
> I added /usr/gnat/bin to the (Ubuntu 10.04) bashrc startup script of
> the user 'ken' from which I want to use GPS. The echo command
>
> echo $PATH
> /usr/gnat/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/
> bin:/usr/games
>
> issued after login to 'ken' shows that /usr/gnat/bin is on the path.
[...]
> but from GPS 'Could not locate executable on path: gnatmake' appears
> when I request compile file from adaptestproj directory.
>
> I cannot see what is wrong. Would be grateful for advice.
The $PATH you set in ~/.bashrc is only valid for bash, i.e. only in the
terminal window you open. If you start GPS from a graphical menu, this
menu does not run in your shell therefore cannot see your changed $PATH,
so neither can GPS.
For GPS to see your $PATH, two conditions must be met:
* your ~/.bashrc exports PATH (not just sets it)
* you must start GPS from bash, i.e. from a command line.
Or, simply upgrade to Debian :)
HTH
--
Ludovic Brenta.
next prev parent reply other threads:[~2010-05-07 9:49 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-07 8:33 How to fix 'Could not locate executable on path: gnatmake' resander
2010-05-07 9:49 ` Ludovic Brenta [this message]
2010-05-07 11:40 ` Gautier write-only
2010-05-07 15:47 ` Ludovic Brenta
2010-05-07 16:50 ` resander
2010-05-07 17:42 ` Ludovic Brenta
2010-05-07 11:43 ` Georg Bauhaus
2010-05-07 10:02 ` Dmitry A. Kazakov
2010-05-08 5:43 ` Stephen Leake
2010-05-08 16:25 ` Britt Snodgrass
2010-05-08 18:19 ` resander
2010-05-08 19:55 ` Ludovic Brenta
2010-05-09 10:59 ` resander
2010-05-09 13:04 ` Ludovic Brenta
2010-05-10 14:47 ` resander
2010-05-10 14:55 ` Ludovic Brenta
2010-05-08 18:24 ` resander
2010-05-07 13:05 ` Harry Tucker
2010-05-07 13:09 ` Harry Tucker
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox