Skip to content

Commit

Permalink
Merge pull request NativeScript#1889 from acoppola/patch-1
Browse files Browse the repository at this point in the history
docs(Linux): Updated instruction for Ubuntu 20.04 Fixed mising packages.
  • Loading branch information
NathanaelA authored Jul 18, 2020
2 parents 8004ea2 + 8121a3e commit 733be1a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/start/ns-setup-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ Complete the following steps to set up NativeScript on your Linux development ma

2. If you are running on a 64-bit system, install the runtime libraries for the ia32/i386 architecture.

<pre class="add-copy-button"><code class="language-terminal">sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 libstdc++6:i386
<pre class="add-copy-button"><code class="language-terminal">sudo apt-get update
</code></pre>
If you encounter an error showing "Unable to locate package lib32bz2-1.0" then use
<pre class="add-copy-button"><code class="language-terminal">sudo apt-get install lib32z1 lib32ncurses5 libbz2-1.0:i386 libstdc++6:i386

<pre class="add-copy-button"><code class="language-terminal">sudo apt-get install lib32z1 lib32ncurses5-dev:i386 libbz2-1.0:i386 libstdc++6:i386
</code></pre>
Package `lib32ncurses5` is only available as version 6 on Ubuntu >v.19.04, replace with `lib32ncurses6`.

3. Install the G++ compiler.

Expand All @@ -69,9 +68,11 @@ Complete the following steps to set up NativeScript on your Linux development ma

5. Install the [Android SDK](http://developer.android.com/sdk/index.html).
1. Go to [Android Studio and SDK Downloads](https://developer.android.com/sdk/index.html#Other) and in the **Command line tools only** section download the package for Linux at the bottom of the page.

2. After the download completes, unpack the downloaded archive into a folder, such as `/usr/local/android/sdk/cmdline-tools`
* The archive you just extracted was the `tools` folder, so in this case it would be at: `/usr/local/android/sdk/cmdline-tools/tools`
3. Set the ANDROID_HOME environment variable. Open `~/.bashrc` and add the following:

3. Set the ANDROID_HOME environment variable. Open `~/.bashrc` and add the following:
<pre><code class="language-terminal">export ANDROID_HOME="/usr/local/android/sdk/"
export PATH="${PATH}:${ANDROID_HOME}cmdline-tools/tools/:${ANDROID_HOME}platform-tools/"</code></pre>
4. In a text file which was opened, paste in the path to your variable (at the new line).
Expand Down

0 comments on commit 733be1a

Please sign in to comment.