Windows Ruby on Rails issue [msvcrt-ruby18.dll error] - newbie questions

I recently installed Ruby 1.9.1. Everything went well, I installed devkit, gems, rails and decided to use the RadRails IDE. But when I typed the ruby ​​script / server command, I got an error message telling me that msvcrt-ruby18.dll was not found. However, I was able to start the WEBrick server. I also tried to open " http: // localhost: 3000 " in my web browser - everything was fine, except for this: when I clicked "About your application environment", I received an error message that "something is not working " (or something similar). My OS is Vista Ultimate 64-bit. I have a few questions: 1. I did some research, and it seems that the problem is related to the gem binaries - they are built on a different version. If so, how can I fix it? Should I use a previous version of Ruby? Which version should I use? And how serious is this problem? Am I missing something? 2. It seems that the Aptana RadRails IDE installs all the necessary gems when they are launched for the first time. I suggest that you do not need to install these gems manually after installing Ruby? 3. Should I run Ruby on Ubuntu? I can install Virtual Box and run Ubuntu.

Thanks!

+4
source share
7 answers

I tried switching from Windows to Ubuntu and had the same, if not more, problems with Ruby + Rails working properly. In my opinion, Rails is especially still in a state where, if you are not personally involved in the project, it is very difficult to start using it. I heard many people talk about how easy it is to use Ruby on Rails, when in fact, if you want to create something more than a blog application (which is 99% of this lesson), you end up spending as much time as in any other structure.

Update - in a year.

I tried Ruby on Rails again and this time started with the Rails Installer - a really easy way to get Rails to work on Windows (although sometimes it can be quite slow). Overall, the Rails Tutorial is by far the best way to learn Rails.

-2
source

I have been struggling with the development of Windows rubies for over a year. I gave up and switched to Ubuntu and am very happy with it.

When I switched, I got the following advantage: - about 30% increase in ruby ​​speed -gems just install correctly and work - build your own libraries. -my development machine now matches my deployment environment - not one of the issues with Windows ssh. about a quarter of my debugging mental space was freed up without wondering: β€œIs this a problem with windows or my code?” - less shaving yaks

Now, to solve your specific problem, try the steps described in this post and the next.

Good luck.

+5
source

The current version 1.1.5 of the Mongrel version is incompatible with Ruby 1.9 and throws this error when it starts. This is easy to solve - just make sure Rubygems is up to date:

gem update --system 

Then install the new preview version of Mongrel:

 gem install mongrel --pre 
+3
source

Had the same error that tried to run Heroku on Windows. Missing msvcrt-ruby18.dll

Clovers issue fixed!

Make sure you have DevKit installed to help you collect gems first. Uninstall json gem and reinstall using:

gem install json --platform = ruby ​​-v 1.4.6

+3
source

worked like a charm! but you need the double trait "gem install json -platform = ruby". For rail projects using a picker, I received a gem and placed it in the project. This code in Gemspec allowed us to isolate this problem. if RUBY_PLATFORM = ~ / linux / gem 'json', '1.4.6' still gem 'json', '1.4.6' ,: path => 'vendor / gems' end

+1
source

I also had the same problem, you need to install Devkit, here is the process you need to complete . It is very important that at the end you install what potatocakes said:

 gem install json --platform=ruby -v 1.4.6 

Otherwise, it will install 1.5.0 and this will give you another error.

I continue about 5 full days to finally clone the application without any help. If you are here, you are very close to being able to clone or edit your application, do not give up.

+1
source

Install DevKit and reinstall json (gem install json -platform = ruby)

0
source

Source: https://habr.com/ru/post/1299822/


All Articles