comp.lang.ada
 help / color / mirror / Atom feed
* Ada download
@ 2018-01-06  0:54 sophia.adampour
  2018-01-06 11:54 ` Brian Drummond
  0 siblings, 1 reply; 20+ messages in thread
From: sophia.adampour @ 2018-01-06  0:54 UTC (permalink / raw)


Hi! I get this error message when I try to download Ada on my MacBook Pro 2017 using "doinstall" on the terminal:

  This script is provided to simplify the installation of the
     x86_64-apple-darwin14.5.0
   binary version of the GNAT GPL Edition Ada (2012, 2005, 95, and 83)
   environment maintained by AdaCore. For information on commercial
   support please contact sales@adacore.com.

   This script will ask you how you would like to configure GNAT.
   Confirmation is required before any write action is taken.

   Please press RETURN to continue.

RETURN












    To install GNAT, you need to specify a base directory.
    All the files will be installed in subdirectories
    that are created under this directory.

    Important Note: You should not use ~ or ~username wildcards
    when specifying this directory name.

    In which directory do you want to install GNAT? [/usr/local/gnat]:
/usr/local/gnat2017


    The GNAT GPL Edition installation directory will be:
      /usr/local/gnat2017
    Is this correct ? Type 'Y' if so, otherwise type 'N' and you'll
    be prompted for another directory name.

    Do you want to continue ? [yY|nN]:

Y





   GNAT GPL Edition is now about to be installed in
      /usr/local/gnat2017.
   Type 'Y' if you want to proceed with installation or any other key
   if you wish to abort.

   Do you want to proceed with installation ? [yY|nN]:

Y
rm -fr "/usr/local/gnat2017/lib/gcc/x86_64-apple-darwin14.5.0/6.3.1"/rts*
rm -fr "/usr/local/gnat2017/lib/gcc/x86_64-apple-darwin14.5.0/6.3.1/adainclude" "/usr/local/gnat2017/lib/gcc/x86_64-apple-darwin14.5.0/6.3.1/adalib"
rm -fr "/usr/local/gnat2017/share/doc/gnat"
rm -fr "/usr/local/gnat2017/share/examples/gnat"
rm -fr "/usr/local/gnat2017"/share/gprconfig
mkdir -p "/usr/local/gnat2017"
mkdir: /usr/local/gnat2017: Permission denied
make: [mkdirs] Error 1 (ignored)
rm -f "/usr/local/gnat2017"/lib/libgcc*
rm -f "/usr/local/gnat2017"/bin/gnat[!p]*
rm -f "/usr/local/gnat2017"/bin/gnatpp*
rm -f "/usr/local/gnat2017"/bin/gnatprep*
rm -f "/usr/local/gnat2017"/bin/gnat
rm -f "/usr/local/gnat2017"/bin/gpr*
rm -f "/usr/local/gnat2017"/bin/gcc "/usr/local/gnat2017"/bin/x86_64-apple-darwin14.5.0-gcc
for d in bin lib libexec lib32 lib64 include \
                 doc examples share etc DLLs x86_64-apple-darwin14.5.0; do \
	   if [ -d "$d" ]; then \
	      tar cf - "$d" | (cd "/usr/local/gnat2017" && tar xf -); \
	   fi \
	done
/bin/sh: line 0: cd: /usr/local/gnat2017: No such file or directory
/bin/sh: line 0: cd: /usr/local/gnat2017: No such file or directory
/bin/sh: line 0: cd: /usr/local/gnat2017: No such file or directory
/bin/sh: line 0: cd: /usr/local/gnat2017: No such file or directory
/bin/sh: line 0: cd: /usr/local/gnat2017: No such file or directory
/bin/sh: line 0: cd: /usr/local/gnat2017: No such file or directory
# Override the mkheaders target assignment on solaris so we apply the
# correct set of fixinclude hacks. This set depends on the solaris
# version, the default assignment is established from the target for
# which the compiler was configured and we might be installing
# elsewhere (e.g. installing on a 2.10 host from a binary configure
# for 2.9)
solaris_target=`uname -rs|sed -n -e 's/SunOS 5/solaris2/p'`; \
	if [ "$solaris_target" ]; then \
	  sed -e "s:target=sparc-sun-solaris2[0-9\.]*:target=sparc-sun-$solaris_target:" \
	    "/usr/local/gnat2017/libexec/gcc/x86_64-apple-darwin14.5.0/6.3.1/install-tools/mkheaders" > mkheaders.tmp \
	  && chmod +x mkheaders.tmp && mv mkheaders.tmp "/usr/local/gnat2017/libexec/gcc/x86_64-apple-darwin14.5.0/6.3.1/install-tools/mkheaders"; \
	fi
"/usr/local/gnat2017/libexec/gcc/x86_64-apple-darwin14.5.0/6.3.1/install-tools/mkheaders" -v -v "/usr/local/gnat2017"
/bin/sh: /usr/local/gnat2017/libexec/gcc/x86_64-apple-darwin14.5.0/6.3.1/install-tools/mkheaders: No such file or directory
make: *** [ins-basic] Error 127


   An error occurred during installation. You can find a complete log
   of the installation in /var/folders/h7/dgk0jtzs5tzfh1rh1rn2c1hw0000gn/T//install.log.1955.
   Don't hesitate to send a message to report@adacore.com with a
   meaningful subject line including the keyword "GNAT" if you have
   any question about this installation process.

logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.


I am thankful for any guidance and help, I really want Ada on my computer

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-06  0:54 Ada download sophia.adampour
@ 2018-01-06 11:54 ` Brian Drummond
  2018-01-06 12:42   ` sophia.adampour
  0 siblings, 1 reply; 20+ messages in thread
From: Brian Drummond @ 2018-01-06 11:54 UTC (permalink / raw)


On Fri, 05 Jan 2018 16:54:52 -0800, sophia.adampour wrote:

In the middle of that log output I'm seeing

> mkdir -p "/usr/local/gnat2017"
> mkdir: /usr/local/gnat2017: Permission denied make: [mkdirs] Error 1
> (ignored)

As subsequent errors refer to a missing directory e.g.
/bin/sh: line 0: cd: /usr/local/gnat2017: No such file or directory

there would appear to be a permissions problem with the mkdir command. 

Do you need to be superuser to perform this install? I'm no Apple expert 
so I'd have to stop there.

-- Brian


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-06 11:54 ` Brian Drummond
@ 2018-01-06 12:42   ` sophia.adampour
  2018-01-06 13:36     ` Simon Wright
  0 siblings, 1 reply; 20+ messages in thread
From: sophia.adampour @ 2018-01-06 12:42 UTC (permalink / raw)



> Do you need to be superuser to perform this install? I'm no Apple expert 
> so I'd have to stop there.


I am logged in as the main user. There is only one user on my Mac

Thank you for any help!


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-06 12:42   ` sophia.adampour
@ 2018-01-06 13:36     ` Simon Wright
  2018-01-06 19:17       ` sophia.adampour
  2018-01-06 19:21       ` sophia.adampour
  0 siblings, 2 replies; 20+ messages in thread
From: Simon Wright @ 2018-01-06 13:36 UTC (permalink / raw)


sophia.adampour@gmail.com writes:

>> Do you need to be superuser to perform this install? I'm no Apple
>> expert so I'd have to stop there.
>
>
> I am logged in as the main user. There is only one user on my Mac
>
> Thank you for any help!

Sophia,

You're installing to a place that requires superuser ('root')
permissions.

As the only user, you run normally without superuser permissions, but
yours is an administrator account, which means you have (given yourself
at installation) permission to run temporarily as superuser. When you've
installed/upgraded software, you'll have seen dialog boxes asking you to
enter your password to allow the installation (that is, your login
password, not your Apple ID). This is a security feature, to make sure
that the alteration to your system is OK, not being done by some evil
trojan or someone who's got at your machine while you were away for a
moment.

You do the installation from the command line by

   $ sudo ./doinstall

and the system will respond

   Password:

(I see a little shadowed key icon after the ':'): enter your login
password and the installation should carry on OK.

'man sudo' for more info than you need about sudo!

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-06 13:36     ` Simon Wright
@ 2018-01-06 19:17       ` sophia.adampour
  2018-01-06 20:05         ` Simon Wright
  2018-01-06 19:21       ` sophia.adampour
  1 sibling, 1 reply; 20+ messages in thread
From: sophia.adampour @ 2018-01-06 19:17 UTC (permalink / raw)


I have done so, I think, but I still get this:


Last login: Sat Jan  6 20:11:39 on ttys000
Adampours-MacBook-Pro:~ adampour$ /Users/adampour/Downloads/gnat-gpl-2017-x86_64-darwin-bin/doinstall ; exit;























   This script is provided to simplify the installation of the
     x86_64-apple-darwin14.5.0
   binary version of the GNAT GPL Edition Ada (2012, 2005, 95, and 83)
   environment maintained by AdaCore. For information on commercial
   support please contact sales@adacore.com.

   This script will ask you how you would like to configure GNAT.
   Confirmation is required before any write action is taken.

   Please press RETURN to continue.

RETURN












    To install GNAT, you need to specify a base directory.
    All the files will be installed in subdirectories
    that are created under this directory.

    Important Note: You should not use ~ or ~username wildcards
    when specifying this directory name.

    In which directory do you want to install GNAT? [/usr/local/gnat]:
/usr/local/gnat2017


    The GNAT GPL Edition installation directory will be:
      /usr/local/gnat2017
    Is this correct ? Type 'Y' if so, otherwise type 'N' and you'll
    be prompted for another directory name.

    Do you want to continue ? [yY|nN]:

Y





   GNAT GPL Edition is now about to be installed in
      /usr/local/gnat2017.
   Type 'Y' if you want to proceed with installation or any other key
   if you wish to abort.

   Do you want to proceed with installation ? [yY|nN]:

y
rm -fr "/usr/local/gnat2017/lib/gcc/x86_64-apple-darwin14.5.0/6.3.1"/rts*
rm -fr "/usr/local/gnat2017/lib/gcc/x86_64-apple-darwin14.5.0/6.3.1/adainclude" "/usr/local/gnat2017/lib/gcc/x86_64-apple-darwin14.5.0/6.3.1/adalib"
rm -fr "/usr/local/gnat2017/share/doc/gnat"
rm -fr "/usr/local/gnat2017/share/examples/gnat"
rm -fr "/usr/local/gnat2017"/share/gprconfig
mkdir -p "/usr/local/gnat2017"
mkdir: /usr/local/gnat2017: Permission denied
make: [mkdirs] Error 1 (ignored)
rm -f "/usr/local/gnat2017"/lib/libgcc*
rm -f "/usr/local/gnat2017"/bin/gnat[!p]*
rm -f "/usr/local/gnat2017"/bin/gnatpp*
rm -f "/usr/local/gnat2017"/bin/gnatprep*
rm -f "/usr/local/gnat2017"/bin/gnat
rm -f "/usr/local/gnat2017"/bin/gpr*
rm -f "/usr/local/gnat2017"/bin/gcc "/usr/local/gnat2017"/bin/x86_64-apple-darwin14.5.0-gcc
for d in bin lib libexec lib32 lib64 include \
                 doc examples share etc DLLs x86_64-apple-darwin14.5.0; do \
	   if [ -d "$d" ]; then \
	      tar cf - "$d" | (cd "/usr/local/gnat2017" && tar xf -); \
	   fi \
	done
/bin/sh: line 0: cd: /usr/local/gnat2017: No such file or directory
/bin/sh: line 0: cd: /usr/local/gnat2017: No such file or directory
/bin/sh: line 0: cd: /usr/local/gnat2017: No such file or directory
/bin/sh: line 0: cd: /usr/local/gnat2017: No such file or directory
/bin/sh: line 0: cd: /usr/local/gnat2017: No such file or directory
/bin/sh: line 0: cd: /usr/local/gnat2017: No such file or directory
# Override the mkheaders target assignment on solaris so we apply the
# correct set of fixinclude hacks. This set depends on the solaris
# version, the default assignment is established from the target for
# which the compiler was configured and we might be installing
# elsewhere (e.g. installing on a 2.10 host from a binary configure
# for 2.9)
solaris_target=`uname -rs|sed -n -e 's/SunOS 5/solaris2/p'`; \
	if [ "$solaris_target" ]; then \
	  sed -e "s:target=sparc-sun-solaris2[0-9\.]*:target=sparc-sun-$solaris_target:" \
	    "/usr/local/gnat2017/libexec/gcc/x86_64-apple-darwin14.5.0/6.3.1/install-tools/mkheaders" > mkheaders.tmp \
	  && chmod +x mkheaders.tmp && mv mkheaders.tmp "/usr/local/gnat2017/libexec/gcc/x86_64-apple-darwin14.5.0/6.3.1/install-tools/mkheaders"; \
	fi
"/usr/local/gnat2017/libexec/gcc/x86_64-apple-darwin14.5.0/6.3.1/install-tools/mkheaders" -v -v "/usr/local/gnat2017"
/bin/sh: /usr/local/gnat2017/libexec/gcc/x86_64-apple-darwin14.5.0/6.3.1/install-tools/mkheaders: No such file or directory
make: *** [ins-basic] Error 127


   An error occurred during installation. You can find a complete log
   of the installation in /var/folders/h7/dgk0jtzs5tzfh1rh1rn2c1hw0000gn/T//install.log.1238.
   Don't hesitate to send a message to report@adacore.com with a
   meaningful subject line including the keyword "GNAT" if you have
   any question about this installation process.

logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-06 13:36     ` Simon Wright
  2018-01-06 19:17       ` sophia.adampour
@ 2018-01-06 19:21       ` sophia.adampour
  1 sibling, 0 replies; 20+ messages in thread
From: sophia.adampour @ 2018-01-06 19:21 UTC (permalink / raw)


This is what I get on my terminal:

Last login: Sat Jan  6 20:01:57 on ttys000
Adampours-MacBook-Pro:~ adampour$ sudo ./doinstall
Password:
sudo: ./doinstall: command not found
Adampours-MacBook-Pro:~ adampour$ 










^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-06 19:17       ` sophia.adampour
@ 2018-01-06 20:05         ` Simon Wright
  2018-01-08 12:21           ` sophia.adampour
  0 siblings, 1 reply; 20+ messages in thread
From: Simon Wright @ 2018-01-06 20:05 UTC (permalink / raw)


sophia.adampour@gmail.com writes:

> Adampours-MacBook-Pro:~ adampour$ /Users/adampour/Downloads/gnat-gpl-2017-x86_64-darwin-bin/doinstall ; exit;

Oh, sorry.

I'm so used to the-way-I-do-it that I didn't consider this.

I would have executed doinstall from the directory it was found in: so,
in your case,

$ cd ~/Downloads/gnat-gpl-2017-x86_64-darwin-bin
$ sudo ./doinstall

