Ruby on rails Problems with msvcrt-ruby191.dll on XP

I try to run Rails3 on XP Profesoinal and follow the instructions here http://railstutorial.org , and I constantly get the following errors: even trying to return static pages. The message is the entry point of the rb_str2cstr procedure and cannot be placed in the msvcrt-ruby191.dll dynamic link library

In addition, a "no driver for sqlite3 found" runtime error appears on the page, although I have not created any models yet. Sqlite3.exe, sqlite3.dll and sqlite3.def are in the bin folder, and I ran the Gem install sqlite3-ruby.

I also tried gem install mongrel -pre and the instructions given at http://www.ruby-forum.com/topic/202770#882858 , but nothing works

error message

+3
source share
6 answers

Here is my minimal fix for the problem:

ruby -v => 1.9.2p0 
rails -v => 3.0.0 
gem -v => 1.3.7
  • download sqlitedll-3_7_3.zip from http://sqlite.org/download.html
  • copy sqlite3.def and sqlite3.dll to ruby ​​/ bin
  • edit gemfile:

    gem 'sqlite3-ruby', '1.3.1', :require => 'sqlite3'

  • del Gemfile.lock

  • bundle install
  • rake db:migrate
+6
source

Ruby 1.9.2, Rails 3.0

rake db:migrate displays an error message:

The entry point of the rb_str2cstr procedure cannot be located in the msvcrt-ruby191.dll dynamic link library

Allowed as follows:

  • Remove gemlock.
  • Change the version of SQLite to 1.3.1.
  • Run: install the package.

rake db:migrate now gives the correct results.

+2
source

:

ruby -v => 1.9.2p0
rails -v => 3.0.0
gem -v => 1.3.7

Gemfile:

gem 'sqlite3-ruby', :require => 'sqlite3'

:

  • Deleted Gemfile.lock
  • rake db: migrate

( ).

+2

Metoo. rake db: migrate Vista-64. ( ).

: - , , , . , "gem uninstall" "bundle install" . Gemfile.lock 'Bundle install'. "rake db: migrate" . , , "Using xxx", .

0
0

XP Pro Rails. SQLite 1.2.5, , 2 .

roger 1.3.1, ( "gem install sqlite3-ruby -v 1.3.1" ). SQLite 3.6.23.1 -. sqlite3.exe,.dll .def C:\Ruby192\bin.

gemfile , SQLite 1.2.5 ( ). 1.3.1, gemfile.lock, "bundle install", "rake db: migrate" .

0

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


All Articles