codeproject / CodeProject.AI-Server

CodeProject.AI Server is a self contained service that software developers can include in, and distribute with, their applications in order to augment their apps with the power of AI.
Other
565 stars 135 forks source link

How to install CodeProject on Ubuntu 22.04, with the proper SDK version #117

Closed koopernick closed 1 week ago

koopernick commented 2 weeks ago

Hello,

Codeproject installer requires "apt-get install dotnet-sdk-7.0", but that version is no longer available on Ubuntu 22.04.

I tried to install the outdated version manually 7.0.410, but the installer stilll doesn't work and try to install "apt-get install dotnet-sdk-7.0", which doesn't exist.

Checking for .NET 7.0.../usr/bin/codeproject.ai-server-2.6.5/SDK/Scripts/utils.sh: line 587: dotnet: command not found
Upgrading: .NET is (None)
Already added link to .bashrc
/usr/bin/codeproject.ai-server-2.6.5/SDK/Scripts/utils.sh: line 542: dotnet: command not found
.NET was not installed correctly. You may need to run the following:
# Remove all .NET packages
sudo apt-get remove 'dotnet*'
sudo apt-get remove 'aspnetcore*'
# Delete PMC repository from APT, by deleting the repo .list file
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update
# Install .NET SDK
sudo apt-get install dotnet-sdk-7.0

Processing CodeProject.AI Server

Processing Included CodeProject.AI Server Modules

Reading module settings.......done
Processing module

This module cannot be installed on this system

How do I install Codeproject on Ubuntu 22.04 ? What specific version of the SDK do you require ?

Thank you.

Tschak77 commented 1 week ago
apt install -y software-properties-common
add-apt-repository ppa:dotnet/backports
apt install -y dotnet-sdk-7.0

I'm running this and it also works for 24.04

koopernick commented 1 week ago

Answered here => https://www.codeproject.com/Articles/5322557/CodeProject-AI-Server-AI-the-easy-way?msg=6007637#xx6007637xx

I'll wait the update.