Search code examples
webserverinstallationadagprinstall

Ada aws (ada web server) in windows 10


Good afternoon. Please tell what I'm doing wrong. I installed GNAT 2016 in windows10. copied aws (ada web server) repository to the desktop, opened as it is written build.cmd and run

build C:\GNAT\2016, further the console wrote

C:\Users...\Desktop\aws-gpl-2016-src\win32>build C:\Users...\Desktop\aws-gpl-2016-src The system cannot find the path specified. gprbuild.exe: project file "config\setup" not found in .;;C:\GtkAda\lib\gnat Couldn't build or install AWS

what happened and how can I fix it?

I tried in Linux Ubuntu to Fedora but still not going to. I followed the instructions posted on the Libre hell When I installed gnat in windose all set, PATH, a permanent resident in the environment variables C: \ GNAT \ 2016ebin here simply do not know what to do next I'm in Ada beginner, Can tell me how to raise the minimum Hello server at least. There are also experienced and knowledgeable people in


Solution

  • I believe you should do

    cd C:\Users...\Desktop\aws-gpl-2016-src\
    win32\build.cmd c:\gnat\2014
    

    instead of running this from win32 directory.

    Beside this there is a bug in this script in aws-gpl-2016, so you need to edit it by replacing line

    gprinstall --prefix=%1 -p -f %GPROPTS% -XLIBRARY_TYPE=relocatable --build-name=relocatable aws.gpr
    with:
    gprinstall --prefix=%1 -p -f %GPROPTS% -XLIBRARY_TYPE=relocatable -XXMLADA_BUILD=relocatable --build-name=relocatable aws.gpr
    

    Otherwise you will get an error after 'Install project Tools' message.

    PS. Feel free to join Russian jabber room at [email protected] to ask about Ada.