# Cross-installing gems

**URL:** <https://www.ruby-forum.com/t/cross-installing-gems/65534>\
**Category:** Ruby\
**Created:** [August 18, 2006, 10:03pm UTC](https://www.ruby-forum.com/t/cross-installing-gems/65534 "2006-08-18T22:03:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 18, 2006, 10:03pm UTC](https://www.ruby-forum.com/t/cross-installing-gems/65534/1 "2006-08-18T22:03:23Z")

</div>

Obvisouly I want post-install.rb to write in ./ipkg, as setup.rb does.  
What is post-install.rb trying to do?

I am trying to prepare a ruby-gems package for the iPAQ (armv4l  
architecture, linux familiar distro)

$ uname -a  
Linux chmeee 2.6.14.2 #7 PREEMPT Sat Nov 19 23:16:29 CET 2005 i686  
GNU/Linux  
$ cd iPAQ/Ruby  
$ ls  
ruby-1.8.5/ # contains functional, cross-compiled Ruby for arm  
rubygems-0.9.0/  
$ cd rubygems-0.9.0/  
$ ruby -I …/ruby-1.8.5 -rfake -rrbconfig setup.rb config  
[…]  
$ ruby -I …/ruby-1.8.5 -rfake -rrbconfig setup.rb install  
–prefix=./ipkg  
[…]  
As of RubyGems 0.8.0, library stubs are no longer needed.  
Searching $LOAD\_PATH for stubs to optionally delete (may take a  
while)…  
…done.  
No library stubs found.

Successfully built RubyGem  
Name: sources  
Version: 0.0.1  
File: sources-0.0.1.gem  
hook /mnt/sda2/kero/iPAQ/Ruby/rubygems-0.9.0/./post-install.rb failed:  
You don’t have write permissions into the /usr/lib/ruby/gems/1.8  
directory.  
Try ‘ruby setup.rb --help’ for detailed usage.
