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
Here is my minimal fix for the problem:
ruby -v => 1.9.2p0 rails -v => 3.0.0 gem -v => 1.3.7
edit gemfile:
gem 'sqlite3-ruby', '1.3.1', :require => 'sqlite3'
del Gemfile.lock
bundle install
rake db:migrate
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:
rake db:migrate now gives the correct results.
:
Gemfile:
gem 'sqlite3-ruby', :require => 'sqlite3'
( ).
: - , , , . , "gem uninstall" "bundle install" . Gemfile.lock 'Bundle install'. "rake db: migrate" . , , "Using xxx", .
" - sqlite3-ruby gem" http://betterlogic.com/roger/?p=3027
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" .
Source: https://habr.com/ru/post/1766804/More articles:Creating a thread waits for output without resorting to Thread.Sleep () - multithreadingInconsistent behavior when using sqlite3.Row to index results by name - pythonfunction definition twice in C - cGetting a full-size image from the camera does not work on Galaxy S - androidDesign pattern for handling many parameters and business rules - c #OpenJDK Fonts vs Sun JDK 1.6 [Linux Platform] - javawhy is my schema.ddl empty after hibernate3-maven-plugin? - javaКак защитить приложение Google App Engine паролем? - pythonКак я могу захватить несколько элементов и обернуть их в div, используя jquery? - javascriptMatch pattern [0-9] - [0-9] - [0-9], but without matching [0-9] - [0-9] - c #All Articles