`
baizheng
  • 浏览: 129450 次
社区版块
存档分类
最新评论

Cygwin/Rails

阅读更多

A few notes taken while trying to get Rails working on Cygwin:

  • Stock Ruby works perfectly (so far)
  • Getting gem to work is also standard fare (get tar file, unpack, ruby setup.rb)
  • Installing Rails using gem works first time, but is slow (generating documentation takes a long time)
  • Tests work, but there's no decent database support.
  • The sqlite-ruby gem does not like SQLite3 (which, incidentally, installs and works fine in Cygwin, provided you run configure --disable-tcl and use a separate build directory). I have, in fact, tried gem install sqlite3, but the results were less than optimal. Maybe next time.

The right incantation for building the gem seems to be:

gem install sqlite-ruby -- --with-sqlite-lib=/usr/local/lib \--with-sqlite-include=/usr/local/include

...but it does not like the new "3" suffix on headers and libs.

  • Unpacking sqlite-2.8.16 and installing it (also without Tcl support) worked:
$ gem install sqlite-ruby -- --with-sqlite-lib=/usr/local/lib \> --with-sqlite-include=/usr/local/includeAttempting local installation of 'sqlite-ruby'Local gem file not found: sqlite-ruby*.gemAttempting remote installation of 'sqlite-ruby'Select which gem to install for your platform (i386-cygwin) 1. sqlite-ruby 2.2.3 (mswin32) 2. sqlite-ruby 2.2.3 (ruby) 3. sqlite-ruby 2.2.2 (mswin32) 4. sqlite-ruby 2.2.2 (ruby) 5. sqlite-ruby 2.2.1 (ruby) 6. sqlite-ruby 2.2.1 (mswin32) 7. sqlite-ruby 2.2.0 (mswin32) 8. sqlite-ruby 2.2.0 (ruby) 9. sqlite-ruby 2.1.0 (ruby) 10. sqlite-ruby 2.1.0 (mswin32) 11. sqlite-ruby 2.0.3 (ruby) 12. sqlite-ruby 2.0.2 (ruby) 13. Cancel installation> 2Building native extensions.  This could take a while......Successfully installed sqlite-ruby-2.2.3Installing RDoc documentation for sqlite-ruby-2.2.3...

If you have problems building the native extensions, try doing a rebaseall on a standard Cygwin prompt without any Cygwin-based daemons running.



分享到:
评论

相关推荐

    RVM+Ruby1.9.3+Rails3(1-Cygwin 安装配置)

    在 Windows 7 环境下搭建 Rails 3 开发环境是一项颇具挑战性的任务,尤其是当涉及到 Cygwin、Ruby、Rails 以及一系列其他必要的组件时。本文将详细阐述如何在 Windows 7 系统上利用 Cygwin 进行环境搭建,包括 Git、...

    JavaEye3.0开发手记

    NetBeans Ruby IDE 是一个强大的集成开发环境,专门为Ruby on Rails (RoR) 开发而设计。它提供了丰富的功能和快捷键,极大地提高了开发效率。 **2. 下载与安装** - **下载地址**:...

    ruby-packer:将Ruby应用程序打包到单个可执行文件中

    没有MSYS2 / MinGW / Cygwin依赖项 创建您的Ruby和/或Rails应用程序的二进制发行版 本机支持任何形式的require和load ,包括动态需求(例如load(my_path + '/x.rb') ) Ruby Packer用Ruby编写,并使用Ruby Packer...

    最新版bundler,windows下可运行

    gem 'rails', '5.2.3' # 假设项目依赖Rails 5.2.3 ``` 5. **执行`bundle install`**:在项目目录中运行`bundle install`,Bundler会读取Gemfile并安装所有必要的Gem及其依赖。 6. **使用Bundler启动应用**:在...

    国外PHP动态第四期

    2. **框架和工具对比**:介绍了两种语言中常用的开发框架和工具,如PHP的Laravel与Ruby的Rails。 3. **社区和生态系统**:对比了PHP和Ruby各自的社区活跃度和生态系统成熟度。 通过这篇对比文章,读者可以更好地...

    ruby开发的基本流程.doc

    对于Windows用户来说,虽然也可以通过安装Cygwin或使用WSL(Windows Subsystem for Linux)来模拟Linux环境,但整体配置会相对复杂。 - **macOS/Linux下的Ruby安装**:在macOS或Linux环境下,可以通过包管理工具...

    Redis Cookbook.pdf

    - **Windows环境:** 虽然Redis主要针对类Unix系统设计,但也可以通过Cygwin或MSYS等方式在Windows上运行。 - **Linux环境:** 大多数Linux发行版都提供了通过包管理器安装Redis的方式,例如Ubuntu上的`apt-get ...

    cursoLaravel:Curso de laravel | Martes y Jueves por la nochecódigo42630

    Fue creado en 2011由Ruby on Rails,Sinatra和ASP.NET MVC组成的框架Taylor Taylor Otwell和Tien una Gran的影响。 格兰德·Laravel建立了独立的关系,特别是Symfony公司,埃斯托·德·拉萨尔洛维奇·德·拉萨尔...

Global site tag (gtag.js) - Google Analytics