('~' in the first line means "the currently logged in user's (i.e. your)
home directory"; '.' in the second line means "the current directory")

Alternatively, giving the full file path as you did,

$ sudo /Users/adampour/Downloads/gnat-gpl-2017-x86_64-darwin-bin/doinstall


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-06 20:05         ` Simon Wright
@ 2018-01-08 12:21           ` sophia.adampour
  2018-01-08 18:53             ` sophia.adampour
  2018-01-08 21:29             ` Simon Wright
  0 siblings, 2 replies; 20+ messages in thread
From: sophia.adampour @ 2018-01-08 12:21 UTC (permalink / raw)



> > Adampours-MacBook-Pro:~ adampour$ /Users/adampour/Downloads/gnat-gpl-2017-x86_64-darwin-bin/doinstall ; exit;
> 
> Oh, sorry.
> 
> I'm so used to the-way-I-do-it that I didn't consider this.
> 
> I would have executed doinstall from the directory it was found in: so,
> in your case,
> 
> $ cd ~/Downloads/gnat-gpl-2017-x86_64-darwin-bin
> $ sudo ./doinstall
> 
> ('~' in the first line means "the currently logged in user's (i.e. your)
> home directory"; '.' in the second line means "the current directory")
> 
> Alternatively, giving the full file path as you did,
> 
> $ sudo /Users/adampour/Downloads/gnat-gpl-2017-x86_64-darwin-bin/doinstall

It worked now! Fantastic, thank you so much!

Do you have any advise for what I should do now?
This is the message:

GNAT GPL is now installed. To launch it, you must put
      /usr/local/gnat2017/bin
   in front of your PATH environment variable. The following
   commands enable you to do this:
      PATH="/usr/local/gnat2017/bin:$PATH"; export PATH  (Bourne shell)
      setenv PATH "/usr/local/gnat2017/bin:$PATH"        (C shell)
   Thank you for installing GNAT GPL Edition!
 


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-08 12:21           ` sophia.adampour
@ 2018-01-08 18:53             ` sophia.adampour
  2018-01-08 20:13               ` Dennis Lee Bieber
  2018-01-08 20:34               ` Anh Vo
  2018-01-08 21:29             ` Simon Wright
  1 sibling, 2 replies; 20+ messages in thread
From: sophia.adampour @ 2018-01-08 18:53 UTC (permalink / raw)


It finally worked! 
I got this message:

Last login: Mon Jan  8 13:08:59 on ttys000
Adampours-MacBook-Pro:~ adampour$ sudo /Users/adampour/Downloads/gnat-gpl-2017-x86_64-darwin-bin/doinstall
Password:






















   This script is provided to simplify the installation of the
     x86_64-apple-darwin14.5.0
   binary version of the GNAT GPL Edition Ada (2012, 2005, 95, and 83)
   environment maintained by AdaCore. For information on commercial
   support please contact sales@adacore.com.

   This script will ask you how you would like to configure GNAT.
   Confirmation is required before any write action is taken.

   Please press RETURN to continue.

RETURN












    To install GNAT, you need to specify a base directory.
    All the files will be installed in subdirectories
    that are created under this directory.

    Important Note: You should not use ~ or ~username wildcards
    when specifying this directory name.

    In which directory do you want to install GNAT? [/usr/local/gnat]:
/usr/local/gnat2017


    The GNAT GPL Edition installation directory will be:
      /usr/local/gnat2017
    Is this correct ? Type 'Y' if so, otherwise type 'N' and you'll
    be prompted for another directory name.

    Do you want to continue ? [yY|nN]:

Y





   GNAT GPL Edition is now about to be installed in
      /usr/local/gnat2017.
   Type 'Y' if you want to proceed with installation or any other key
   if you wish to abort.

   Do you want to proceed with installation ? [yY|nN]:

Y
rm -fr "/usr/local/gnat2017/lib/gcc/x86_64-apple-darwin14.5.0/6.3.1"/rts*
rm -fr "/usr/local/gnat2017/lib/gcc/x86_64-apple-darwin14.5.0/6.3.1/adainclude" "/usr/local/gnat2017/lib/gcc/x86_64-apple-darwin14.5.0/6.3.1/adalib"
rm -fr "/usr/local/gnat2017/share/doc/gnat"
rm -fr "/usr/local/gnat2017/share/examples/gnat"
rm -fr "/usr/local/gnat2017"/share/gprconfig
mkdir -p "/usr/local/gnat2017"
rm -f "/usr/local/gnat2017"/lib/libgcc*
rm -f "/usr/local/gnat2017"/bin/gnat[!p]*
rm -f "/usr/local/gnat2017"/bin/gnatpp*
rm -f "/usr/local/gnat2017"/bin/gnatprep*
rm -f "/usr/local/gnat2017"/bin/gnat
rm -f "/usr/local/gnat2017"/bin/gpr*
rm -f "/usr/local/gnat2017"/bin/gcc "/usr/local/gnat2017"/bin/x86_64-apple-darwin14.5.0-gcc
for d in bin lib libexec lib32 lib64 include \
                 doc examples share etc DLLs x86_64-apple-darwin14.5.0; do \
	   if [ -d "$d" ]; then \
	      tar cf - "$d" | (cd "/usr/local/gnat2017" && tar xf -); \
	   fi \
	done
# Override the mkheaders target assignment on solaris so we apply the
# correct set of fixinclude hacks. This set depends on the solaris
# version, the default assignment is established from the target for
# which the compiler was configured and we might be installing
# elsewhere (e.g. installing on a 2.10 host from a binary configure
# for 2.9)
solaris_target=`uname -rs|sed -n -e 's/SunOS 5/solaris2/p'`; \
	if [ "$solaris_target" ]; then \
	  sed -e "s:target=sparc-sun-solaris2[0-9\.]*:target=sparc-sun-$solaris_target:" \
	    "/usr/local/gnat2017/libexec/gcc/x86_64-apple-darwin14.5.0/6.3.1/install-tools/mkheaders" > mkheaders.tmp \
	  && chmod +x mkheaders.tmp && mv mkheaders.tmp "/usr/local/gnat2017/libexec/gcc/x86_64-apple-darwin14.5.0/6.3.1/install-tools/mkheaders"; \
	fi
"/usr/local/gnat2017/libexec/gcc/x86_64-apple-darwin14.5.0/6.3.1/install-tools/mkheaders" -v -v "/usr/local/gnat2017"
Fixing headers into /usr/local/gnat2017/lib/gcc/x86_64-apple-darwin14.5.0/6.3.1/include-fixed for x86_64-apple-darwin14.5.0 target
No forbidden identifiers defined by this target
Finding directories and links to directories
 Searching /usr/include/.
 Searching /usr/include/./python2.6
 Searching /usr/include/./python2.7
Making symbolic directory links
Fixing directory /usr/include into /usr/local/gnat2017/lib/gcc/x86_64-apple-darwin14.5.0/6.3.1/include-fixed
Applying io_quotes_def            to apache2/modperl_common_util.h
Applying io_quotes_def            to curl/curlver.h
Applying ctrl_quotes_def          to editline/readline.h
Applying stdio_va_list_clients    to krb5.h
Applying hpux8_bogus_inlines      to math.h
Applying math_exception           to math.h
Fixed:  math.h
Applying io_quotes_def            to net/if_media.h
Applying io_quotes_def            to net-snmp/library/container.h
Applying ctrl_quotes_def          to readline/history.h
Applying ctrl_quotes_def          to readline/readline.h
Applying io_quotes_use            to security/audit/audit_ioctl.h
Applying darwin_stdint_1          to stdint.h
Applying darwin_stdint_2          to stdint.h
Applying darwin_stdint_3          to stdint.h
Applying darwin_stdint_4          to stdint.h
Applying darwin_stdint_5          to stdint.h
Applying darwin_stdint_6          to stdint.h
Applying darwin_stdint_7          to stdint.h
Fixed:  stdint.h
Applying sysv68_string            to string.h
Applying io_quotes_def            to sys/cdefs.h
Applying io_quotes_def            to sys/ioccom.h
Applying io_quotes_def            to sys/ttycom.h
Applying io_quotes_use            to sys/ttycom.h
Fixing directory /usr/include/python2.6 into /usr/local/gnat2017/lib/gcc/x86_64-apple-darwin14.5.0/6.3.1/include-fixed/root/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
Fixing directory /usr/include/python2.7 into /usr/local/gnat2017/lib/gcc/x86_64-apple-darwin14.5.0/6.3.1/include-fixed/root/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
Cleaning up unneeded directories:
fixincludes is done
case `uname` in \
	   *_NT*) (cd "/usr/local/gnat2017/lib/gcc/x86_64-apple-darwin14.5.0/6.3.1"/adalib;chmod a-w *.ali) ;; \
	esac
cat "/usr/local/gnat2017/share/examples/gnat"/header.xml >  "/usr/local/gnat2017/share/examples/gnat"/gnat-examples.xml 
for d in full_project/full.xml options/options.xml other_languages/cpp_main/cpp_main.xml other_languages/cpp_pragmas/cpp_pragmas.xml other_languages/import_from_c/import_from_c.xml plugins/plugins.xml stream_io/stream_io.xml simple_project/simple_project.xml starter/starter.xml xml_stream/xml_stream.xml containers/anagram/anagram.xml containers/genealogy/genealogy.xml containers/hash/hash.xml containers/library/library.xml containers/shapes/shapes.xml containers/spellcheck/spellcheck.xml containers/wordcount/wordcount.xml containers/wordfreq/wordfreq.xml oo_interfaces/oo_interfaces.xml oo_airline/oo_airline.xml altivec/altivec.xml; do cat "/usr/local/gnat2017/share/examples/gnat/$d" >> "/usr/local/gnat2017/share/examples/gnat"/gnat-examples.xml; done
cat "/usr/local/gnat2017/share/examples/gnat"/footer.xml >> "/usr/local/gnat2017/share/examples/gnat"/gnat-examples.xml
sed "s:PREFIX:/usr/local/gnat2017:" "/usr/local/gnat2017/share/examples/gnat"/gnat-examples.xml > \
		"/usr/local/gnat2017/share/examples/gnat"/gnat-examples.xml.tmp && \
	mv "/usr/local/gnat2017/share/examples/gnat"/gnat-examples.xml.tmp "/usr/local/gnat2017/share/examples/gnat"/gnat-examples.xml
if [ ! -d "/usr/local/gnat2017/share/gps/plug-ins" ]; then \
		mkdir -p "/usr/local/gnat2017/share/gps/plug-ins";    \
	fi
cp "/usr/local/gnat2017/share/examples/gnat"/gnat-examples.xml "/usr/local/gnat2017/share/gps/plug-ins"

   On OS X, the debugger needs to be codesigned in order to access
   the priviledges required for debugging.

   Please refer to the procedure documented in the Mac OS Topics chapter
   of the GNAT GPL User's Guide, section Codesigning the Debugger. This
   procedure should be applied after the GNAT GPL install has completed.

   Press Enter to continue.



   GNAT GPL is now installed. To launch it, you must put
      /usr/local/gnat2017/bin
   in front of your PATH environment variable. The following
   commands enable you to do this:
      PATH="/usr/local/gnat2017/bin:$PATH"; export PATH  (Bourne shell)
      setenv PATH "/usr/local/gnat2017/bin:$PATH"        (C shell)
   Thank you for installing GNAT GPL Edition!

Adampours-MacBook-Pro:~ adampour$ export PATH=/usr/local/gnat2017/bin:$PATH
Adampours-MacBook-Pro:~ adampour$ gcc --version
gcc (GCC) 6.3.1 20170510 (for GNAT GPL 2017 20170515)
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
See your AdaCore support agreement for details of warranty and support.
If you do not have a current support agreement, then there is absolutely
no warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

Adampours-MacBook-Pro:~ adampour$ Hello.World
-bash: Hello.World: command not found
Adampours-MacBook-Pro:~ adampour$ Ada.Text_IO.Put_Line("Hello world!");
-bash: !": event not found
Adampours-MacBook-Pro:~ adampour$ 


But how do I use the program? Do I have gps now? If yes, how do I open it? 
I am so sorry for all these questions, I just really want to learn programming and we're using Ada at our school



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-08 18:53             ` sophia.adampour
@ 2018-01-08 20:13               ` Dennis Lee Bieber
  2018-01-08 20:34               ` Anh Vo
  1 sibling, 0 replies; 20+ messages in thread
From: Dennis Lee Bieber @ 2018-01-08 20:13 UTC (permalink / raw)


On Mon, 8 Jan 2018 10:53:12 -0800 (PST), sophia.adampour@gmail.com
declaimed the following:


>
>
>
>   GNAT GPL is now installed. To launch it, you must put
>      /usr/local/gnat2017/bin
>   in front of your PATH environment variable. The following
>   commands enable you to do this:
>      PATH="/usr/local/gnat2017/bin:$PATH"; export PATH  (Bourne shell)
>      setenv PATH "/usr/local/gnat2017/bin:$PATH"        (C shell)
>   Thank you for installing GNAT GPL Edition!
>
>Adampours-MacBook-Pro:~ adampour$ export PATH=/usr/local/gnat2017/bin:$PATH


	Note: since you likely do not want to enter that command every time you
log into the computer (or open a new shell window), you probably want to
modify whatever startup script is used by the Mac. I don't Mac OS, so don't
know where it differs from the systems I do have...

	Candidate (Linux, using BASH shell)file would be to add the line to:

~/.bashrc

using whatever programming/text editor is available (I tend to use vim, but
given your questions that would be too much to inflict upon you).


>Adampours-MacBook-Pro:~ adampour$ gcc --version
>gcc (GCC) 6.3.1 20170510 (for GNAT GPL 2017 20170515)
>Copyright (C) 2016 Free Software Foundation, Inc.
>This is free software; see the source for copying conditions.
>See your AdaCore support agreement for details of warranty and support.
>If you do not have a current support agreement, then there is absolutely
>no warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>PURPOSE.
>
>Adampours-MacBook-Pro:~ adampour$ Hello.World
>-bash: Hello.World: command not found
>Adampours-MacBook-Pro:~ adampour$ Ada.Text_IO.Put_Line("Hello world!");
>-bash: !": event not found
>Adampours-MacBook-Pro:~ adampour$ 
>
>
>But how do I use the program? Do I have gps now? If yes, how do I open it? 
>I am so sorry for all these questions, I just really want to learn programming and we're using Ada at our school
>

	You are now in the realm where your questions are about how to
use/administer the Mac OS and no longer have anything to do with Ada or
GNAT.

	On a Debian install (in a virtual machine, and where the package
manager handling install/build) I find GNAT Programming Studio shows up on
the
	Applications
		Development
menu. No idea what Mac does for those.

	From a command shell

wulfraed@stretch:/$ which gps
wulfraed@stretch:/$ which gnatmake
/usr/bin/gnatmake
wulfraed@stretch:/$ ls /usr/bin/gnat*
/usr/bin/gnat             /usr/bin/gnatfind-6   /usr/bin/gnatls-6
/usr/bin/gnat-6           /usr/bin/gnatgcc      /usr/bin/gnatmake
/usr/bin/gnatbind         /usr/bin/gnat-gps     /usr/bin/gnatmake-6
/usr/bin/gnatbind-6       /usr/bin/gnathtml     /usr/bin/gnatname
/usr/bin/gnatchop         /usr/bin/gnathtml-6   /usr/bin/gnatname-6
/usr/bin/gnatchop-6       /usr/bin/gnatinspect  /usr/bin/gnatprep
/usr/bin/gnatclean        /usr/bin/gnatkr       /usr/bin/gnatprep-6
/usr/bin/gnatclean-6      /usr/bin/gnatkr-6     /usr/bin/gnatspark
/usr/bin/gnatcoll_db2ada  /usr/bin/gnatlink     /usr/bin/gnatxref
/usr/bin/gnatdoc          /usr/bin/gnatlink-6   /usr/bin/gnatxref-6
/usr/bin/gnatfind         /usr/bin/gnatls
wulfraed@stretch:/$ 

there is 

wulfraed@stretch:/$ which gnat-gps
/usr/bin/gnat-gps
wulfraed@stretch:/$ 

	Though I do not recommend running it from a command shell if you can
find a graphical start icon -- since you likely don't want to be spammed
with warning messages... Opening via an icon/menu means no stdout so the
warnings get dumped into the bit-bucket.

wulfraed@stretch:/$ gnat-gps

(gnat-gps:2222): Gtk-WARNING **: Theme parsing error:
gps-Adwaita.css:61:27: The :insensitive pseudo-class is deprecated. Use
:disabled instead.

(gnat-gps:2222): Gtk-WARNING **: Theme parsing error: <data>:1:16: Using
Pango syntax for the font: style property is deprecated; please use CSS
syntax
GPS:1: PyGIWarning: Gtk was imported without specifying a version first.
Use gi.require_version('Gtk', '3.0') before import to ensure that the right
version gets loaded.
Gtk-Message: GtkDialog mapped without a transient parent. This is
discouraged.

(gnat-gps:2222): Gtk-WARNING **: Allocating size to GtkAdaMDI
0x55bf84cb4270 without calling gtk_widget_get_preferred_width/height(). How
does the code know the size to allocate?

(gnat-gps:2222): Gtk-WARNING **: Allocating size to GtkNotebook
0x55bf85334730 without calling gtk_widget_get_preferred_width/height(). How
does the code know the size to allocate?


	Having created a sample program file

wulfraed@stretch:~$ ls
Desktop    Downloads       junk.txt  Pictures  Scratch  Templates
Documents  HelloWorld.adb  Music     Public    so.py    Videos
wulfraed@stretch:~$ cat HelloWorld.adb 
with ada.text_io;

procedure HelloWorld is

begin

   ada.Text_IO.Put_Line("Hello World?");

end HelloWorld;
wulfraed@stretch:~$ 

compiling/building from the command line (note: I am using the deprecated
gnatmake; AdaCore is phasing projects into a gpr-build system).

wulfraed@stretch:~$ gnatmake HelloWorld.adb 
gcc-6 -c HelloWorld.adb
HelloWorld.adb:3:11: warning: file name does not match unit name, should be
"helloworld.adb"
gnatbind-6 -x HelloWorld.ali
gnatlink-6 HelloWorld.ali
wulfraed@stretch:~$ 


	Heh... Looks like the Linux variant doesn't like mixed case names --
since the file is HelloWorld AND so is the procedure name in the source. To
run the program (most Linux are configured to not automatically include the
current directory when looking for programs to run, hence the use of the ./
to say "file is in current directory")

wulfraed@stretch:~$ HelloWorld
bash: HelloWorld: command not found
wulfraed@stretch:~$ 

wulfraed@stretch:~$ ./HelloWorld 
Hello World?
wulfraed@stretch:~$ 


	Building from GPS gave an error as the file I created is not defined in
a GPR project... Took me some time to create a project, recreate the file,
and then -- it would compile but not build an executable... I found I had
to edit the project properties in GPS to add the file as the "main"
program, and then rebuild to get the executable. Basically -- for short
test programs, GPS adds a lot of overhead to the build system... Use it to
edit a plain (non-project) file, save the file, and invoke gnatmake from a
command shell on the saved file may be quicker than learning to navigate
project properties. Projects become useful when you build up a program
containing many files with possibly odd options.



-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-08 18:53             ` sophia.adampour
  2018-01-08 20:13               ` Dennis Lee Bieber
@ 2018-01-08 20:34               ` Anh Vo
  1 sibling, 0 replies; 20+ messages in thread
From: Anh Vo @ 2018-01-08 20:34 UTC (permalink / raw)


On Monday, January 8, 2018 at 10:53:14 AM UTC-8, sophia....@gmail.com wrote:
>  
> But how do I use the program? Do I have gps now? If yes, how do I open it? 
> I am so sorry for all these questions, I just really want to learn  programming and we're using Ada at our school
>

I have not used MacOS for a long time. Thus, my knowledge could be rusted. 

Most of your questions can be answered by understanding MacOS, less with GNAT. GPS will be available once GNAT is installed. But, you need to tell the OS where to look for. Thus, a shell script needs to be created. Below is the content of my shell script (Bourne shell), gnat-2017.bash, for my Red Hat Enterprise Linux.

  PATH=/home/voax/GNAT/gnat-gpl-2017/bin:$PATH
  export PATH

For your case, it should be similar as

  PATH="/usr/local/gnat2017/bin:$PATH"
  export PATH

The last step is to invoke it assuming that it is located at /home/adampour and its name is adampour-gnat-2017.bash

  ~adampour/adampour-gnat-2017.bash

You are ready to enter your command, gps &, from anywhere. 

I hope it helps.

Anh Vo

 


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-08 12:21           ` sophia.adampour
  2018-01-08 18:53             ` sophia.adampour
@ 2018-01-08 21:29             ` Simon Wright
  2018-01-12  0:07               ` sophia.adampour
  1 sibling, 1 reply; 20+ messages in thread
From: Simon Wright @ 2018-01-08 21:29 UTC (permalink / raw)


sophia.adampour@gmail.com writes:

> Do you have any advise for what I should do now?
> This is the message:
>
> GNAT GPL is now installed. To launch it, you must put
>       /usr/local/gnat2017/bin
>    in front of your PATH environment variable. The following
>    commands enable you to do this:
>       PATH="/usr/local/gnat2017/bin:$PATH"; export PATH  (Bourne shell)
>       setenv PATH "/usr/local/gnat2017/bin:$PATH"        (C shell)
>    Thank you for installing GNAT GPL Edition!

Having set up your PATH as above, you should be able to say

  $ gps &

to fire up GPS. Help>GPS>Tutorial should start you off (when it refers
to <prefix>, in your case that's /usr/local/gnat2017).

One of the folk on the GNAT-OSX mailing list (Pascal
<sur.pignard@WANADOO.FR>) created a macOS application so you can just
double-click on it as normal; I've adapted its script
GPS.app/Contents/MacOS/gps to your setup, copy at
https://www.dropbox.com/s/5gd84jl255povju/GPS.zip?dl=0 .

The GNAT-OSX mailing list is at
https://hermes.gwu.edu/cgi-bin/wa?A0=GNAT-OSX

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-08 21:29             ` Simon Wright
@ 2018-01-12  0:07               ` sophia.adampour
  2018-01-12  9:39                 ` Simon Wright
  0 siblings, 1 reply; 20+ messages in thread
From: sophia.adampour @ 2018-01-12  0:07 UTC (permalink / raw)


mandag 8. januar 2018 22.29.56 UTC+1 skrev Simon Wright følgende:
> sophia.adampour@gmail.com writes:
> 
> > Do you have any advise for what I should do now?
> > This is the message:
> >
> > GNAT GPL is now installed. To launch it, you must put
> >       /usr/local/gnat2017/bin
> >    in front of your PATH environment variable. The following
> >    commands enable you to do this:
> >       PATH="/usr/local/gnat2017/bin:$PATH"; export PATH  (Bourne shell)
> >       setenv PATH "/usr/local/gnat2017/bin:$PATH"        (C shell)
> >    Thank you for installing GNAT GPL Edition!
> 
> Having set up your PATH as above, you should be able to say
> 
>   $ gps &
> 
> to fire up GPS. Help>GPS>Tutorial should start you off (when it refers
> to <prefix>, in your case that's /usr/local/gnat2017).
> 
> One of the folk on the GNAT-OSX mailing list (Pascal
> <sur.pignard@WANADOO.FR>) created a macOS application so you can just
> double-click on it as normal; I've adapted its script
> GPS.app/Contents/MacOS/gps to your setup, copy at
> https://www.dropbox.com/s/5gd84jl255povju/GPS.zip?dl=0 .
> 
> The GNAT-OSX mailing list is at
> https://hermes.gwu.edu/cgi-bin/wa?A0=GNAT-OSX

Thank you! This shows up when I say

$ gps &:

Adampours-MacBook-Pro:~ adampour$ gps &
[1] 6390
Adampours-MacBook-Pro:~ adampour$ -bash: gps: command not found

So my download is not correct?


And I've now downloaded the GPS you linked to, thank you very much!

Btw. Does anyone know about any tutorials on how to use this GPS with Mac Terminal? :-)


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-12  0:07               ` sophia.adampour
@ 2018-01-12  9:39                 ` Simon Wright
  2018-01-14 16:08                   ` sophia.adampour
  0 siblings, 1 reply; 20+ messages in thread
From: Simon Wright @ 2018-01-12  9:39 UTC (permalink / raw)


sophia.adampour@gmail.com writes:

> Thank you! This shows up when I say
>
> $ gps &:
>
> Adampours-MacBook-Pro:~ adampour$ gps &
> [1] 6390
> Adampours-MacBook-Pro:~ adampour$ -bash: gps: command not found
>
> So my download is not correct?

No, it just means that gps isn't on your PATH.

Setting up your PATH on macOS is a whole other question! If you look
into the GPS.app I uploaded (*from the terminal*) you'll see

   $ cat /where/ever/you/put/it/GPS.app/Contents/MacOS/gps
   #!/bin/sh
   export PATH=/usr/local/gnat2017/bin:$PATH
   exec /usr/local/gnat2017/bin/gps

and in order not to have to do the "export" line every time you start a
new Terminal you need to copy that line to the end of one of the startup
scripts, probably ~/.bash_profile_common .

> And I've now downloaded the GPS you linked to, thank you very much!

You're welcome.

> Btw. Does anyone know about any tutorials on how to use this GPS with
> Mac Terminal? :-)

(a.k.a. "from the command line")

GPS is an IDE (Interactive Develpoment Environment). When it wants to do
a compilation it calls up GNAT's command line tools to do the job.

If you want to compile a file e.g. hello.adb from the command line, then
(assuming your PATH is set up as above!) you say

   $ gnatmake hello.adb

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-12  9:39                 ` Simon Wright
@ 2018-01-14 16:08                   ` sophia.adampour
  2018-01-14 16:12                     ` sophia.adampour
  2018-01-14 18:03                     ` Simon Wright
  0 siblings, 2 replies; 20+ messages in thread
From: sophia.adampour @ 2018-01-14 16:08 UTC (permalink / raw)


fredag 12. januar 2018 10.39.09 UTC+1 skrev Simon Wright følgende:
> sophia.adampour@gmail.com writes:
> 
> > Thank you! This shows up when I say
> >
> > $ gps &:
> >
> > Adampours-MacBook-Pro:~ adampour$ gps &
> > [1] 6390
> > Adampours-MacBook-Pro:~ adampour$ -bash: gps: command not found
> >
> > So my download is not correct?
> 
> No, it just means that gps isn't on your PATH.
> 
> Setting up your PATH on macOS is a whole other question! If you look
> into the GPS.app I uploaded (*from the terminal*) you'll see
> 
I cannot see the file, it will only download because it's a zip-file Dropbox states


> 
> and in order not to have to do the "export" line every time you start a
> new Terminal you need to copy that line to the end of one of the startup
> scripts, probably ~/.bash_profile_common .
> 
>I am sorry, but where do I find this line? Seriously, I am so sorry for all these stupid questions
> 
> > Btw. Does anyone know about any tutorials on how to use this GPS with
> > Mac Terminal? :-)
> 
> (a.k.a. "from the command line")
> 
> GPS is an IDE (Interactive Develpoment Environment). When it wants to do
> a compilation it calls up GNAT's command line tools to do the job.
> 
> If you want to compile a file e.g. hello.adb from the command line, then
> (assuming your PATH is set up as above!) you say
> 
>    $ gnatmake hello.adb
  
I say this in the Mac terminal, right?


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-14 16:08                   ` sophia.adampour
@ 2018-01-14 16:12                     ` sophia.adampour
  2018-01-14 18:03                     ` Simon Wright
  1 sibling, 0 replies; 20+ messages in thread
From: sophia.adampour @ 2018-01-14 16:12 UTC (permalink / raw)


The GPS app you sent earlier shows up when I type in:

exec /usr/local/gnat2017/bin/gps

in the Mac terminal :-)

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-14 16:08                   ` sophia.adampour
  2018-01-14 16:12                     ` sophia.adampour
@ 2018-01-14 18:03                     ` Simon Wright
  2018-01-15 18:42                       ` sophia.adampour
  1 sibling, 1 reply; 20+ messages in thread
From: Simon Wright @ 2018-01-14 18:03 UTC (permalink / raw)


sophia.adampour@gmail.com writes:

> fredag 12. januar 2018 10.39.09 UTC+1 skrev Simon Wright følgende:
>> sophia.adampour@gmail.com writes:
>> 
>> > Thank you! This shows up when I say
>> >
>> > $ gps &:
>> >
>> > Adampours-MacBook-Pro:~ adampour$ gps &
>> > [1] 6390
>> > Adampours-MacBook-Pro:~ adampour$ -bash: gps: command not found
>> >
>> > So my download is not correct?
>> 
>> No, it just means that gps isn't on your PATH.
>> 
>> Setting up your PATH on macOS is a whole other question! If you look
>> into the GPS.app I uploaded (*from the terminal*) you'll see
>> 
> I cannot see the file, it will only download because it's a zip-file
> Dropbox states

1) go to https://www.dropbox.com/s/5gd84jl255povju/GPS.zip?dl=0 and
download the file (GPS.zip).

