From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Migrating Ada complier and programs from Windows to LInux Date: Mon, 4 Apr 2016 09:46:52 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <570262dc$0$4107$e4fe514c@news.kpn.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Mon, 4 Apr 2016 16:43:40 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="48b46be33beed75863f69afa437f956b"; logging-data="16274"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Ju2ePLDMZHtSA9FfXiNk2ghP+41EiUFM=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: <570262dc$0$4107$e4fe514c@news.kpn.nl> X-Mozilla-News-Host: news://freenews.netfront.net Cancel-Lock: sha1:jA/v2X3rzrnO7+SQY0MGgH75Eqc= Xref: news.eternal-september.org comp.lang.ada:29971 Date: 2016-04-04T09:46:52-07:00 List-Id: On 04/04/2016 05:44 AM, ldries46 wrote: > I want to migrate some of my programs from windows to Linux. Therefore I tried > to install GNAT Programming Studio on Linux (XUbuntu). How did you do this? The normal way to do this on a Debian-derived Linux distribution such as (X)Ubuntu is to install GNAT, GPS, and gprbuild through your "software-manager" or "package-manager" program, possibly Synaptic. You might also use the command line sudo apt-get install gnat gprbuild Either way, this will install a recent version of FSF GNAT with everything in the right place, and everything should work fine. > I do encounter several problems: > 1. I can only in the .gpr files direct path for dource directories. With > relative path the files in my directories are not recognized apart of the > project This where the with GtkAda delivered gtkada.gpr uses relative path. > 2. When building a very simple program I encounter several errors in the > building phase with files not found (.so files) and and therefore other error > probably depemdent on these files. > > I suspect that there is somthing wrong with one or more Path variables but > cannot find which variables and what the variables should be I've never encountered your problem 1., but 2. sounds like a known issue using AdaCore versions of GNAT on Debian-based Linux. AdaCore's GNAT, IIRC, is developed for Red Hat Linux, which puts some libraries in different locations from Debian. This results in AdaCore GNAT looking for things in places where they aren't. The simple solution to this is to use the FSF GNAT provided by Debian; another is to put links in the places AdaCore GNAT expects things that link to where they actually are in Debian. -- Jeff Carter "Hold your temper. Count ten.... Now let 'er go. You got a good aim." Never Give a Sucker an Even Break 105