[AWS] No route to host Net.Connect failed because Net.Wait failed

Joseph Montanez jmontanez at gorilla3d.com
Fri Apr 13 02:15:05 CEST 2012


Ok, got the newest aws and gnat 2011 install. However now I get:

raised AWS.NET.SOCKET_ERROR : [113] No route to host Connect to
127.0.0.1 127.0.0.1:39281

and the port number is constantly changing... This is on ubuntu 10.04.
The odd part is I am not using 127.0.0.1, I am using a real ip4 ip
address. I've tried this on ubuntu 12.04 and it works just fine.

On Thu, Apr 12, 2012 at 3:23 PM, Casey Comendant <casey at hyperspire.com> wrote:
> It sounds like you may need to modify your path variables to something
> like the following:
>
> in ~/.bashrc or /etc/profile.d/custom.sh:
>
> PATH=/usr/gnat/bin:$PATH
> ADA_INCLUDE_PATH=/usr/gnat/include:/usr/gnat/include/aws
> ADA_PROJECT_PATH=/usr/gnat/lib/gnat
> ADA_OBJECT_PATH=/usr/gnat/lib
>
> export PATH ADA_INCLUDE_PATH ADA_PROJECT_PATH ADA_OBJECT_PATH
>
> Or something similar to this depending on how your installation prefix
> was setup.
>
>
> On Thu, Apr 12, 2012 at 10:27 PM, Joseph Montanez
> <jmontanez at gorilla3d.com> wrote:
>> So, I am deploying a very simple aws application and getting a
>> Net.Wait failed... Anyone come across this? Running on linux gnat 4.4
>> and aws 2.7. I tried upgrading to the newest AWS in git repo, however
>> it wont compile. So i tried installing the newest 2011 gnat, and that
>> went fine, but compiling aws just wont work. it can't find a lot of
>> gnat tools. I've messed around with makefile.conf but I still get
>> issue like "gprbuild: could not locate gprconfig for
>> auto-configuration". I've install gnat into /usr/gnat ... so I set
>> prefix and a few of the tools in that makefile to point to /usr/gnat
>> however still no luck getting past "make setup"
>>
>> with Ada.Text_IO;
>> with Ada.Command_Line;
>>
>> with AWS.Server;
>> with AWS.Config;
>> with AWS.Config.Set;
>>
>> with Server_CB;
>>
>> procedure Server is
>>   package CL renames Ada.Command_Line;
>>   package Config_Set renames AWS.Config.Set;
>>
>>   WS : AWS.Server.HTTP;
>>   Config : AWS.Config.Object;
>>   Server_Host : String := CL.Argument (1);
>>   Server_Port : Natural := Natural'Value (CL.Argument (2));
>>
>> begin
>>   --  Protocol_Family
>>   --  Server_Port
>>   --  Server_Name
>>   Config_Set.Server_Host (Config, Server_Host);
>>   Config_Set.Server_Port (Config, Server_Port);
>>   Ada.Text_IO.Put_Line ("Running on host: " & Server_Host);
>>   Ada.Text_IO.Put_Line ("Running on port: " & Natural'Image (Server_Port));
>>
>>   AWS.Server.Start (
>>      Web_Server     => WS,
>>      Callback       => Server_CB.HW_CB'Access,
>>      Config         => Config
>>   );
>>
>>   AWS.Server.Wait (AWS.Server.Q_Key_Pressed);
>>
>>   AWS.Server.Shutdown (WS);
>> end Server;
>>
>> --
>> Joseph Montanez
>> Web Developer
>> Gorilla3D
>> Design, Develop, Deploy
>> _______________________________________________
>> AWS mailing list
>> AWS at lists.adacore.com
>> /no-more-mailman.html
>
>
>
> --
> -- Casey Comendant, Founder & Executive Director
> -- Hyperspire Research Foundation
> -- casey at hyperspire.com
> -- http://hyperspire.com/
> -- gpg --keyserver wwwkeys.pgp.net --recv-key 3969270E



-- 
Joseph Montanez
Web Developer
Gorilla3D
Design, Develop, Deploy


More information about the AWS mailing list