Tag Archive for 'ruby'

No such file to load — ubygems (LoadError)

1
2
Whatever Ruby module I want to install under Cygwin I always get the same
error: <span style="color: #007700;">ruby: <span style="color: #d2691e;">No such file to load -- ubygems (LoadError)</span></span>

I’ve tried install rubygem, rubyfcgi etc. After “ruby config.rb config” or
“ruby config.rb install” I get error: “ruby: No such file to load –
ubygems (LoadError)” It looks strange. I am using last cygwin installation
with ruby 1.8.2 ()ruby 1.8.2 (2004-12-25) [i386-cygwin])

—-

True. Try to unset the RUBYOPT environment variable. Did the trick for me.
Continue reading ‘No such file to load — ubygems (LoadError)’

Ruby on Rails Windows安装问题

Ruby on Rails使用Windows上安装Ruby on Rails的时候,在使用gem安装Rails的时候遇到这样的问题

1
gem install rails --include-dependencies

错误提示找不到 ssleay32.dllzlib.dll,这时候需要下载下面这几个文件放到 \ruby-version\bin 这个目录下

ruby on rails with Dream Host

Ruby on Rails最近KAKA在DH上搭建了一个Django的测试环境,感觉Python还是很强大,不过似乎做有些小而快速的WEB应用就不那么实在。今天在 Dream Host 上测试 Ruby on Rails,非常成功,安装非常简单,只要在DH的控制面板中把你Domain的FastCGI支持打开就可以了,我使用的是子目录的形式建立Ruby on Rails应用的。

不过在自己的windows上搭建开发环境的时候遇到了一点问题,在启动了服务之后出现

1
Application error (Rails)

的错误,后来google了一下,原来是服务的启动方式不对,必须使用

1
ruby script/server

才能正常工作 ;)

关于在windows上搭建 Ruby on Rails 的开发环境完全可以使用这个软件包

Installing Ruby on Rails with mod_fcgi for Apache 2

railsAfter a few hours of trial and error using advice from many different sites/posts, this is the process that I found successful in getting Ruby on Rails working with the Apache 2 fcgi module on linux. I hope this helps someone hang onto a few more hair follicles.

Before we begin, I can say that this was only successful when I did the setup in this order. Perhaps others have done it in a different way, but this worked for me. BTW, I using Redhat Enterprise 4.

First, we’ll install ruby.

1
2
3
4
5
6
7
curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.4.tar.gz
tar xvfz ruby-1.8.4.tar.gz
cd ruby-1.8.4
./configure --codefix=/usr/local
make
make install
cd ..

Just to make sure everything installed properly try this:

1
ruby --version

It should return something like this:

1
ruby 1.8.4 (2005-12-24) [i686-linux]

Now let’s install ruby gems.

1
2
3
4
5
curl -O http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz
tar xvfz rubygems-0.8.11.tgz
cd rubygems-0.8.11
ruby setup.rb
cd ..

Now we need to install the FastCGI development kit.

1
2
3
4
5
6
7
curl -O http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
tar xvfz fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure --codefix=/usr/local
make
make install
cd ..

Allrighty then. We’re moving now.
Continue reading ‘Installing Ruby on Rails with mod_fcgi for Apache 2′