@@ -61,18 +61,19 @@ You can install and run the NativeScript CLI on Windows or OS X.
61
61
62
62
* [ Windows] ( #widnows )
63
63
* [ OS X] ( #os-x )
64
+ * [ Linux] ( #linux )
64
65
65
66
## Windows
66
67
67
68
> On Windows systems, you can develop, build, and deploy NativeScript projects that target Android.
68
69
69
70
* Windows Vista or later
70
- * [ Node.js 0.10.26] or a later stable official release
71
- * (Optional) [ Chocolatey]
72
- * [ JDK 6 ] or a later stable official release
73
- * [ Apache Ant 1.8] or a later stable official release
74
- * [ Android SDK 19] or a later stable official release
75
- * (Optional) [ Genymotion]
71
+ * [ Node.js 0.10.26] [ Node.js 0.10.26 ] or a later stable official release
72
+ * (Optional) [ Chocolatey] [ Chocolatey ]
73
+ * [ JDK 7 ] [ JDK 7 ] or a later stable official release
74
+ * [ Apache Ant 1.8] [ Apache Ant 1.8 ] or a later stable official release
75
+ * [ Android SDK 19] [ Android SDK 19 ] or a later stable official release
76
+ * (Optional) [ Genymotion] [ Genymotion ]
76
77
77
78
If you want to develop for Android, verify that you have added the following paths in the ` PATH ` system environment variable.
78
79
@@ -136,17 +137,16 @@ If you have installed Chocolatey, you can complete these steps to set up JDK, Ap
136
137
> On OS X systems, you can develop, build, and deploy NativeScript projects that target iOS and Android.
137
138
138
139
* OS X Mavericks
139
- * [ Node.js 0.10.26] or a later stable official release
140
+ * [ Node.js 0.10.26] [ Node.js 0.10.26 ] or a later stable official release
140
141
* For iOS development
141
- * [iOS 7.0 SDK][12] or a later stable official release
142
- * [Xcode 5][12] or a later stable official release
142
+ * [Xcode 6][12] or a later stable official release
143
143
* [Xcode command-line tools][12]
144
- * (Optional) [Mono] installed via Homebrew
144
+ * (Optional for working with third-party libraries) [64-bit Mono] [Mono] installed via Homebrew
145
145
* For Android development
146
- * [JDK 6 ] or a later stable official release
147
- * [Apache Ant 1.8] or a later stable official release
148
- * [Android SDK 19] or a later stable official release
149
- * (Optional) [Genymotion]
146
+ * [JDK 7][JDK 7 ] or a later stable official release
147
+ * [Apache Ant 1.8][Apache Ant 1.8] or a later stable official release
148
+ * [Android SDK 19][Android SDK 19] or a later stable official release
149
+ * (Optional) [Genymotion][Genymotion]
150
150
151
151
If you want to develop for Android, verify that you have added the following paths in your ` PATH ` in ` ~/.bash_profile ` .
152
152
@@ -161,6 +161,45 @@ For example:
161
161
export PATH=${PATH}:/ant/apache-ant-1.9.4/bin:/Applications/Android Studio.app/sdk/tools:/Applications/Android Studio.app/sdk/platform-tools
162
162
```
163
163
164
+ ## Linux
165
+
166
+ > On Linux systems, you can develop, build, and deploy NativeScript projects that target Android.
167
+
168
+ * Ubuntu 14.04 LTS
169
+ * [ Node.js 0.10.26] [ Node.js 0.10.26 ] or a later stable official release<br />If installed via ` sudo apt-get install ` , use the ` nodejs-legacy ` package.
170
+
171
+ ```Shell
172
+ sudo apt-get install nodejs-legacy
173
+ ```
174
+ * G++ compiler
175
+
176
+ ```Shell
177
+ sudo apt-get install g++
178
+ ```
179
+ * On 64-bit systems only
180
+ * The runtime libraries for the ia32/i386 architecture.
181
+
182
+ ```Shell
183
+ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 libstdc++6:i386
184
+ ```
185
+ * [ JDK 7] [ JDK 7 ] or a later stable official release
186
+ * [ Apache Ant 1.8] [ Apache Ant 1.8 ] or a later stable official release
187
+ * [ Android SDK 19] [ Android SDK 19 ] or a later stable official release
188
+ * (Optional) [ Genymotion] [ Genymotion ]
189
+
190
+ Verify that you have added the following paths in your ` PATH ` .
191
+
192
+ ```
193
+ Path to the bin subdirectory in the Apache Ant installation directory
194
+ Path to the tools subdirectory in the Android SDK installation directory
195
+ Path to the platform-tools subdirectory in the Android SDK installation directory
196
+ ```
197
+
198
+ For example:
199
+ ```
200
+ export PATH=${PATH}:/ant/apache-ant-1.9.4/bin:/Applications/Android Studio.app/sdk/tools:/Applications/Android Studio.app/sdk/platform-tools
201
+ ```
202
+
164
203
[ Back to Top] [ 1 ]
165
204
166
205
Installation
@@ -174,6 +213,8 @@ In the command prompt, run the following command.
174
213
npm install nativescript -g
175
214
```
176
215
216
+ > On OS X and Linux systems, you might need to run this command using sudo.
217
+
177
218
[ Back to Top] [ 1 ]
178
219
179
220
Quick Start
@@ -468,7 +509,7 @@ This software is licensed under the Apache 2.0 license, quoted <a href="LICENSE"
468
509
[ 12 ] : https://developer.apple.com/xcode/downloads/
469
510
[ Node.js 0.10.26 ] : http://nodejs.org/download/
470
511
[ Chocolatey ] : https://chocolatey.org/
471
- [ JDK 6 ] : http://www.oracle.com/technetwork/java/javase/downloads/index.html
512
+ [ JDK 7 ] : http://www.oracle.com/technetwork/java/javase/downloads/index.html
472
513
[ Apache Ant 1.8 ] : http://ant.apache.org/bindownload.cgi
473
514
[ Android SDK 19 ] : http://developer.android.com/sdk/index.html
474
515
[ Genymotion ] : https://www.genymotion.com/#!/
0 commit comments