search for: gem_path

Displaying 20 results from an estimated 41 matches for "gem_path".

Did you mean: geom_path
2007 Feb 08
1
mongrel cluster and local gems loading problem
Hello, I''m trying to augment the GEM_PATH to load gems from ~/.gem/ using this at the begging of the rails application config/environment.rb file: ENV[''GEM_PATH''] = File.expand_path(''~/.gem'') This works fine from within script/console: $ script/console >> require ''pdf/writer'...
2006 Aug 03
5
Cannot find gem for Rails error from dispatch.cgi
Hi All, I''m developing a Rails app with Rails v1.1.4, but when I upload it to Dreamhost and try to serve it with dispatch.cgi, I get the error "Cannot find gem for Rails =1.1.4". However, I have installed the 1.1.4 gem in my home directory and set GEM_PATH to look there; additionally, rake throws no errors and "rails -v" displays "Rails 1.1.4". Any ideas? Thanks! Daniel Higginbotham
2008 Apr 15
4
Version Control (and gems)
...a utility that will generate a script to re-fetch the gems at the exact version numbers I''m using now? I can easily put plugins in the VC system, but gems are in a different place. I suppose I could create some sort of link from my working directory to GEM_HOME or even to the places on GEM_PATH but that seems like a pain. QUESTION: So what are the best practices for version control and gems? And does the answer change if I use git instead of svn? (And is one really better than the other for rails projects?) F --~--~---------~--~----~------------~-------~--~----~ You received this mes...
2007 Jul 31
2
Camping-list Digest, Vol 15, Issue 2
...ments. Namely: `gem_original_require'': no such file to load -- camping/fastcgi (LoadError) Strange, it works fine when I do it in IRB, or do it from a ruby script at the bash prompt. Apache runs as the same user that I''m currently logged in as, but just as a check, I added the GEM_PATH statement to my /etc/profile Still nothing. I''m going to screw around with it more today, I''ll post if I solve it. Thanks again for the help! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/2...
2013 Oct 16
1
Issue with Deploying a Rails app on VPS - cannot load such file -- unicorn/launcher
...:in `require'': cannot load such file -- unicorn/launcher (LoadError) from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems /core_ext/kernel_require.rb:45:in `require'' from /usr/bin/unicorn:3:in `<main>'' Could it be because if my GEM_HOME and GEM_PATH are different? $GEM_PATH /usr/local/rvm/gems/ruby-2.0.0-p247:/usr/local/rvm /gems/ruby-2.0.0-p247@global $GEM_HOME /usr/local/rvm/gems/ruby-2.0.0-p247 Any help would very much appreciated. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&q...
2006 Nov 30
0
Are shared libraries being loaded in some other context?
I have come across an oddity and wanted to ask if anyone else has looked into this. 1) I have a locally installed gem: RMagick. 2) It loads and works just fine from script/console when I have LD_LIBRARY_PATH and GEM_PATH set in the shell. However, in the live environment it just does not want to play nicely. I have both LD_LIBRARY_PATH and GEM_PATH set in environment.rb and echo those values after a failure to load RMagick and see they are set. Here is some debug output from the controller trying to load RMagick...
2007 Feb 27
5
Camping on Dreamhost - Please Help!
...s, but have had no success. I''d really appreciate any suggestions! The camping gem is on the dreamhost server, but just to make sure it wasn''t a dependency issue causing all the problems, I installed camping + the full set of dependencies in my own gem directory (both are on the GEM_PATH). Other gems in this directory work fine. The following script, which really just loads camping, works from the command line, but gives me a internal server error if I invoke it as a cgi. When I substitute any other gem for camping (for example gruff) it runs fine as a cgi. #!/usr/bin/ruby requ...
2008 Jul 18
4
gem question on hosted service
All, This may be a gem question (not rails) but I feel sure someone else on this list has seen this issue go by. I use a hosting service that has ROR available, but I am among the few developers using it. I am developing on a local linux box, and have been very careful to NOT use any extra gems because I might have a problem with my provider. Well ... fastercsv rocks and I wanted to use it. My
2006 Dec 21
0
how does capistrano get the ENV?
I don''t have the same environment variables with a capistrano task as I do with a conventional ssh session. When I ssh in and try "env" I see my GEM_HOME and GEM_PATH environment variables from my ~/.bash_profile (I also have a .gemrc file). But when I try "cap shell" and "env" I don''t see the GEM_HOME and GEM_PATH environment variables. How do I force capistrano to pick up the shell environment variables when it runs? Why doesn...
2011 Apr 18
2
rubygems fail - require hpricot!
.../bin:/Users/Anush/.rvm/rubies/ruby-1.9.2-p180/bin:/Users/Anush/.rvm/bin:$PATH" rvm_path=''/Users/Anush/.rvm'' export rvm_path RUBY_VERSION=''ruby-1.9.2-p180'' export RUBY_VERSION GEM_HOME=''/Users/Anush/.rvm/gems/ruby-1.9.2-p180'' export GEM_HOME GEM_PATH=''/Users/Anush/.rvm/gems/ruby-1.9.2-p180'' export GEM_PATH MY_RUBY_HOME=''/Users/Anush/.rvm/rubies/ruby-1.9.2-p180'' export MY_RUBY_HOME IRBRC=''/Users/Anush/.rvm/rubies/ruby-1.9.2-p180/.irbrc'' export IRBRC rvm_ruby_string=''ruby-1.9.2-p180...
2007 Mar 28
3
Camping on Dreamhost - Please Help!
Dan did you get camping running on dreamhost already?? i?m trying to run it also but i haven''t succeed yet. it runs on command line but when i add the rewrite rules on .htaccess i get a internal server error. I emailed support to ask about ScriptAlias and they say they cannot change or add that to apache conf. -- Andr? G. Cardozo
2006 Aug 16
6
Experience with ferret on Dreamhost ?
Does anybody have experience with running ferret on dreamhost ? My app is running ok until I install the acts_as_ferret plugin, at which point I get "Rails application failed to start properly" errors. I''ve used script/console to confirm that I can require ''ferret'' and make a new Index object . Everything appears to be ok in that respect. Unfortunately
2010 Dec 11
2
Problem using rvm in bash script
...;/usr/local/bin/gem" rake: "/usr/bin/rake" environment: PATH: "/home/colinl/bin/piglet:/home/colinl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/colinl/.rvm/bin:/home/colinl/.rvm/bin" GEM_HOME: "" GEM_PATH: "" MY_RUBY_HOME: "" IRBRC: "" RUBYOPT: "" gemset: "" Which is not right at all, it being the same as i get if I enter rvm info without preceding it with rvm use. Google has not helped me to a solution. Has a...
2006 Mar 29
4
xmlsimple not found
I''ve been working through the Flickr tutorial, and it looks like I installed the Flickr gem with the require xml-simple gem without problems. But when I got to the point in the demo when it was time to submit the form, I got an error with the message "uninitialized constant Flickr". I did some poking around at the gem repository, and ran ''ruby
2005 Dec 18
8
Invoking Rails from an API
Hi, I am trying to use ruby int an embedded web server. The environment does not have the luxury of CGI or WebBrick. I find limited documentation on how to get this to work. As a test program on windows, I tried the code in the section below. I have the issues. 1. Is public/dispatch.rb the right script to invoke a rails app? If so, what is the right way to invoke dispatch.rb? 2.
2010 Jun 09
3
rake tells me to install gems that are already there
Hi, I''ve on hostmonster.com and i''ve run into a small problem that I just can''t get. When I push my application into my hosting environment and try to run rake db:migrate, I get an error message from rake telling me to install the missing gem my environment.rb file has: config.gem "formtastic" config.gem "authlogic" So I installed them but I still
2006 Jul 31
6
Unable to install Gems with RubyGems on Intel OSX with DarwinPorts
...endor_ruby/1.8/rubygems/cmd_manager.rb:94:in `process_args'' from /opt/local/lib/ruby/vendor_ruby/1.8/ rubygems/cmd_manager.rb:67:in `run'' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_runner.rb:13:in `run'' from /opt/local/bin/gem:17 Adding GEM_PATH and GEM_HOME variables to ~/.profile didnt work either: export PATH=/opt/local/bin:/opt/local/sbin:/opt/local/apache2/bin:$PATH export RUBYLIB=/opt/local/lib/ruby/site_ruby/1.8:/opt/local/lib/ruby/1.8 export GEM_PATH=/opt/local/lib/ruby/gems/1.8 export GEM_HOME=/opt/local/lib/ruby/gems/1.8 Darwin...
2011 Apr 27
6
rubygems (LoadError)
I''m trying to set up a cron job with a runner that calls a method in one of my models. I''m using javan''s whenever gem to do this and I''m running CentOS on my server. Whenever the cron executes though I''m getting the following error: `require'': no such file to load -- rubygems (LoadError) The method uses the ''mail'' and
2006 Apr 11
18
Rails 1.1 in Production
My hosting company is still supporting only Rails 1.0. I have installed Rails 1.1.2 to my vendor directory and deployed it in production which should mean that my application should be using the Rails version in my vendor diretory. But It looks like its still using local gem libraries, here is the error from dispatch.fcgi when I try and invoke my app NoMethodError (undefined method
2006 Apr 10
0
Gems on custom dir are ignored
Hi: Im working on my hosting linux platform and Im trying to use custom gems not that default installed on /usr/lib/ruby/gems/1.8 I installed gems on $HOME/apps/lib/gems/1.8 I export: export GEM_HOME=$HOME/apps/lib/gems/1.8 export GEM_PATH=$HOME/apps/lib/gems/1.8 I got rails 1.1.2 rails -v shows Rails 1.1.2 but on a page using dispatch.rb I got /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.1/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log'' this shows that the default gem path is used. I don...