Forum: Ruby on Rails Problems when freezing gems (rails 1.2.1)

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3f7fc5fbdbb40cf38d5bf94f265b343c?d=identicon&s=25 Andrew Skegg (askegg)
on 2007-01-20 02:29
Hi All,

Here is a brief summary of the problem:

iMac:/Users/askegg root# rails -v
Rails 1.2.1

iMac:/Users/askegg root# rails hack
      create  app/controllers
     <cut for brevity>
      create  log/test.log

iMac:/Users/askegg root# cd hack

iMac:/Users/askegg/hack root# rake rails:freeze:gems
(in /Users/askegg/hack)
/Users/askegg/hack/config/boot.rb:29:Warning: require_gem is obsolete.
Use gem instead.
Freezing to the gems for Rails 1.2.1
rm -rf vendor/rails
mkdir -p vendor/rails
cd vendor/rails
ERROR:  While executing gem ... (ArgumentError)
    install directory "activesupport-1.4.0" not absolute
rake aborted!

(See full trace by running task with --trace)

iMac:/Users/askegg/hack root# cd vendor/rails/

iMac:/Users/askegg/hack/vendor/rails root# ls -la
total 0
drwxr-xr-x   3 root  askegg  102 Jan 20 12:01 .
drwxr-xr-x   4 root  askegg  136 Jan 20 12:01 ..
drwxr-xr-x   2 root  askegg   68 Jan 20 12:01 activesupport-1.4.0

iMac:/Users/askegg/hack root# gem list

*** LOCAL GEMS ***

actionmailer (1.3.1)
    Service layer for easy email delivery and testing.

actionpack (1.13.1)
    Web-flow and rendering framework putting the VC in MVC.

actionwebservice (1.2.1)
    Web service support for Action Pack.

activerecord (1.15.1)
    Implements the ActiveRecord pattern for ORM.

activesupport (1.4.0)
    Support and utility classes used by the Rails framework.

capistrano (1.3.1)
    Capistrano is a framework and utility for executing commands in
    parallel on multiple remote machines, via SSH. The primary goal is
    to simplify and automate the deployment of web applications.

daemons (1.0.4)
    A toolkit to create and control daemons in different ways

fcgi (0.8.7)
    FastCGI library for Ruby.

gem_plugin (0.2.1)
    A plugin system based only on rubygems that uses dependencies only

mongrel (
    A small fast HTTP library and server that runs Rails, Camping, and
    Nitro apps.

needle (1.3.0)
    Needle is a Dependency Injection/Inversion of Control container for
    Ruby. It supports both type-2 (setter) and type-3 (constructor)
    injection. It takes advantage of the dynamic nature of Ruby to
    provide a rich and flexible approach to injecting dependencies.

net-sftp (1.1.0)
    Net::SFTP is a pure-Ruby implementation of the SFTP client protocol.

net-ssh (1.0.10)
    Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.

rails (1.2.1)
    Web-application framework with template engine, control-flow layer,
    and ORM.

rake (0.7.1)
    Ruby based make-like utility.

rubygems-update (0.9.1)
    RubyGems Update GEM

sources (0.0.1)
    This package provides download sources for remote gem installation

iMac:/Users/askegg/hack root# ./script/about
./script/../config/boot.rb:29:Warning: require_gem is obsolete.  Use gem
About your application's environment
Ruby version                 1.8.5 (i686-darwin8.8.1)
RubyGems version             0.9.1
Rails version                1.2.1
Active Record version        1.15.1
Action Pack version          1.13.1
Action Web Service version   1.2.1
Action Mailer version        1.3.1
Active Support version       1.4.0
Application root             /Users/askegg/hack
Environment                  development
Database adapter             mysql
Ef3aa7f7e577ea8cd620462724ddf73b?d=identicon&s=25 Rob Biedenharn (Guest)
on 2007-01-20 04:43
(Received via mailing list)
Actually, this doesn't seem to be strictly Rails.  I hit the same
issue doing a:

$ gem unpack file-tail
ERROR:  While executing gem ... (ArgumentError)
     install directory "file-tail-0.1.3" not absolute

I know that I did this before updating to rubygems-0.9.1


Rob Biedenharn
387fb00ef9d6d523d43018d9c81ab36b?d=identicon&s=25 linoj (Guest)
on 2007-03-27 19:07
FYI, I found this post by googling my problem

    "rails:freeze install directory not absolute"

and I fixed it by updating my gem to 0.9.2:

    sudo gem update --system
This topic is locked and can not be replied to.