Friday, May 24, 2013

Install terminal and gcc on Android

Always read instructions carefully.

- #1 note on a survival manual, Yann Martel Life of Pi

On Android, everything is an app.

- mzt

Shell for Android is an app too. Install Terminal IDE (210MB) from the app store. Yes, this is not built-in, not default, also with limited use: vi, javac, gcc, git, ssh etc. It runs without root permission. After the installation, switch on its ugly but complete keyboard to get the full function use.

Install gcc

Under Terminal IDE, gcc is paralleled by terminal-gcc, which is not installed by default (due to the volume of gcc). If you go to help file from its main menu, you will see a series of tutorials explaining how to start making the best use of it. Here I just quote the part on gcc. On any of its terminal window (there are 4),

# cat `which install_gcc`
# install_gcc

After installation, use the following command to compile,

# terminal-gcc foo.c -o foo.o

12 comments:

  1. You seem to have skipped the part where you either tell us how to install GCC or point to the hard-to-find file that explains this. (And if you left that out on purpose, I don't know what the whole point of your post is.)

    ReplyDelete
  2. Sophia - you write "install_gcc" in the bash / terminal window that you launch through TerminalIDE.

    ReplyDelete
  3. showing something like
    terminal++@192.169.1.33:~exit
    hence couldn't install gcc

    ReplyDelete
  4. i can`t install gcc pls give me sugestion at rawatrahul227@gmail.com

    ReplyDelete
  5. See Termux (http://termux.com) for a modern app (Android 5.0+ required) where gcc can be installed with 'apt install gcc'.

    ReplyDelete
    Replies
    1. I've tried and it's great! Thank you! :)

      Delete
    2. I've tried and it's great! Thank you! :)

      Delete
  6. See Termux (http://termux.com) for a modern app (Android 5.0+ required) where gcc can be installed with 'apt install gcc'.

    ReplyDelete
  7. I've tried and it's great! Thank you!

    ReplyDelete
  8. can install and run java on termux?
    and how
    thx

    ReplyDelete
  9. hello world
    for the programmers
    on termux open app
    write
    pkg install ecj dx
    use dalvikvm to run yours scripts in java

    ReplyDelete