Sim client install help - Ubuntu

With the help of a user, we have some install help on this topic. I’m going to detail the steps you have to take to install the necessary components to get the AMR simulator to work on Ubuntu 16.04. (This may work for later versions, but I’m unsure).

Firstly, this is going to be done purely through the terminal interface. No GUI, which makes sense since the simulation program is also a CLI. Personally, I am running this on a small digital ocean box which I can save a snapshot of once I get it working then I can destroy the box, and make a new one from the snapshot once I need to spin up one of their 20 CPU servers.

Note, this is not free. The 20 CPU box is about ~$1 per hour. I strongly recommend using the smallest version to set up your snapshot then delete it after you’re done. When you’re ready to run a simulation, you can make a new one with the snapshot, run your simulation for however long you need, then kill it again.

Starting the updating process: I’m going to outline every single command assuming you don’t know how to use a bash terminal at all.

Download the file using wget:
Code: [Select]


  • Note this link may change, just go to the download button and right click ‘save link address’

Code: [Select]

sudo apt-get install unzip
cd AskMrRobotClient/client
chmod +x amr

run this now for future use so we don’t have to update twice:
Code: [Select]

echo 'deb jessie main' >> /etc/apt/sources.list
There is a github link further down if you wish to reead what this is for.

Now when you run ./amr you should get an error saying a file was not found. If this is the case we move on to using the information we get from:

Code: [Select]

sudo sh -c 'echo "deb [arch=amd64] xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv --keyserver --recv-keys 417A0893
sudo apt-get update
sudo apt-get install dotnet-dev-1.0.0-preview2-003121

if you run which dotnet you should see you have it installed now, but running ./amr gives a new error : Failed to initialize CoreCLR, HRESULT: 0x80131500

to fix this we need to do a couple more things found here: Failed to initialize CoreCLR, HRESULT: 0x80131500 · Issue #5455 · dotnet/sdk · GitHub. Remember how we added that link to sources.list earlier? We did it there since we were going to apt-get update anyway for the dotnet stuff, so might as well only do it once.

Next line of code you should run is

Code: [Select]

sudo apt-get -t jessie install libicu52
sudo apt-get install libssl1.0.0

and we’re done. run ./amr in the folder (to get back to it type cd ~/AskMrRobotClient/client)

The client should run after that.

Post credit goes to Krazyito.

Installing the Sim client was a bit of a problem. Instructions here are good but I strongly suggest making Dotnet installation according to before starting the steps in the guide.

Personally I would also advise to upgrade Ubuntu to 16.04 since you may get a issue with some downgrade packages.

Best of luck :slight_smile: