To use gems on a shared server do I have to get the server admin to install it for me? Or is there another way?
In a small project I use GoogleCharts and fastercsv which were only available as gems and not rails plugins.
Thanks
To use gems on a shared server do I have to get the server admin to install it for me? Or is there another way?
In a small project I use GoogleCharts and fastercsv which were only available as gems and not rails plugins.
Thanks
I asked a somewhat similar question...here's the link (hopefully it works) to the thread. http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/75171bb6583b08eb
The response I got seemed to indicate that you can indeed put gems in another directory & point ruby at them with a -I switch..or modify $LOAD_PATH to get at the gems.
Also I ran across the gemsonrails plugin, but I failed to get it to work for me. (when I ran my custom rake deploy it flagged an error saying I needed to specify a loadpath).
I would've thought that rake rails:freeze:gems would've solved all of these problems (I'm guessing you've tried that with your app). -Dale
I didn't realize that it was trying to install to a local dir, ie the --install-dir parameter was to my ~/gems dir. So the problem isn't what I thought it was. Now I just can't install them.
When I try to install a gem I get the following:
[XXX@xxx ~]$ gem install --install-dir /home/user_name/gems GoogleCharts Bulk updating Gem source index for: http://gems.rubyforge.org /usr/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [i386-linux]
Aborted (core dumped)
I get the same message if I leave the --install-dir blank, which defaults to /home/user.../gems
This may be more of a question for the people managing the server.
I didn't realize that it was trying to install to a local dir, ie the --install-dir parameter was to my ~/gems dir. So the problem isn't what I thought it was. Now I just can't install them.
When I try to install a gem I get the following:
[XXX@xxx ~]$ gem install --install-dir /home/user_name/gems GoogleCharts Bulk updating Gem source index for: http://gems.rubyforge.org /usr/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [i386-linux]
Aborted (core dumped)
I get the same message if I leave the --install-dir blank, which defaults to /home/user.../gems
This may be more of a question for the people managing the server.
I didn't realize that it was trying to install to a local dir, ie the --install-dir parameter was to my ~/gems dir. So the problem isn't what I thought it was. Now I just can't install them.
When I try to install a gem I get the following:
[XXX@xxx ~]$ gem install --install-dir /home/user_name/gems GoogleCharts Bulk updating Gem source index for: http://gems.rubyforge.org /usr/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [i386-linux]
Aborted (core dumped)
I get the same message if I leave the --install-dir blank, which defaults to /home/user.../gems
This may be more of a question for the people managing the server.
Thanks Craig setting of the loadpaths did it.