as: no assemblers installed (2g iPod)

Discussion in 'iOS Development' started by GhostSniper, Apr 21, 2009.

  1. GhostSniper

    GhostSniper New Member

    Joined:
    Apr 18, 2009
    Messages:
    2
    Likes Received:
    0
    Device:
    2G iPod touch
    Im trying to compile some simple C code but i get an error saying
    "as: no assemblers installed". I have installed the Toolchain and the Gnu C Compiler from cydia. Anyone know how to fix this problem?
  2. Hero2

    Hero2 New Member

    Joined:
    Apr 23, 2009
    Messages:
    5
    Likes Received:
    0
    I ran into this earlier today and here is my solution.

    1) download/install MobileTerminal and Toolchain(obvious)
    2) Start MobileTerminal
    3) run 'su' enter password (alpine)
    4) run 'mkdir /private/var/stash/libexec/gcc/darwin/arm'
    5) run 'cd /private/var/stash/libexec/gcc/darwin/arm'
    6) run (here is where the magic begins) 'cp /usr/libexec/gcc/darwin/arm/as as'
    7) run 'chmod -R a+x as'
    8) run 'exit'
    9) run 'ls' (as should now be green with an asterik if not it is probably fine)

    this worked for me as it should for you. NOTE:You must always be signed in as root in order to delete/remove the files produced from compiling using this method(*.o,*.app,application,etc...).

    That should work. Feel free to post if you have any problems as I may be able to help. Happy coding!

    Please Register or Log in to view images



    EDIT: almost forgot. The reason for this is because Cydia (or APT) installs the Assembler tools into the wrong directories. It installs the as tools into /usr/libexec/gcc/darwin/arm when it should install it into /private/var/stash/libexec/gcc/darwin/arm
  3. DWhitex17

    DWhitex17 New Member

    Joined:
    May 3, 2009
    Messages:
    2
    Likes Received:
    0
    Device:
    2G iPod touch
    i can't get past step four.. i am getting
    cannot create directory '/private/var/stash/libexec/gcc/darwin/arm' : no such file or directory

Share This Page