ubuntu rhodes android 安装配置
2010-05-31 02:31:00 来源:WEB开发网rake run:android
超级无敌郁闷的事情在这里发生了。
Gem install rhodes
安装的是1.5.5
跑了N遍rake,提示错误,
/var/lib/gems/1.9.1/gems/rhodes-1.5.5/platform/android/../shared/ruby/linux/ruby/config.h:263: error: previous declaration of 'rlim_t' was here
有高人在Google group里提到这个问题,说是bug,他得解决办法是找到对应目录下的config.h文件,
sudo gedit /var/lib/gems/1.8/gems/rhodes-1.5.5/platform/android/shared/ruby/linux/ruby/config.h
找到 typedef long long int rlim_t;将其注销
//typedef long long int rlim_t;
另有高人述其原因
"This error appeared because you are using recently released Android NDK r4 and there was some breaking changes. I've fixed our build scripts now so please update rhodes sources and try again. "
To get new rhodes sources you'll need either wait for the next public update (beta or release) or update it from development branch from github: http://github.com/rhomobile/rhodes
如此注销后,重新rake
又有错误:
all_files_mask: *
cd /opt/ruby1.9/bin/storemanager/bin/tmp/Rhodes/
PWD: /opt/ruby1.9/bin/storemanager/bin/tmp/Rhodes
CMD: /usr/lib/jvm/java/jdk1.6.0_19/bin/jar cf ../../Rhodes.jar *
没有这个文件或目录:*
不知道错在哪里了,这个问题一直没有解决,
于是今天重新安装了rhodes,改用2.0尝试
sudo gem install rhodes ?pre
重复上面rhodes-setup
运行到rake
错误提示
yrf@yrf-laptop:~$ rhogen app store1 http://localhost:3000/apps/store/sources
/usr/lib/ruby/1.9.1/rubygems.rb:827:in `report_activate_error': RubyGem version error: activesupport(2.3.8 not = 2.3.5) (Gem::LoadError)
gem list 发现activesupport是2.3.8
于是卸之安装2.3.5
yrf@yrf-laptop:~$ gem uninstall activesupport
yrf@yrf-laptop:~$ gem install activesupport -v=2.3.5
更多精彩
赞助商链接