← Back to Lua Course | Chapter 1: Introduction | Lesson 2 of 7

Lua को Install करना

आप Lua एक बार install करते हैं और फिर अपने programs चलाने के लिए lua command इस्तेमाल करते हैं।

In this page:

  1. Lua Install करना

Lua Install करना

Linux पर आप अपने package manager से Lua install कर सकते हैं, उदाहरण के लिए Debian और Ubuntu पर apt install lua5.3। macOS पर Homebrew के साथ brew install lua इस्तेमाल करें। Windows पर आप एक prebuilt binary package या WSL इस्तेमाल कर सकते हैं। बाद में lua -v से version check करें।

Note: यह course Lua 5.3 target करता है, इसलिए अगर आपका system कई versions offer करे तो एक 5.3 package चुनें।

उदाहरण: Installing Lua

bash
$ sudo apt install lua5.3
$ lua5.3 -v
Lua 5.3.6  Copyright (C) 1994-2020 Lua.org, PUC-Rio
$ brew install lua

⚠️ Run this in your own terminal or Node.js environment.

{# common_mistakes/chapter_summary/browser_support: on Hindi pages the view already swaps in the hi_ translation fields (or blanks these out if untranslated), so this renders correctly for both languages without a lang_code check here. #}
आम गलतियां
  1. एक अलग major version install करना और identical behaviour की उम्मीद करना
  2. यह भूल जाना कि कुछ systems पर command का नाम lua5.3 हो सकता है
  3. PATH बदलने के बाद terminal फिर से न खोलना
चैप्टर सारांश
  • Lua install करने के लिए एक package manager इस्तेमाल करें
  • lua -v installed version print करता है
  • command के नाम में version number शामिल हो सकता है
  • Versions 5.1 से 5.4 details में अलग हैं
🔒

Chapter Quiz — Complete all 7 topics to unlock

0/7 topics done

Complete these topics first:

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.