make: armips: Command not found

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by 3nvys, Jan 20, 2017.

  1. 3nvys
    OP

    3nvys Newbie

    Newcomer
    4
    0
    Jan 20, 2017
    United States
    I'm running Ubuntu 14.04 and I'm trying to patch my code.bin for SaltySD but whenever I use make it gives me that error.

    In my folder I have
    -armips.exe
    -code.bin
    Makefile
    -patch.s
    -PATCHING.md
    -uncode.tbl
    Thanks.
     
  2. gnmmarechal

    gnmmarechal Kirigiri > Naoto

    Member
    GBAtemp Patron
    gnmmarechal is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    4,667
    2,837
    Jul 13, 2014
    Portugal
    https://gs2012.xyz
    Obviously, if you're running Linux, you won't use the Windows binary of armips.

    — Posts automatically merged - Please don't double post! —

    Here's a Linux x86_64 build of armips:
    https://github.com/gnmmarechal/armipshost/raw/master/armips

    You can just go and copy the armips binary to your /bin directory, or whatever.
     
    Last edited by gnmmarechal, Jan 20, 2017
  3. DeoNaught

    DeoNaught ¯\_(ツ)_/¯

    Member
    1,512
    1,448
    Aug 22, 2016
    United States
    Over there ;)
    I read it as "Armpits":rofl2:
     
  4. 3nvys
    OP

    3nvys Newbie

    Newcomer
    4
    0
    Jan 20, 2017
    United States
    I tried it and got the same error. Also I'm dual booted with Windows 7 and had the same problem. Thanks though.
     
  5. gnmmarechal

    gnmmarechal Kirigiri > Naoto

    Member
    GBAtemp Patron
    gnmmarechal is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    4,667
    2,837
    Jul 13, 2014
    Portugal
    https://gs2012.xyz
    You didn't do it. Did you just copy armips to the directory? That's not how Linux works.

    — Posts automatically merged - Please don't double post! —

    Open a terminal in whatever directory you have armips and do:

    sudo cp armips /bin/armips

    Or something like that.
     
  6. 3nvys
    OP

    3nvys Newbie

    Newcomer
    4
    0
    Jan 20, 2017
    United States
    I did put it in the right directory, but now whenever I run it (even with sudo) it tells me permission denied.

    make: execvp: armips: Permission Denied
     
    Last edited by 3nvys, Jan 20, 2017
  7. gnmmarechal

    gnmmarechal Kirigiri > Naoto

    Member
    GBAtemp Patron
    gnmmarechal is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    4,667
    2,837
    Jul 13, 2014
    Portugal
    https://gs2012.xyz
    Do sudo chmod +x /bin/armips .
     
  8. 3nvys
    OP

    3nvys Newbie

    Newcomer
    4
    0
    Jan 20, 2017
    United States
    That worked! Thanks for the help.
     
  9. gnmmarechal

    gnmmarechal Kirigiri > Naoto

    Member
    GBAtemp Patron
    gnmmarechal is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    4,667
    2,837
    Jul 13, 2014
    Portugal
    https://gs2012.xyz
    So you know what you're doing next time, essentially:

    - You generally don't want to run *.exe binaries on Linux. It *can* be done through Wine, but is generally unwanted.
    - To set a file as executable, you have to set its permissions (ex. chmod +x somefile)
    - To run it, you need to either add it to your PATH (which allows you to run from the terminal directly, like when you copy it to /bin) or run it from the directory with ./somefile