We are working in a mixed dev env, comprised of OS X (Tiger) and Linux (Ubuntu Hoary) boxen. From OS X, when I type: rails temp I get a dir structure that looks like this: CHANGELOG Rakefile components db lib public test README app config doc log script vendor My "vendor" directory is empty. When I type rails temp on linux, I get the same structure, but there are symbolic links to the guts of rails in the vendor directory. Additionally, the environment.rb file contains this on OS X: ADDITIONAL_LOAD_PATHS.concat %w( app app/models app/controllers app/helpers app/apis components config lib vendor vendor/rails/railties vendor/rails/railties/lib vendor/rails/actionpack/lib vendor/rails/activesupport/lib vendor/rails/activerecord/lib vendor/rails/actionmailer/lib vendor/rails/actionwebservice/lib ).map { |dir| "#{RAILS_ROOT}/#{dir}" }.select { |dir| File.directory? (dir) } which does not work on the linux box, because there is no "rails" directory in the vendor directory. In short, when I create a project in OS X, zip it up and plunk it on a linux box, (or check it out of cvs) it won''t run. I get the following error when I try to run it: /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'': no such file to load -- active_support (LoadError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 21:in `require'' from ./script/../config/environment.rb:50 from script/server:42 Both platforms appear to be using rails 0.13.1 What is going on here? Thanks! -- Kimball
On 10/09/2005, at 7:21 AM, Kimball Larsen wrote:> Additionally, the environment.rb file contains this on OS X: > ADDITIONAL_LOAD_PATHS.concat %w( > app > app/models > app/controllers > app/helpers > app/apis > components > config > lib > vendor > vendor/rails/railties > vendor/rails/railties/lib > vendor/rails/actionpack/lib > vendor/rails/activesupport/lib > vendor/rails/activerecord/lib > vendor/rails/actionmailer/lib > vendor/rails/actionwebservice/lib > ).map { |dir| "#{RAILS_ROOT}/#{dir}" }.select { |dir| > File.directory?(dir) } > > which does not work on the linux box, because there is no "rails" > directory in the vendor directory.Unless your app is running its own rails version there shouldn''t be a rails dir in /vendor, nor should it matter if it is in the load path. The above environment.rb excerpt looks fine to me.> In short, when I create a project in OS X, zip it up and plunk it > on a linux box, (or check it out of cvs) it won''t run. I get the > following error when I try to run it: > > /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require__'': no such file to load -- active_support (LoadError) > from /usr/local/lib/site_ruby/1.8/rubygems/ > custom_require.rb:21:in `require'' > from ./script/../config/environment.rb:50 > from script/server:42Looks like something is trying to require_gem ''active_support'' instead of ''activesupport''. What''s line 50 of environment.rb? p.s. I''ve deployed Rails app that were created on OSX (from a variety of ruby/rails setups) and have never had a problem (apart from shebang mismatches -- IMO rails should use "#!/usr/bin/env ruby" instead. -- tim lucas