Sqlite3 port errors, nokogiri errors when installing the package, gem conflicts after switching to Rails3 and merging. (Mac)

Wow, update! I added a line in gemfiles to tell her the range for my mac version of nokogiri, for example, it says: Make the packer use different gems for different platforms if you are looking for Stefan. It seems that the switch from Windows to Mac development was the culprit.

Learning how gems work on mac with rails3 because I'm having problems with sqlite3 / nokogiri / gem / bundler with Ruby and Rails3 (on my mac) ...

Problems starting immediately after upgrading to Rails 3.0.4 and ruby ​​1.9.1. Also, my teammate is coded on Windows, and I'm on a Mac. My friend just upgraded the project to Rails3, and on my Windows PC, and now I cloned it on my Mac using Git ... and I get these errors.

When I do " rake db: migrate " in our project, I get this error in red in the shell:

* You requested: sqlite3> = 0

Currently the package has sqlite3 blocked in 1.3.3 . Try to run bundle update sqlite3*

I do not know what this means or how to solve it.

Here is what without comment in my gemfile:

gem 'rails', '3.0.4'

gem 'sqlite3'

It has many comments, for example:

(# gem 'nokogiri'

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

Gemfile.lock , :

nokogiri (1.4.4.1-x86-mingw32)

sqlite3 (1.3.3-x86-mingw32)

...

, , "sudo port install sqlite3", . " sqlite3". , , , :

*** : nokogiri ~ > 1.4.2

nokogiri, 1.4.4.1. bundle update nokogiri ***

"bundle update nokogiri", , , ​​ . , .

Gemfile.lock :    nokogiri (1.4.4.1-x86-mingw32)   sqlite3 (1.3.3-x86-mingw32)

, , -, . (~ > 1.0.0.0) .., , , .

nokogiri: sudo port libxml2 libxslt sudo gem install nokogiri

: ** db: drop ! undefined []' for nil:NilClass /Users/Mike/Desktop/MikeFiles/betheduke2/BeTheDuke/**nokogiri**/ruby/1.9.1/gems/activerecord-3.0.4/lib/active_record/railties/databases.rake:126:in (2 ) '

, .

MacPorts, sqlite3, " sudo port install sqlite3" http://www.macports.org/install.php sqlite3-ruby

, , sqlite3, , , rake db: migrate, sqlite3. , , , nokogiri , .

, https://github.com/tenderlove/nokogiri/issues/387. , " " " gem", , , . Gemfile? , ?

, " " "sqlite3-ruby (1.2.5)", . , , "rake db: migrate", sqlite3, , , nokogiri.

, , , sqlite3: Sqlite3 gem

: $, -a sqlite3 ////sqlite3 /USR/ /sqlite3

$, - /Users/Mike/.rvm/rubies/ruby-1.9.2-p136/bin/gem /Users/Mike/.rvm/bin/gem /USR/ /

$, - /Users/Mike/.rvm/rubies/ruby-1.9.2-p136/bin/ruby /Users/Mike/.rvm/bin/ruby /USR/ /

, ? , , ?

- , ? "gotcha" Rails3? git ( Ruby/Rails2, - Ruby1.9.1/Rails3.0.4.) , ( , , Mac -), . , - ?

: " sqlite3": sqlite3-ruby!

+3
1

, , + OPs, :

, ! gemfiles, mac- nokogiri, : Make bundler , Stefan. , Windows Mac- .

0

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


All Articles