Setup Android Development Environment on MBA 2011 Mid lion
1. JDK
2. Eclipse
3. Android SDK
4. ADT(Android Development Tools)
5. AVD(Android Virtual Device)
Eclipse
Go to Eclipse Downloads | The Eclipse Foundation and download "Eclipse IDE for Java Developers Mac OS X 64 Bit". You can get "eclipse-java-indigo-SR2-macosx-cocoa-x86_64.tar.gz".
Doble click and extract it. Move "eclipse" folder under /Applications/.
$ mv ./Downloads/eclipse /Applications/
Android SDK, ADT
Go to Download Android Studio and SDK tools. Download Mac OS X (intel) android-sdk_r16-macosx.zip.
$ mv ./Downloads/android-sdk-macosx /Applications/
Open Eclipse. Help -> Install new software
Input below into Work with.
https://dl-ssl.google.com/android/eclipse/
AVD
Window->AVD Manager
My MBA 2011 Mid 11inch came back
What I have to is
1. Xcode with X11
2. JDK
3. Homebrew insted of MacPorts
4. git
5. RVM
6. Ruby
7. RubyGems
8. Rails
9. SQlite3
$ ruby -v ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0] $ gem -v 1.3.6 $ rails -v not installed
Homebrew
$ ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" $ brew help
RVM
$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) $ echo ' -s "$HOME/.rvm/scripts/rvm" && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile $ source ~/.bash_profile
Ruby
$ rvm install 1.9.2 The provided compiler '/usr/bin/gcc' is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`. $ brew install https://raw.github.com/adamv/homebrew-alt/master/duplicates/apple-gcc42.rb $ gcc-4.2 -v $ rvm install 1.9.2 --with-gcc=gcc-4.2 $ rvm list
Add below to ~/.bash_profile
export CC=gcc-4.2
$ source ~/.bach_profile $ rvm install 1.9.3-p0
$ ruby -v ruby 1.8.7 $ rvm use 1.9.2 $ ruby -v ruby 1.9.2p290
Update RubyGems
$ sudo gem update --system $ sudo gem update rake
Rails
Currently, No Rails.
$ gem list --local rails $ rails --version $ gem install rails --version 3.1.0
SQLite3
$ sqlite3 -version 3.7.7
Do rails
$ mkdir ~/work $ cd ~/work $ rails new demo $ cd demo $ rake about About your application's environment Ruby version 1.9.2 (x86_64-darwin11.3.0) RubyGems version 1.8.17 Rack version 1.3 Rails version 3.1.0 JavaScript Runtime JavaScriptCore Active Record version 3.1.0 Action Pack version 3.1.0 Active Resource version 3.1.0 Action Mailer version 3.1.0 Active Support version 3.1.0 Middleware ActionDispatch::Static, Rack::Lock, #<:cache::strategy::localcache::middleware:0x007fa013021718>, Rack::Runtime, Rack::MethodOverride, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::RemoteIp, Rack::Sendfile, ActionDispatch::Reloader, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, ActionDispatch::Head, Rack::ConditionalGet, Rack::ETag, ActionDispatch::BestStandardsSupport Application root /Users/xxx/work/demo Environment development Database adapter sqlite3 Database schema version 0 $ rails server => Booting WEBrick
"bundle install" is done automatically.
Go to http://localhost:3000
Rails framework itself worked. Actually no application on "demo".
$ Create simple application
$ rails generate scaffold Product title:string description:text image_url:string price:decimal $ rake db:migrate $ rails server
Setup Git
Just in case, checked latest version of Linux and CentOS.
# cat /proc/version Linux version 2.6.18-194.26.1.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Tue Nov 9 12:54:20 EST 2010 # cat /etc/redhat-release CentOS release 5.7 (Final)
1. Check content on the repository.
# rpm -qpl http://repo.webtatic.com/yum/centos/5/latest.rpm
2. Install the repository.
# rpm -ivh http://repo.webtatic.com/yum/centos/5/latest.rpm
3. Check if the installation is success.
# ls /etc/yum.repos.d webtatic.repo # vi /etc/yum.repos.d/webtatic.repo
4. Install Git from Webtatic repo
# yum install --enablerepo=webtatic git # git --version git version 1.7.7.3
5. Configure little bit
# git config --global user.name "yourname" # git config --global user.email "[email protected]" # git config --global color.diff auto # git config --global color.status auto # git config --global color.branch auto # git config -l
http://d.hatena.ne.jp/inouetakuya/20110603/1307098190
http://akibe.com/centos-setup-12-git/
Complete!
Create dev environment on Snow leopard
My MBA 11inch is now under repair. So I have to setup my iMac instead.
Install Xcode
Insert Snow leopard install DVD into the Mac and click "Option install" -> "Xcode". Then installer starts.
Install Mac Ports
Go to The MacPorts Project -- Download & Installation. Download MacPorts-2.0.3-10.6-SnowLeopard.dmg and doble click it.
Write below on the ~/.bach.
export PATH=/opt/local/bin:/opt/local/sbin/:$PATH export MANPATH=/opt/local/man:$MANPATH
$ source ~/.bashrc $ echo $PATH $ man port $ port version Version: 2.0.3
Update Macports itself.
$ sudo port -d selfupdate $ sudo port -d sync
Install Git
Go to Google Code. Google Code Archive - Long-term storage for Google Code Project Hosting.. Download git-1.7.9.1-intel-universal-snow-leopard.dmg. After install it, need to reboot terminal.
$ which git $ git --version git version 1.7.9.1 $ man git
Rails again!
Recently I have been interesting in development of some application again using like Android, iOS and Rails. I bought a book whose title is "The Pragmatic Programmers Agile Web Development with Rails 4th Edition". I have a 1st Edition of this book. It was actually 5 years ago. oops. It has been 5 years since then. At that time, I wrote it would seems that Rails reach chasm in 2008. Yes. It has reached for sure.
Anyway, I decided to release some application this year!
Railsã«ããã¢ã¸ã£ã¤ã«Webã¢ããªã±ã¼ã·ã§ã³éçº ç¬¬4ç
- ä½è : Sam Ruby,Dave Thomas,David Heinemeier Hansson,åç°ä¿®å¾
- åºç社/ã¡ã¼ã«ã¼: ãªã¼ã 社
- çºå£²æ¥: 2011/12/01
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
- è³¼å ¥: 12人 ã¯ãªãã¯: 206å
- ãã®ååãå«ãããã° (40件) ãè¦ã
MacBook Air 11
MacBook Air 11ã¤ã³ã欲ããï¼
13ã¤ã³ããã£ã¦ããã©ã11ã¤ã³ãã»ããã
WWDC 2008 Keynote
iPhone SDK ã®ã¹ã´ãï¼iPhoneã¢ããªãéçºãããã¨ã®å¯è½æ§ï¼ãã㦠Push Notification Service ã£ã¦ãªããªã®ãï¼ã¡ãã£ã¨é·ã(1æé43å)ãã©ï¼ãããªãã¿ãã¨çµæ§ãããï¼iPhoneã®è¡¨é¢çãªæ©è½ã¨ãå¤æ®µã¨ããããªãã¦ï¼ãã£ã¨å¤§äºãªãã¨ããï¼
ã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ãªãï¼OS X ãã¡ããªã¼ã«ã®ã£ãã£ã¦ã¿ãã®ãé¢ç½ãããï¼