Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VITASDK not set in macOS Catalina Error #53

Open
Pikachuxxxx opened this issue Jan 29, 2020 · 14 comments
Open

VITASDK not set in macOS Catalina Error #53

Pikachuxxxx opened this issue Jan 29, 2020 · 14 comments

Comments

@Pikachuxxxx
Copy link

Pikachuxxxx commented Jan 29, 2020

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

@Pikachuxxxx Pikachuxxxx changed the title VITASDK not set in MacOS Error VITASDK not set in macOS Catalina Error Jan 29, 2020
@frytkisasmaczne
Copy link

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
Copy link
Contributor

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

@Pikachuxxxx
Copy link
Author

Pikachuxxxx commented Jan 29, 2020

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
Copy link

default commented Mar 29, 2020

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
Copy link

default commented Mar 30, 2020

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

@frytkisasmaczne
Copy link

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

@Pikachuxxxx
Copy link
Author

Pikachuxxxx commented Mar 30, 2020

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
Copy link

default commented Mar 31, 2020

@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
Copy link

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
Copy link
Author

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

@default
Copy link

default commented Apr 2, 2020

@frytkisasmaczne Ok, 2 things:

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

Compilation and building

  1. Neither ./install-all.sh nor vitasdk-update succeeded:

Screenshot 2020-04-02 at 17 05 51

So something's definitely wrong

@loszer
Copy link

loszer commented Jun 20, 2020

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
Copy link

  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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants