Home  >  Article  >  Database  >  bundle install 出现 'gem install mysql2

bundle install 出现 'gem install mysql2

WBOY
WBOYOriginal
2016-06-07 15:40:101234browse

bundle install 出现 'gem install mysql2 -v '0.3.15' succeeds before bunding ' 解决:sudo apt-get install libmysql-ruby '若找不到这个包试试下面到包 参考:http://packages.ubuntu.com/search?keywords=mysql-ruby ruby-dataobjects-mysql libmysqld

bundle install 出现  'gem install mysql2 -v '0.3.15' succeeds before bunding '

解决:sudo apt-get install libmysql-ruby '若找不到这个包试试下面到包

         参考:http://packages.ubuntu.com/search?keywords=mysql-ruby

        ruby-dataobjects-mysql

          libmysqldb-ruby

          ruby-dbd-mysql

           sudo apt-get install libmysqlient-dev ' 有时候装好了需要更新(这个是关键)

装好这两个后再bundle install后就成功了。


若在启动rails  s的时候报错很多 'require' 或者'block in require'

解决: apt-get install node-js:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn