Hello, I'm guessing that the root user doesn't have /usr/local/gnat/bin in the PATH. Try the following
sudo -s echo $PATH | grep "/usr/local/gnat/bin" || export PATH=$PATH\:/usr/local/gnat/bin port -v install gnat-gcc +gnatgpl exit You can also try sudo -E port install gnat-gcc +gnatgpl as -E preserves your environment when you enter the root shell. Alternatively, you can take a different approach where you don't need to use sudo at all (and you avoid all issues involved with launching a root shell), and is the practice that I use. Change ownership of /Applications/Macports and /opt to a user that you grant install privileges there (i.e. yourself, or create a special user for it if you want). sudo chmod -R `whoami` /opt sudo chmod -R `whoami` /Applications/MacPorts Then you will never have to use sudo again (which I think is an added level of protection for your system) when installing via MacPorts. As a note, also consider changing the ownership of /usr/local as well so you don't need root privileges there either. Hope this helps, Jason On Sat, Jan 22, 2011 at 5:34 PM, M <ms...@trakas.org> wrote: > Hi, > First time MacPorts user. I installed MacPorts 1.9.2 on Mac OS 10.6.5 > (Xcode 3.2.5). First port I wanted to install was gnat-gtkada. I ran: > "sudo port install gnat-gtkada". Everything went fine until I got this > message: > # Ada is self hosted (http://en.wikipedia.org/wiki/Self-hosting) > # > # You need to install an existing Ada compiler and then choose > # an appropiate variant. For more info use: > # > # port variants gnat-gcc > > I already have GNAT & AdaCore's GPS installed (20100603). Not knowing how > to tell MacPorts that GNAT is already installed, I tried this: "sudo port -v > install gnat-gcc +gnatgpl", and got this message: > # Ada is self hosted (http://en.wikipedia.org/wiki/Self-hosting) > # > # Bootstrap compiler not found. Please download and install from > # http://libre.adacore.com > > That's what I've already got installed. > How do I tell MacPorts that I have GNAT installed (and is already in my > command path at /usr/local/gnat/bin), so that I can get gtkada installed. > > Thanks > > _______________________________________________ > macports-users mailing list > macports-users@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macports-users > -- Jason M. Swails Quantum Theory Project, University of Florida Ph.D. Graduate Student 352-392-4032
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users