Cheryl Chase
2005-Jul-05  07:13 UTC
environment.rb:5:in `initialize'': No such file or directory
I''m trying to learn a bit about RoR. I''ve succeeded with the
cookbook
tutorial running via webrick, but I''m having trouble installing
Hieraki.
Here''s the error message:
-bash-2.05b$ ruby script/server ./script/../config/environment.rb:5:in
`initialize'': No such file or directory -  ./script/../config/..//
config/config.yml (Errno::ENOENT) from
./script/../config/environment.rb:5:in `open'' from
./script/../config/environment.rb:5 from script/server:42:in `require''
from script/server:42 -bash-2.05b$
What I did before getting this error message:
I installed ruby and gem and rails.
I checked out the hieraki trunk.
I created the database in mysql and initialized the db schema: 
        mysql hieraki <db/mysql.sql
I added this line to config/database.yml.example: socket:
        /var/lib/mysql/mysql.sock
I edited the ip address in script/server to reflect the actual ip of the
server
I set the following environment variable: 
        -bash-2.05b$ printenv | grep
        RAILS RAILS_ROOT=/home/rails/hieraki
What am I missing here?
Thanks,
Cheryl
Robert Williams
2005-Jul-05  11:45 UTC
Re: environment.rb:5:in `initialize'': No such file or directory
> -bash-2.05b$ ruby script/server ./script/../config/environment.rb:5:in > `initialize'': No such file or directory - ./script/../config/..// > config/config.yml (Errno::ENOENT) from > ./script/../config/environment.rb:5:in `open'' from > ./script/../config/environment.rb:5 from script/server:42:in `require'' > from script/server:42 -bash-2.05b$Does config/config.yml exist? I think there is config.yml.example in the config directory, if you rename it to config.yml you should be good to go! _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Cheryl Chase
2005-Jul-05  15:39 UTC
Re: environment.rb:5:in `initialize'': No such file ordirectory
Robert Williams <booshank@...> writes: > Does config/config.yml exist?
I
think there is > config.yml.example in the config directory, if you
rename it to > config.yml you should be good to go!
Oops. Yes, that helped. But now I have the following error, and again
stumped. Ruby must know where rubygems is, because it''s rubygems that
produced the error.
-bash-2.05b$ ruby script/server
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:194:in
`report_activate_error'':
Could not find RubyGem syntax (> 0.0.0) (Gem::LoadError)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:136:in
`activate''
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:37:in
`require_gem_with_options''
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:31:in
`require_gem''
        from ./script/../config/environment.rb:74
        from script/server:42:in `require''
        from script/server:42
-bash-2.05b$  
Again, the trivial cookbook application on webrick works.