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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,129433ab43bf5aef X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.94.8 with SMTP id cy8mr509009wib.1.1358506759120; Fri, 18 Jan 2013 02:59:19 -0800 (PST) Path: i11ni4920wiw.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: cannot write to a file in Linux despite +rw permissions Date: Fri, 18 Jan 2013 10:59:18 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <1d536a59-c2e6-40d8-bf1e-fa7a0b4a923a@googlegroups.com> Mime-Version: 1.0 Injection-Date: Fri, 18 Jan 2013 10:59:18 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="da745e888d4a5182b5fda6212bbb0a63"; logging-data="29731"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dJXohdsPnzyBtFR5OowjNTf5OZUmFqFo=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:/m68JKh/y8gJgp9huStC9xOgmIw= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2013-01-18T10:59:18+00:00 List-Id: On Fri, 18 Jan 2013 02:13:55 -0800, Ada novice wrote: > Hello, > I am a newbie in Linux and I have recently installed swiftlinux, > which is Debian based. I am testing my Ada codes. They run well (I > have put GNAT GPL 2011 for now), except that I see that I cannot > write to text files. I have issued the command "chmod -R +rw" to > the parent folder but that doesn't help and neither did running > GPS as root help. > Since the code compiles and runs fine in GPS, I do not understand why > the file cannot be written in the above case with the X and Y values. > > Guess it must be something on Linux that I am not paying attention to. Works fine here (OpenSuse 11.3) gnatmake --version GNATMAKE 4.6.3 20120531 [gcc-4_6-branch revision 188067] Copyright (C) 1995-2011, Free Software Foundation, Inc. Check you are using the Gnat you think you are : which gnatmake /usr/bin/gnatmake In my case, that's the distribution's own (what you would get by typing sudo apt-get install gnat on Debian) I think the Adacore one would be in /usr/gnat/bin. The system will use whichever is first in the path; you can modify it as follows: echo $PATH /home/brian/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games export PATH=/usr/gnat/bin:$PATH echo $PATH /usr/gnat/bin:/home/brian/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/ usr/X11R6/bin:/usr/games: which gnatmake /usr/gnat/bin/gnatmake Here, both work on your test. But it is possible you have a broken install from Swiftlinux so it may be worth checking. - Brian