Last modified: 2009-10-09 19:51:20 UTC
Followed instructions at http://github.com/hcatlin/wikimedia-mobile for installing merb 1.1 and all prerequisites. Setup hostnames for testing. Ran 'merb -a thin' and got the following exception: $ merb -a thin Loading init file from /Applications/XAMPP/xamppfiles/htdocs/wikimedia-mobile/config/init.rb /Applications/XAMPP/xamppfiles/htdocs/wikimedia-mobile/config/init.rb:5: uninitialized constant Encoding (NameError) from /Library/Ruby/Gems/1.8/gems/merb-core-1.1/lib/merb-core/bootloader.rb:521:in `load' from /Library/Ruby/Gems/1.8/gems/merb-core-1.1/lib/merb-core/bootloader.rb:521:in `load_initfile' from /Library/Ruby/Gems/1.8/gems/merb-core-1.1/lib/merb-core/bootloader.rb:388:in `run' from /Library/Ruby/Gems/1.8/gems/merb-core-1.1/lib/merb-core/bootloader.rb:99:in `run' from /Library/Ruby/Gems/1.8/gems/merb-core-1.1/lib/merb-core/server.rb:172:in `bootup' from /Library/Ruby/Gems/1.8/gems/merb-core-1.1/lib/merb-core/server.rb:42:in `start' from /Library/Ruby/Gems/1.8/gems/merb-core-1.1/lib/merb-core.rb:170:in `start' from /Library/Ruby/Gems/1.8/gems/merb-core-1.1/bin/merb:11 from /usr/bin/merb:19:in `load' from /usr/bin/merb:19
Yeah, i have this issue as well. It's weird.
OK ruby 1.9 required etc. Instructions for Mac OS X 10.6 Leopard using http://www.macports.org/ sudo /opt/local/bin/port install ruby19 sudo /opt/local/bin/gem1.9 update --system sudo /opt/local/bin/gem1.9 install dm-core dm-more sudo /opt/local/bin/gem1.9 install merb merb-cache --source http://edge.merbivore.com sudo /opt/local/bin/gem1.9 install memcache-client haml sudo /opt/local/bin/gem1.9 install merb-haml --source http://edge.merbivore.com sudo /opt/local/bin/gem1.9 install curb nokogiri gchartrb do_mysql webrat sudo /opt/local/bin/gem1.9 install merb_datamapper --source http://edge.merbivore.com add "127.0.0.1 en.m.wikitest.org" to the file /etc/hosts Enter git directory of wikipedia mobile and launch with: PATH="/opt/local/bin:$PATH" /opt/local/bin/merb -a thin