![]() |
|
#1
|
|||
|
|||
|
Is it possible for us to install our own ruby gems? If so, how is it done?
Thanks, Joe |
|
#2
|
|||
|
|||
|
I am curious too about that
|
|
#3
|
|||
|
|||
|
If you are using SSH, I believe you have to request BH to install the desired gem. That's what I have found. A week or two ago I requested them install a flickr gem. They did it within a couple of hours.
|
|
#4
|
|||
|
|||
|
|
|
#5
|
|||
|
|||
|
Quote:
% gem install sources-0.0.1.gem I get an error "ERROR: Error installing gem sources-0.0.1.gem[.gem]: You don't have write permissions into the /usr/lib/ruby/gems/1.8 directory." any ideas? |
|
#6
|
||||
|
||||
|
Quote:
http://wiki.netbeans.org/wiki/view/RubyInstallation seem like you can install to home directory. but i havent try this. just search around and learning
__________________
Charles Gan Bluehost Reviews : Bluehost reviews hosted at bluehost ![]() Bluehost Speed Test : bluehost hosting speed Test! Bluehost Uptime : Bluehost uptime monthly reports |
|
#7
|
|||
|
|||
|
This methods worked for me. If you modified your .bashrc file from the shell, you will have to do "source ~/.bashrc" to load the new environment. After that it works fine.
|
|
#8
|
||||
|
||||
|
__________________
|
|
#9
|
|||
|
|||
|
Quote:
require 'hpricot' to my environment.rb. But the app crashes because it can't find the gem - commenting out the require makes it work again. In the tutorial, it says you should add the following line to your environment.rb: ENV['GEM_PATH'] = '/path/to/your/home/.gems:/usr/lib/ruby/gems/1.8' now, path/to/your/home looks like it's meant to be replaced with, well, the path to my home. But what does it mean by home? Is it the root folder that has the file .gems? When i change it to ENV['GEM_PATH'] = '~/.gems:/usr/lib/ruby/gems/1.8' or ENV['GEM_PATH'] = '~/../../../.gems:/usr/lib/ruby/gems/1.8' or similar variations, it doesn't seem to make any difference. Has anyone else had a similar experience, or know how to fix this? thanks |
|
#10
|
|||
|
|||
|
/path/to/home is something like /home/username [replace username with yours]
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|