# Problem "ruby script/server", if I need change the program?

**URL:** <https://www.ruby-forum.com/t/problem-ruby-script-server-if-i-need-change-the-program/112301>\
**Category:** Rails\
**Created:** [August 17, 2007, 9:22am UTC](https://www.ruby-forum.com/t/problem-ruby-script-server-if-i-need-change-the-program/112301 "2007-08-17T09:22:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhan\_feng\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/a88e57/32.png) [@Zhan\_feng\_W](https://www.ruby-forum.com/u/Zhan_feng_W)\
**Post date:** [August 17, 2007, 9:22am UTC](https://www.ruby-forum.com/t/problem-ruby-script-server-if-i-need-change-the-program/112301/1 "2007-08-17T09:22:23Z")

</div>

How come like this:

ruby script/server  
=\> Booting WEBrick…  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require': ./script/../config/../config/environment.rb:8: syntax error, unexpected '<' (SyntaxError) <%= '# ' if freeze %>RAILS_GEM_VERSION = '<%= Rails::VERSION::STRING %>' unless defined? RAILS_GEM_VERSION ^ from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`require’  
from  
./script/…/config/…/vendor/rails/activesupport/lib/active\_support/dependencies.rb:495:in  
`require' from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in`new\_constants\_in’  
from  
./script/…/config/…/vendor/rails/activesupport/lib/active\_support/dependencies.rb:495:in  
`require' from ./script/../config/../vendor/rails/railties/lib/commands/servers/webrick.rb:52 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`gem\_original\_require’  
from  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require' from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in`require’  
from  
./script/…/config/…/vendor/rails/activesupport/lib/active\_support/dependencies.rb:342:in  
`new_constants_in' from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in`require’  
from  
./script/…/config/…/vendor/rails/railties/lib/commands/server.rb:39  
from script/server:3:in `require’  
from script/server:3

---

<div class="post-metadata">

**Author:** ![Zhan\_feng\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/a88e57/32.png) [@Zhan\_feng\_W](https://www.ruby-forum.com/u/Zhan_feng_W)\
**Post date:** [August 17, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/problem-ruby-script-server-if-i-need-change-the-program/112301/2 "2007-08-17T20:37:28Z")

</div>

Hey zhan,

I feel it’s unable to identify the ERB code which you are written in  
your application’s environment.rb file(as it is showing line number 8)

Just check whether ERB code is supported inside environment.rb file

On Aug 17, 12:22 pm, Zhan feng Wang [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