2) in Finder, in the Downloads folder, find GPS.zip and double-click;
this should unpack it and create GPS.app (you won't see the .app part,
because Finder hides this file extension, and you may have to clean up
the view (Finder>View/Clean Up By>Name); you'll see a pretty blue icon
with a G in the middle).

3) double-click on this GPS icon to start up GPS.

4) when you are happy, drag the GPS icon into the Applications folder.


>> 
>> and in order not to have to do the "export" line every time you start a
>> new Terminal you need to copy that line to the end of one of the startup
>> scripts, probably ~/.bash_profile_common .
>> 
>>I am sorry, but where do I find this line? Seriously, I am so sorry
>> for all these stupid questions
>> 
>> > Btw. Does anyone know about any tutorials on how to use this GPS with
>> > Mac Terminal? :-)
>> 
>> (a.k.a. "from the command line")
>> 
>> GPS is an IDE (Interactive Develpoment Environment). When it wants to do
>> a compilation it calls up GNAT's command line tools to do the job.
>> 
>> If you want to compile a file e.g. hello.adb from the command line, then
>> (assuming your PATH is set up as above!) you say
>> 
>>    $ gnatmake hello.adb
>   
> I say this in the Mac terminal, right?

Yes.

When you open a macOS Terminal, you see a $ prompt and that is the
command line. When you type stuff in there, you are typing it at the
command line.

