Advertisement
akhfa

Install Cordova Centos 7

Sep 29th, 2015
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.04 KB | None | 0 0
  1. #!/bin/sh
  2. wget https://nodejs.org/dist/v4.2.4/node-v4.2.4.tar.gz
  3. tar xzf node-v4.2.4.tar.gz
  4. cd node-v4.2.4
  5. ./configure
  6. make
  7. make doc
  8. sudo make install
  9. wget https://npmjs.org/install.sh
  10. cd
  11. sudo su
  12. sh install.sh
  13. exit
  14. echo 'pathmunge /usr/local/bin' > /etc/profile.d/userlocalbin.sh
  15. chmod +x /etc/profile.d/userlocalbin.sh
  16. yum install glibc.i686, libgcc.i686
  17. npm install -g cordova
  18. wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
  19. tar xf android-sdk_r24.4.1-linux.tgz
  20. cd android-sdk_r24.4.1-linux
  21.  
  22. # manage SDK like here: http://stackoverflow.com/questions/17963508/how-to-install-android-sdk-build-tools-on-the-command-line
  23. mv android-sdk_r24.4.1-linux /opt
  24. echo 'pathmunge /opt/android-sdk-linux/tools/' > /etc/profile.d/android-sdk.sh
  25. chmod +x /etc/profile.d/android-sdk.sh
  26.  
  27. # TROBELSHOOT
  28. # jika path not found
  29. # http://serverfault.com/questions/102932/adding-a-directory-to-path-in-centos
  30.  
  31. # jika build_tools not installed
  32. install pake tutorial di stackoverflow
  33.  
  34. # jika libz.so.1 tidak ada
  35. yum install zlib.i686
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement