Permalink
Browse files

add check for Ubuntu 10.04 LTS

- you need to `apt-get install build-essential curl` before starting
  install.
- still need to install nodejs & node-gyp manually.
- needed java for compress *.js files.

At this point, `h-get` supports only checks without detailed explanation
for ommited packages.

If you want to install right now on Ubuntu system, just try:

> ./h-get init

This command guides you to the end of installation.

Don't forget to put your certification on your $HOME/.ssh/ to login
github.com.
  • Loading branch information...
1 parent 76ce13b commit bb861ad5af2630e620f7eaf70cb8357daeeb25dc @andrwj andrwj committed Nov 28, 2012
Showing with 14 additions and 1 deletion.
  1. +14 −1 h-get
View
@@ -185,11 +185,16 @@ __assert ()
__guide_install_nodejs ()
{
__log "[ NodeJS ] missing"
+ __log "Ubuntu: sudo apt-get install nodejs nodejs-dev"
+ __log "Mac OS: brew install nodejs"
+ echo
}
__guide_install_nodegyp ()
{
__log "[ node-gyp ] missing"
+ __log "Ubuntu \& Mac OS: npm install node-gyp -g"
+ echo
}
__guide_install_python ()
@@ -205,13 +210,20 @@ __guide_install_java ()
__guide_install_git ()
{
__log "[ git ] missing"
+ __log "Ubuntu: sudo apt-get install git-core"
+ __log "Mac OS: brew install git"
+ echo
}
__guide_install_gpp ()
{
- __log "[ g++ ] missing"
+ __log "[ g++ or gcc ] missing"
+ __log "Ubuntu: sudo apt-get install build-essentail"
+ __log "Mac OS: Install XCode and commandline tools"
+ echo
}
+
__chk_pre_requisites ()
{
__assert node -v || __guide_install_nodejs
@@ -220,6 +232,7 @@ __chk_pre_requisites ()
__assert java -version || __guide_install_java
__assert git --version || __guide_install_git
__assert g++ -v || __guide_install_gpp
+ __assert gcc -v || __guide_install_gpp
if [ $__pre_requisite_not_found -gt 0 ]; then
echo

0 comments on commit bb861ad

Please sign in to comment.