vitasdk / vdpm

SDK installer and package "manager" for $VITASDK
GNU Lesser General Public License v2.1
222 stars 62 forks source link

VITASDK not set in macOS Catalina Error #53

Open Pikachuxxxx opened 4 years ago

Pikachuxxxx commented 4 years ago

So I tried following the steps on MacOS Catalina 10.15.1(19B88)(Dev-beta). I did add the lines export VITASDK=/usr/local/vitasdk export PATH=$VITASDK/bin:$PATH bashrc setup

at the end of .bashrc as prompted by the terminal pls add vitasdk temp prompt and tried running the the following commands as shown in the screenshots and yet nothing seems to work. It still says I haven't set the path.

terminal commands

frytkisasmaczne commented 4 years ago

either tell zsh to load run exports and stuff from .bashrc or put the exports in .zshrc instead of .bashrc since you're using zsh shell not bash

d3m3vilurr commented 4 years ago

@frytkisasmaczne could be right. it's just shell problem. but we should give the better suggestion in running script.

Pikachuxxxx commented 4 years ago

Thanks for pointing it out and helping me resolve it. As Catalina using the new Zsh as the default shell I think proper instructions to use the .zshrc along with .bashrc update would clear any issues or confusions for new explorers.

default commented 4 years ago

Hi, everyone 👋. I really am not familiar with how to properly work with Terminal and scripts so forgive me if I appear stupid at times.

I'm on macOS Catalina 10.15.3 and, from what I understood, .zshrc is, basically, a file with instructions, run whenever I launch Terminal (a config of sorts). I created such file (since it was not present before) in my "home" (~) directory and put the suggested export lines in there. Just to make sure, I also made it echo so I get a confirmation that instructions from that file were executed.

And, on launch, I get that confirmation, yes, and I also put all two of the export lines inside .bash_profile and .bashrc. Those are the only 2 lines in all 3 files (not counting echo's). However, no matter how many times I tried (restarting Terminal each time), running the bootstrap-vitasdk.sh script always fails with a requirement to put export's into the .bashrc. And, therefore, install-all.sh also fails, stating that "$VITASDK is not set".

What am I doing wrong and how can I bypass this? Thank you in advance :)

default commented 4 years ago

@d3m3vilurr could you, please, help me resolve this issue 🙏

frytkisasmaczne commented 4 years ago

does it say anything when you put echo $VITASDK into terminal?

Pikachuxxxx commented 4 years ago

Can you share some screenshots that'd help us understand the problem better and do check properly if you're in the zsh or bash shell?

default commented 4 years ago

@Pikachuxxxx @frytkisasmaczne Here's the whole process with echo $VITASDK at the end:

Failed installation attempt

My .zshrc, just in case. You can see its echo on the second row in Terminal above.

Screenshot 2020-03-31 at 12 37 57

Not sure if it is at all relevant, but I've upgraded to macOS 10.15.4 now but everything's, pretty much, the same

P.S. @frytkisasmaczne French fires are, indeed, rather tasty ;)

frytkisasmaczne commented 4 years ago

I don't think this is an error, it's just a reminder to set the exports. To be sure that it installed correctly run vitasdk-update or clone https://github.com/vitasdk/samples and run cmake . && make in one of the sample project directories, let's say in cd hello_world.

Pikachuxxxx commented 4 years ago

I think a 'process successful' message would be great.

default commented 4 years ago

@frytkisasmaczne Ok, 2 things:

  1. cmake . && make on "hello_world" worked as intended (I assume)

    Compilation and building
  2. Neither ./install-all.sh nor vitasdk-update succeeded:

    Screenshot 2020-04-02 at 17 05 51

So something's definitely wrong

loszer commented 4 years ago

1.change the /usr/local/vitasdk dir's right to 775 2.change the dir's owner to current user 3.mkdir a "arm-vita-eabi" under /usr/local/vitasdk Next, "./install-all.sh" work for me

Engylizium commented 1 year ago
  1. chmod 775 /usr/local/vitasdk
  2. chown "USERNAME" /usr/local/vitasdk
  3. cd /usr/local/vitasdk mkdir arm-vita-eabi
  4. ./install-all.sh NAH $VITASDK is not set
keiichiro1993 commented 1 year ago

@Engylizium I had the exact same issue with all the workarounds so edited install-all.sh as follows and it worked fine image