I do think you'll be better off compiling from within GPS. AdaCore have
a couple of tutorials, both Windows but once you're in GPS there's not a
lot of difference.

https://www.youtube.com/watch?v=QesNHCKNxFM (a couple of years old)

https://www.youtube.com/watch?v=oMQn_M-9Kmw&t=201s (for GNAT pro, but
start at 2:45 to skip the Pro-specific stuff)

& from Joakim

https://www.youtube.com/watch?v=194rs1H6d64 (this is 3 years old!)


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-14 18:03                     ` Simon Wright
@ 2018-01-15 18:42                       ` sophia.adampour
  2018-01-15 19:13                         ` Dennis Lee Bieber
  0 siblings, 1 reply; 20+ messages in thread
From: sophia.adampour @ 2018-01-15 18:42 UTC (permalink / raw)


søndag 14. januar 2018 19.04.03 UTC+1 skrev Simon Wright følgende:
> sophia.adampour@gmail.com writes:
> 
> > fredag 12. januar 2018 10.39.09 UTC+1 skrev Simon Wright følgende:
> >> sophia.adampour@gmail.com writes:
> >> 
> >> > Thank you! This shows up when I say
> >> >
> >> > $ gps &:
> >> >
> >> > Adampours-MacBook-Pro:~ adampour$ gps &
> >> > [1] 6390
> >> > Adampours-MacBook-Pro:~ adampour$ -bash: gps: command not found
> >> >
> >> > So my download is not correct?
> >> 
> >> No, it just means that gps isn't on your PATH.
> >> 
> >> Setting up your PATH on macOS is a whole other question! If you look
> >> into the GPS.app I uploaded (*from the terminal*) you'll see
> >> 
> > I cannot see the file, it will only download because it's a zip-file
> > Dropbox states
> 
> 1) go to https://www.dropbox.com/s/5gd84jl255povju/GPS.zip?dl=0 and
> download the file (GPS.zip).
> 
> 2) in Finder, in the Downloads folder, find GPS.zip and double-click;
> this should unpack it and create GPS.app (you won't see the .app part,
> because Finder hides this file extension, and you may have to clean up
> the view (Finder>View/Clean Up By>Name); you'll see a pretty blue icon
> with a G in the middle).
> 
> 3) double-click on this GPS icon to start up GPS.
> 
> 4) when you are happy, drag the GPS icon into the Applications folder.
> 
> 
> >> 
> >> and in order not to have to do the "export" line every time you start a
> >> new Terminal you need to copy that line to the end of one of the startup
> >> scripts, probably ~/.bash_profile_common .
> >> 
> >>I am sorry, but where do I find this line? Seriously, I am so sorry
> >> for all these stupid questions
> >> 
> >> > Btw. Does anyone know about any tutorials on how to use this GPS with
> >> > Mac Terminal? :-)
> >> 
> >> (a.k.a. "from the command line")
> >> 
> >> GPS is an IDE (Interactive Develpoment Environment). When it wants to do
> >> a compilation it calls up GNAT's command line tools to do the job.
> >> 
> >> If you want to compile a file e.g. hello.adb from the command line, then
> >> (assuming your PATH is set up as above!) you say
> >> 
> >>    $ gnatmake hello.adb
> >   
> > I say this in the Mac terminal, right?
> 
> Yes.
> 
> When you open a macOS Terminal, you see a $ prompt and that is the
> command line. When you type stuff in there, you are typing it at the
> command line.
> 
> I do think you'll be better off compiling from within GPS. AdaCore have
> a couple of tutorials, both Windows but once you're in GPS there's not a
> lot of difference.
> 
> https://www.youtube.com/watch?v=QesNHCKNxFM (a couple of years old)
> 
> https://www.youtube.com/watch?v=oMQn_M-9Kmw&t=201s (for GNAT pro, but
> start at 2:45 to skip the Pro-specific stuff)
> 
> & from Joakim
> 
> https://www.youtube.com/watch?v=194rs1H6d64 (this is 3 years old!)

Thank you, Tim! This is really helpful:-)

When I use the GPS and follow Joakims Youtube-video, I get this error message:

gprbuild -d -P/Users/adampour/Desktop/src_ada/Hello_World/default.gpr /Users/adampour/Desktop/src_ada/Hello_World/src/main.adb
Compile
   [Ada]          main.adb
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
gprbuild: * compilation phase failed
[2018-01-14 17:30:00] process exited with status 4, elapsed time: 00.56s


Does anyone here understand what is wrong? My classmates could not figure out either..

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-15 18:42                       ` sophia.adampour
@ 2018-01-15 19:13                         ` Dennis Lee Bieber
  2018-01-15 20:16                           ` Simon Wright
  0 siblings, 1 reply; 20+ messages in thread
From: Dennis Lee Bieber @ 2018-01-15 19:13 UTC (permalink / raw)


On Mon, 15 Jan 2018 10:42:25 -0800 (PST), sophia.adampour@gmail.com
declaimed the following:

>
>gprbuild -d -P/Users/adampour/Desktop/src_ada/Hello_World/default.gpr /Users/adampour/Desktop/src_ada/Hello_World/src/main.adb
>Compile
>   [Ada]          main.adb
>xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
>gprbuild: * compilation phase failed
>[2018-01-14 17:30:00] process exited with status 4, elapsed time: 00.56s
>
>
>Does anyone here understand what is wrong? My classmates could not figure out either..


	Second entry on Google		xcrun

http://tips.tutorialhorizon.com/2015/10/01/xcrun-error-invalid-active-developer-path-library-developer-commandline-tools-missing-xcrun/
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Ada download
  2018-01-15 19:13                         ` Dennis Lee Bieber
@ 2018-01-15 20:16                           ` Simon Wright
  0 siblings, 0 replies; 20+ messages in thread
From: Simon Wright @ 2018-01-15 20:16 UTC (permalink / raw)


Dennis Lee Bieber <wlfraed@ix.netcom.com> writes:

>>Does anyone here understand what is wrong? My classmates could not
>> figure out either..
>
>
> 	Second entry on Google		xcrun
>
> http://tips.tutorialhorizon.com/2015/10/01/xcrun-error-invalid-active-developer-path-library-developer-commandline-tools-missing-xcrun/

I must say, if this is a problem I don't understand how GNAT got
installed (it requires at least make)


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2018-01-15 20:16 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-06  0:54 Ada download sophia.adampour
2018-01-06 11:54 ` Brian Drummond
2018-01-06 12:42   ` sophia.adampour
2018-01-06 13:36     ` Simon Wright
2018-01-06 19:17       ` sophia.adampour
2018-01-06 20:05         ` Simon Wright
2018-01-08 12:21           ` sophia.adampour
2018-01-08 18:53             ` sophia.adampour
2018-01-08 20:13               ` Dennis Lee Bieber
2018-01-08 20:34               ` Anh Vo
2018-01-08 21:29             ` Simon Wright
2018-01-12  0:07               ` sophia.adampour
2018-01-12  9:39                 ` Simon Wright
2018-01-14 16:08                   ` sophia.adampour
2018-01-14 16:12                     ` sophia.adampour
2018-01-14 18:03                     ` Simon Wright
2018-01-15 18:42                       ` sophia.adampour
2018-01-15 19:13                         ` Dennis Lee Bieber
2018-01-15 20:16                           ` Simon Wright
2018-01-06 19:21       ` sophia.adampour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox