Ruby इंस्टॉल करना
Ruby install करना एक video play करने से पहले player पाने जैसा है। आपके computer को Ruby install करना ज़रूरी है ताकि यह Ruby programs समझ और चला सके।
In this page:
Ruby Install करना
कोई भी Ruby script चलाने से पहले Ruby को install होना ज़रूरी है, और यह Linux, macOS, और Windows पर विभिन्न installers के जरिए available है।
ज़्यादातर developers एक single system-wide install की बजाय प्रति project Ruby versions के बीच switch करने के लिए rbenv या rvm जैसा एक version manager इस्तेमाल करते हैं। apt, brew, और choco जैसे Package managers भी direct installs देते हैं।
Note:
install करने के बाद यह confirm करने के लिए
ruby -v चलाएँ कि interpreter आपके PATH पर है।उदाहरण: Installing Ruby
# Linux (Ubuntu/Debian)
sudo apt-get update && sudo apt-get install -y ruby-full
# macOS (Homebrew)
brew install ruby
# Windows (Chocolatey)
choco install ruby
# Verify installation (all platforms)
ruby -v
⚠️ Run this in your own terminal or Node.js environment.
Related Topics
{# 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. #}
आम गलतियां
- macOS पर projects के लिए system Ruby इस्तेमाल करना, जो old है और permissions चाहता है;
rbenvया Homebrew Ruby जैसा एक version manager safer है। sudo gem installसे एक gem install करना, जो बाद में permission problems cause कर सकता है।- install करने के बाद
ruby -vskip करना, इसलिए एक गलत या missing PATH सिर्फ तब मिलता है जब एक script fail हो।
🔒
Chapter Quiz — Complete all 7 topics to unlock
0/7 topics done
Complete these topics first: