{"id":9312,"date":"2024-01-17T05:52:21","date_gmt":"2024-01-17T05:52:21","guid":{"rendered":"https:\/\/www.bacancytechnology.com\/qanda\/?p=9312"},"modified":"2024-01-17T05:52:21","modified_gmt":"2024-01-17T05:52:21","slug":"installed-ruby-on-rails-on-windows-but-wsl-doesnt-see-installation","status":"publish","type":"post","link":"https:\/\/www.bacancytechnology.com\/qanda\/ruby-on-rails\/installed-ruby-on-rails-on-windows-but-wsl-doesnt-see-installation","title":{"rendered":"Installed Ruby on Rails on Windows but WSL doesn&#8217;t see installation"},"content":{"rendered":"<h2>Summary<\/h2>\n<p>Windows Subsystem for Linux (WSL) is a feature that enables Windows users to enjoy the benefits of Linux without leaving their Windows environment. It&#8217;s a powerful tool for developers, sysadmins, and anyone who needs to work with both Windows and Linux software on the same machine.<\/p>\n<h2>What is Windows Subsystem for Linux?<\/h2>\n<p>WSL, or Windows Subsystem for Linux, is a compatibility layer developed by Microsoft that allows you to run a Linux distribution alongside your Windows operating system. It enables you to use Linux tools, utilities, and command-line interfaces on a Windows machine without the need for dual-booting or virtualization.<\/p>\n<h3>Here are some key points about WSL:<\/h3>\n<p><strong>Interoperability:<\/strong> WSL bridges the gap between Windows and Linux, allowing you to run Linux software and execute Linux commands directly from the Windows Command Prompt or PowerShell.<\/p>\n<p><strong>Multiple Linux Distributions:<\/strong> WSL supports multiple Linux distributions, such as Ubuntu, Debian, Fedora, and more. You can choose and install your preferred distribution from the Microsoft Store.<\/p>\n<p><strong>Command-Line Integration:<\/strong> With WSL, you can seamlessly switch between Windows and Linux commands. It enables you to access Windows files from the Linux environment and vice versa.<\/p>\n<p><strong>Development Environment:<\/strong> WSL is particularly useful for developers who need a Linux-like environment for web development, scripting, and other programming tasks. You can run popular development tools like Git, Python, Node.js, and Docker within WSL.<\/p>\n<h2>Configure WSL step-by-step guide?<\/h2>\n<p>To configure Windows Subsystem for Linux (WSL), you must set up your environment for seamless integration between Windows and Linux, allowing you to work efficiently within the Linux subsystem. Below is a step-by-step guide that will help you configure WSL:<\/p>\n<p>Step 1: Open the Control Panel and search for <strong>&#8220;Turn Windows features on or off.&#8221;<\/strong><\/p>\n<p>snapshot:<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0.png\" alt=\"Control Panel and search\" width=\"760\" height=\"680\" class=\"alignnone size-full wp-image-9314\" srcset=\"https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0.png 760w, https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-300x268.png 300w\" sizes=\"(max-width: 760px) 100vw, 760px\" \/><\/p>\n<p>Step 2: Double-click on it and search for &#8220;Windows Subsystem for Linux,&#8221; then enable this option by clicking the checkbox.<\/p>\n<p>Snapshot:<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-1.png\" alt=\"Double-click on it and search\" width=\"416\" height=\"367\" class=\"alignnone size-full wp-image-9315\" srcset=\"https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-1.png 416w, https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-1-300x265.png 300w\" sizes=\"(max-width: 416px) 100vw, 416px\" \/><\/p>\n<p>Step 3: Now, open the Microsoft Store.<\/p>\n<p>Snapshot:<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-2.png\" alt=\"open the Microsoft Store\" width=\"760\" height=\"680\" class=\"alignnone size-full wp-image-9316\" srcset=\"https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-2.png 760w, https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-2-300x268.png 300w\" sizes=\"(max-width: 760px) 100vw, 760px\" \/><\/p>\n<p>Step 4: Search for &#8220;Ubuntu&#8221; on the Microsoft Store.<\/p>\n<p>Snapshot:<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-3.png\" alt=\"Search for Ubuntu\" width=\"802\" height=\"634\" class=\"alignnone size-full wp-image-9317\" srcset=\"https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-3.png 802w, https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-3-300x237.png 300w, https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-3-768x607.png 768w\" sizes=\"(max-width: 802px) 100vw, 802px\" \/><\/p>\n<p>Step 5: Click on the &#8220;Install&#8221; option for the Ubuntu version that suits your needs and wait for some time. Once the installation is complete, proceed.<\/p>\n<p>Snapshot:<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-4.png\" alt=\"Install option for the Ubuntu\" width=\"979\" height=\"512\" class=\"alignnone size-full wp-image-9318\" srcset=\"https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-4.png 979w, https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-4-300x157.png 300w, https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-4-768x402.png 768w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/p>\n<p>Step 6: Open the Ubuntu Terminal from the search and provide basic information, including your UNIX username and password, then click &#8220;Done.&#8221;<\/p>\n<p>Snapshot:<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-5.png\" alt=\"Ubuntu Terminal from the search\" width=\"1024\" height=\"728\" class=\"alignnone size-full wp-image-9319\" srcset=\"https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-5.png 1024w, https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-5-300x213.png 300w, https:\/\/www.bacancytechnology.com\/qanda\/wp-content\/uploads\/2024\/01\/pasted-image-0-5-768x546.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h2>How to Setup ruby ,rvm and rails on WSL?<\/h2>\n<p>Once you done with above steps just, To install RVM (Ruby Version Manager), Ruby, and Rails on Windows Subsystem for Linux (WSL), you can follow these step-by-step instructions. Please make sure you have WSL installed and a Linux distribution (e.g., Ubuntu) set up on your system before proceeding. Here are the steps:<\/p>\n<h3>Step 1: Update Your System<\/h3>\n<p>Open your WSL terminal and ensure that your system is up to date by running the following commands:<br \/>\n<strong>sudo apt update<\/strong><br \/>\n<strong>sudo apt upgrade<\/strong><\/p>\n<h3>Step 2: Install Dependencies<\/h3>\n<p>You&#8217;ll need some dependencies to build Ruby and Rails. Install them by running:<\/p>\n<p><strong>sudo apt install curl gpg gcc g++ make libssl-dev libreadline-dev zlib1g-dev libsqlite3-dev sqlite3 libxml2-dev libcurl4-openssl-dev libffi-dev libgdbm-dev libncurses5-dev libtool libyaml-dev libxslt1-dev autoconf bison libyaml-dev libffi-dev libgmp-dev<\/strong><\/p>\n<h3>Step 3: Install RVM<\/h3>\n<p>RVM is a Ruby version manager. You can install it using the following command:<\/p>\n<p><strong>\\curl -sSL https:\/\/get.rvm.io | bash -s stable<\/strong><\/p>\n<p>After the installation is complete, you&#8217;ll need to either restart your terminal or run the following command to load RVM:<\/p>\n<p><strong>source ~\/.rvm\/scripts\/rvm<\/strong><\/p>\n<h3>Step 4: Install Ruby<\/h3>\n<p>You can install a specific version of Ruby using RVM. For example, to install Ruby 2.7, run:<\/p>\n<p><strong>rvm install 2.7<\/strong><\/p>\n<p>After the installation is complete, set Ruby 2.7 as the default:<\/p>\n<p><strong>rvm use 2.7 &#8211;default<\/strong><\/p>\n<h3>Step 5: Install Rails<\/h3>\n<p>You can install Rails using the RubyGems package manager, which comes with Ruby. Run the following command to install Rails:<\/p>\n<p><strong>gem install rails<\/strong><\/p>\n<h3>Step 6: Verify Your Installation<\/h3>\n<p>To verify that Ruby and Rails have ruby -v rails -vbeen installed correctly, you can check their versions:<\/p>\n<p><strong>ruby -v<\/strong><br \/>\n<strong>rails -v<\/strong><\/p>\n<p>You should see the Ruby and Rails versions you installed displayed in the terminal.<\/p>\n<p>That&#8217;s it! You&#8217;ve successfully installed RVM, Ruby, and Rails on your WSL system. You can now start developing Ruby on Rails applications.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary Windows Subsystem for Linux (WSL) is a feature that enables Windows users to enjoy the benefits of Linux without leaving their Windows environment. It&#8217;s a powerful tool for developers, sysadmins, and anyone who needs to work with both Windows and Linux software on the same machine. What is Windows Subsystem for Linux? WSL, or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":9313,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-9312","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby-on-rails"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/9312"}],"collection":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/comments?post=9312"}],"version-history":[{"count":2,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/9312\/revisions"}],"predecessor-version":[{"id":9321,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/9312\/revisions\/9321"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/media\/9313"}],"wp:attachment":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/media?parent=9312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/categories?post=9312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/tags?post=9312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}