# Not able to run application on Ubuntu

**URL:** <https://forum.alternet-ui.com/t/not-able-to-run-application-on-ubuntu/274>\
**Category:** AlterNET UI Support\
**Created:** [October 8, 2023, 4:50pm UTC](https://forum.alternet-ui.com/t/not-able-to-run-application-on-ubuntu/274 "2023-10-08T16:50:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexkaos](https://forum.alternet-ui.com/letter_avatar_proxy/v4/letter/a/606060/32.png) [@alexkaos](https://forum.alternet-ui.com/u/alexkaos)\
**Post date:** [October 8, 2023, 4:50pm UTC](https://forum.alternet-ui.com/t/not-able-to-run-application-on-ubuntu/274/1 "2023-10-08T16:50:55Z")

</div>

Hi,

I am starting to use AlterNET UI 0.9.3 but I am getting troubles when I compile and run application on Ubuntu.

I think that some dependencies are missing but I cannot find any reference in the documentation about these

dotnet run  
Unhandled exception. System.TypeInitializationException: The type initializer for ‘Alternet.UI.Native.Application’ threw an exception.  
—\> System.TypeInitializationException: The type initializer for ‘NativeApi’ threw an exception.  
—\> System.DllNotFoundException: Unable to load shared library ‘Alternet.UI.Pal’ or one of its dependencies. In order to help diagnose loading problems, consider setting the LD\_DEBUG environment variable: libAlternet.UI.Pal: cannot open shared object file: No such file or directory  
at Alternet.UI.Native.NativeApiProvider.SetExceptionCallback(NativeExceptionCallbackType unhandledExceptionCallback, NativeExceptionCallbackType caughtExceptionCallback)  
at Alternet.UI.Native.NativeApiProvider.Initialize()  
at Alternet.UI.Native.Application.NativeApi…cctor()  
— End of inner exception stack trace —  
at Alternet.UI.Native.Application.NativeApi.Application\_SetEventCallback\_(ApplicationEventCallbackType callback)  
at Alternet.UI.Native.Application.SetEventCallback()  
at Alternet.UI.Native.Application…cctor()  
— End of inner exception stack trace —  
at Alternet.UI.Native.Application…ctor()  
at Alternet.UI.Application…ctor()  
at AlternetUIApp1.Program.Main(String args)

this is the output of the exception when I use LD\_DEBUG

 ![image](https://forum.alternet-ui.com/uploads/default/original/1X/05943254e1a4a861371c2b35a0c75764e1ed58e4.png)

---

<div class="post-metadata">

**Author:** ![generalloki](https://forum.alternet-ui.com/user_avatar/forum.alternet-ui.com/generalloki/32/83_2.png) [@generalloki](https://forum.alternet-ui.com/u/generalloki)\
**Post date:** [October 11, 2023, 6:08am UTC](https://forum.alternet-ui.com/t/not-able-to-run-application-on-ubuntu/274/2 "2023-10-11T06:08:47Z")

</div>

Hi

Could you please provide more information? What is your Ubuntu version? What is the project that you are running? What is inside the project folder? What are the steps you did in order to install Alternet.UI on Linux?

What I do in order to run Alternet.UI on Linux.

1. Get the latest version of the UI from the master at  
[GitHub - alternetsoft/AlternetUI](https://github.com/alternetsoft/AlternetUI)

2. Run \AlternetUI\Install.Scripts\Ubuntu.Install.Packages.sh

3. Run Install.sh and wait till everything compiles and runs.

ControlsSample project is automatically runned.

---

<div class="post-metadata">

**Author:** ![alexkaos](https://forum.alternet-ui.com/letter_avatar_proxy/v4/letter/a/606060/32.png) [@alexkaos](https://forum.alternet-ui.com/u/alexkaos)\
**Post date:** [October 12, 2023, 5:19pm UTC](https://forum.alternet-ui.com/t/not-able-to-run-application-on-ubuntu/274/3 "2023-10-12T17:19:18Z")

</div>

Hi,

I am using Ubuntu 22.04 on WSL and I have created a project using the provided template.  
Running your instructions, it now works and I am not affected by the issue anymore.

Thanks: I think that these steps should be reported on Documentation page in order to be helpful for other devs.

Best,  
Alessio

---

<div class="post-metadata">

**Author:** ![generalloki](https://forum.alternet-ui.com/user_avatar/forum.alternet-ui.com/generalloki/32/83_2.png) [@generalloki](https://forum.alternet-ui.com/u/generalloki)\
**Post date:** [October 13, 2023, 5:17am UTC](https://forum.alternet-ui.com/t/not-able-to-run-application-on-ubuntu/274/4 "2023-10-13T05:17:19Z")

</div>

We will update documentation with this information. Thanks!

---

<div class="post-metadata">

**Author:** ![generalloki](https://forum.alternet-ui.com/user_avatar/forum.alternet-ui.com/generalloki/32/83_2.png) [@generalloki](https://forum.alternet-ui.com/u/generalloki)\
**Post date:** [October 13, 2023, 6:26am UTC](https://forum.alternet-ui.com/t/not-able-to-run-application-on-ubuntu/274/5 "2023-10-13T06:26:05Z")

</div>

Basically, if you are using templates and instructions from  
[https://docs.alternet-ui.com/tutorials/hello-world/command-line/hello-world-command-line.html](https://docs.alternet-ui.com/tutorials/hello-world/command-line/hello-world-command-line.html)  
, the only thing needed for the correct work under Linux is to run  
\AlternetUI\Install.Scripts\Ubuntu.Install.Packages.sh

and I will add this to the docs.
