windows下进行rails安装
2014-05-12 23:20
169 查看
主要是参考:http://www.admin10000.com/Document/140.html
x:/>rails new work --database mysql
错误信息如下:
extconf failed, exit code 1
Gem files will remain installed in D:/BillFiles/rails_dev/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.3.15 for inspection.
Results logged to D:/BillFiles/rails_dev/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/mysql2-0.3.15/gem_make.out
An error occurred while installing mysql2 (0.3.15), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.15'` succeeds before bundling.
找遍google,都是ubuntu的命令行,主要是更新libmysqlclient-dev。
参考:http://stackoverflow.com/questions/3608287/error-installing-mysql2-failed-to-build-gem-native-extension
x:/>gem install mysql2 -- '--with-mysql-lib="C:\Program Files\MySQL\MySQL Server 5.6\lib" --with-mysql-include="C:\Program Files\MySQL\MySQL Server 5.6\include"'
将C:\Program Files\MySQL\MySQL Server 5.6\lib\libmysql.dll复制到ruby/bin目录下。
执行:x:/>rails new work --database mysql
成功!
x:/>rails new work --database mysql
错误信息如下:
extconf failed, exit code 1
Gem files will remain installed in D:/BillFiles/rails_dev/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.3.15 for inspection.
Results logged to D:/BillFiles/rails_dev/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/mysql2-0.3.15/gem_make.out
An error occurred while installing mysql2 (0.3.15), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.15'` succeeds before bundling.
找遍google,都是ubuntu的命令行,主要是更新libmysqlclient-dev。
参考:http://stackoverflow.com/questions/3608287/error-installing-mysql2-failed-to-build-gem-native-extension
x:/>gem install mysql2 -- '--with-mysql-lib="C:\Program Files\MySQL\MySQL Server 5.6\lib" --with-mysql-include="C:\Program Files\MySQL\MySQL Server 5.6\include"'
将C:\Program Files\MySQL\MySQL Server 5.6\lib\libmysql.dll复制到ruby/bin目录下。
执行:x:/>rails new work --database mysql
成功!
相关文章推荐
- Windows 10将很快允许用户在未安装应用之前首先进行体验
- windows下安装ruby和 rails的痛苦经历
- windows下 rails3.1+Rmagick+ImageMagick安装
- Windows 安装Apache2.2和Mongrel运行Ruby on Rails
- mac book pro 全新安装 windows系统 进行键盘映射,启动标准F1,F2
- 使用WIM格式进行WES 7 (windows embedded standard )的安装
- Ruby on rails开发从头来(windows)(五)-对输入进行验证
- linux虚拟机安装ruby和ruby on rails实例(windows系统使用)
- Windows上Emacs的安装及emacsclient进行C/S连接
- Windows环境下Rails安装Bootstrap失败解决方法
- rails在windows下安装遇到的问题
- windows安装ruby on rails
- windows 下利用vbs进行程序的自动安装
- windows下安装多个jdk,并根据需求进行切换
- 在windows下安装ruby1.9.2,rails和DevKit
- windows下Rails安装MySql驱动的配置
- 在windows下切换python2和python3以及分别使用pip2和pip3进行库安装
- windows下使用cpanm进行模块安装
- Ubuntu 安装MySQL数据库,Windows 安装MySQL WorkBench进行远程管理,Django远程连接 手记