Hi! Three weeks ago Ada Web Application version 2.3.0 was released and today I thought I'd give it a go. I am on Ubuntu 20.04. Following the instructions at https://github.com/stcarrez/ada-awa: These steps went well: git clone --recursive https://github.com/stcarrez/ada-awa.git cd ada-awa git checkout tags/2.3.0 sudo apt-get install unzip liblzma-dev libcurl4-openssl-dev ... sudo apt-get install postgresql-client libpq-dev ./configure --prefix=/usr/local make But the installation had some issue: make install The problem had to do with permissions. The root user was the owner of /usr/local and I changed the owner of the directory to my own user (I am the only one using my laptop) and then the installation went well. Perhaps it would have been wiser to choose another installation directory? in any case, I am wondering about the dynamo command. It doesn't seem to work. When executing "dynamo help" it outputs: error: Cannot load configuration file generator.properties error: Cannot read external commands Dynamo Ada Generator 1.2.2 - Revision 1095, Stephane Carrez ... What does one need to do to silence the error messages? Some environment variable I have forgotten to set? Best regards, Joakim
Den 2021-08-26 kl. 17:31, skrev Joakim Strandberg:
> But the installation had some issue:
> make install
>
> The problem had to do with permissions. T
sudo make install
gives you root privilegies to install there
you enter YOUR password when prompted. not root's
--
Björn
torsdag 26 augusti 2021 kl. 17:37:16 UTC+2 skrev björn lundin:
> Den 2021-08-26 kl. 17:31, skrev Joakim Strandberg:
>
> > But the installation had some issue:
> > make install
> >
> > The problem had to do with permissions. T
> sudo make install
> gives you root privilegies to install there
>
> you enter YOUR password when prompted. not root's
>
>
> --
> Björn
Thanks Björn. I tried it first and when I did "sudo make install" I got the error message "cannot find command gprinstall". Maybe I would need to "cd /root" and then make sure the GNAT compiler is on the PATH for the root user by editing the .bashrc file but I didn't do go down that path. Still it's a good advice for somebody else who runs into the same problem. Maybe it works for them. Strange it didn't work for me.
Best regards,
Joakim
Den 2021-08-26 kl. 18:14, skrev Joakim Strandberg:
> torsdag 26 augusti 2021 kl. 17:37:16 UTC+2 skrev björn lundin:
>> Den 2021-08-26 kl. 17:31, skrev Joakim Strandberg:
>>
>>> But the installation had some issue:
>>> make install
>>>
>>> The problem had to do with permissions. T
>> sudo make install
>> gives you root privilegies to install there
>>
>> you enter YOUR password when prompted. not root's
>>
>>
>> --
>> Björn
>
> Thanks Björn. I tried it first and when I did "sudo make install" I got the error message "cannot find command gprinstall". Maybe I would need to "cd /root" and then make sure the GNAT compiler is on the PATH for the root user by editing the .bashrc file but I didn't do go down that path. Still it's a good advice for somebody else who runs into the same problem. Maybe it works for them. Strange it didn't work for me.
>
> Best regards,
> Joakim
>
ok I've got gprbuild problems once when I built AWS some years ago
make went well but not install
gprbuild not in path (or wrong gcc or whatever)
so - another trick is
sudo su -
gives you root terminal. (still YOUR pwd to enter)
export PATH to where it should be for root including gprinstall
then
make install
--
Björn
torsdag 26 augusti 2021 kl. 18:19:38 UTC+2 skrev björn lundin:
> Den 2021-08-26 kl. 18:14, skrev Joakim Strandberg:
> > torsdag 26 augusti 2021 kl. 17:37:16 UTC+2 skrev björn lundin:
> >> Den 2021-08-26 kl. 17:31, skrev Joakim Strandberg:
> >>
> >>> But the installation had some issue:
> >>> make install
> >>>
> >>> The problem had to do with permissions. T
> >> sudo make install
> >> gives you root privilegies to install there
> >>
> >> you enter YOUR password when prompted. not root's
> >>
> >>
> >> --
> >> Björn
> >
> > Thanks Björn. I tried it first and when I did "sudo make install" I got the error message "cannot find command gprinstall". Maybe I would need to "cd /root" and then make sure the GNAT compiler is on the PATH for the root user by editing the .bashrc file but I didn't do go down that path. Still it's a good advice for somebody else who runs into the same problem. Maybe it works for them. Strange it didn't work for me.
> >
> > Best regards,
> > Joakim
> >
> ok I've got gprbuild problems once when I built AWS some years ago
> make went well but not install
>
> gprbuild not in path (or wrong gcc or whatever)
>
> so - another trick is
>
> sudo su -
> gives you root terminal. (still YOUR pwd to enter)
>
> export PATH to where it should be for root including gprinstall
> then
> make install
>
>
>
>
>
> --
> Björn
Thanks Björn again. I reverted the change of ownershipt that I had done and tried "sudo su -" and discovered I had been editing bort .bashrc and .profile in the root directory and was pointing out an older version of GNAT, not Community Edition 2021. Fixing that made it possible to install AWA withouth permission issues. It also made the error messages from Dynamo go away. So thanks! It solved the problem.
Best regards,
Joakim