Last modified: 2009-10-09 19:51:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T22945, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20945 - Trying to run results in exception
Trying to run results in exception
Status: RESOLVED WORKSFORME
Product: Wikimedia Mobile
Classification: Unclassified
Retired (Ruby) Gateway (Other open bugs)
.5
All Mac OS X 10.6
: Normal normal (vote)
: ---
Assigned To: Hampton Catlin
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-02 12:24 UTC by Chad H.
Modified: 2009-10-09 19:51 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Chad H. 2009-10-02 12:24:42 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
Comment 1 Derk-Jan Hartman 2009-10-09 18:18:45 UTC
Yeah, i have this issue as well. It's weird.
Comment 2 Derk-Jan Hartman 2009-10-09 19:51:20 UTC
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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links