Skip to content

Commit

Permalink
Update Linux build instructions (#1264)
Browse files Browse the repository at this point in the history
Replaces #1260.
  • Loading branch information
ermshiperete authored Jul 12, 2023
1 parent 376deb6 commit a0ae850
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,36 @@ To get the source code, you'll need Git. Then from a command line, give this com

#### Windows

- Building libpalaso requires .NET 5. You might want to
- Building libpalaso requires .NET 5 or later. You might want to
install Visual Studio 2019 >= 16.8, or JetBrains Rider.

#### Ubuntu Linux

- Add access to packages.microsoft.com repo for dotnet sdk:

```bash
cd $(mktemp -d) &&
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg &&
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/ &&
(source /etc/os-release && wget -q https://packages.microsoft.com/config/${ID}/${VERSION_ID}/prod.list -O prod.list) &&
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list &&
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.gpg /etc/apt/sources.list.d/microsoft-prod.list &&
sudo chmod 644 /etc/apt/trusted.gpg.d/microsoft.gpg /etc/apt/sources.list.d/microsoft-prod.list
wget https://packages.microsoft.com/config/ubuntu/$(lsb_release -s -r)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
```

- Add access to download.mono-project.com for mono 6 by following instructions at <https://www.mono-project.com/download/stable>.
- Add access to download.mono-project.com for mono 6 by following
instructions at <https://www.mono-project.com/download/stable>.

- Install package dependencies:
- To get unit tests to pass, you have to install libcanberra-gtk-module

- Install the dependencies with:

```bash
sudo apt update
sudo apt install libicu-dev dotnet-sdk-5 mono-complete
sudo apt install libicu-dev dotnet-sdk-6.0 mono-complete mono-devel msbuild libcanberra-gtk-module
```

**Note:** Newer Ubuntu versions have .NET 6+ and Mono 6 in their package
repos. However, those packages are missing some required files so that
building libpalaso won't succeed. Therefore it's recommended to install
.NET 6+ and Mono from Microsoft's/Mono's package repos.

### Develop

- Create a local topic branch:
Expand Down

0 comments on commit a0ae850

Please sign in to comment.