Homebrew Question OS X Please set DEVKITPRO in your environment

  • Thread starter Thread starter DeuX
  • Start date Start date
  • Views Views 13,989
  • Replies Replies 17

DeuX

Well-Known Member
Member
Joined
Jun 14, 2018
Messages
175
Reaction score
195
Trophies
0
Age
42
XP
626
Country
Switzerland
I admit I'm very raw when it comes to compiling. I have managed to clone a few GitHub projects into my projects folder on OS X, but when I run "make" I get the following error:

Makefile:6: *** "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>/devkitpro".

Anyone can shed some light on what to do next or what I'm doing wrong? Thanks in advance :)
 
I admit I'm very raw when it comes to compiling. I have managed to clone a few GitHub projects into my projects folder on OS X, but when I run "make" I get the following error:

Makefile:6: *** "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>/devkitpro".

Anyone can shed some light on what to do next or what I'm doing wrong? Thanks in advance :)
You need devkitPro.
 
It literally says what to do in the error message. Run the command 'export DEVKITPRO=[path]' where [path] is the devkit pro install directory
 
It literally says what to do in the error message. Run the command 'export DEVKITPRO=[path]' where [path] is the devkit pro install directory

Well... that was stupid of me... thank you both
 
You need to add the correct path(s) to your bash profile. Follow this guide here: https://natelandau.com/my-mac-osx-bash_profile/ make sure you have your bash profile configured similar to my own as seen in the attached picture.

Screen Shot 2018-07-24 at 9.07.14 PM.png
 
Last edited by xTwized,
  • Like
Reactions: DeuX
You need to add the correct path(s) to your bash profile. Follow this guide here: https://natelandau.com/my-mac-osx-bash_profile/ make sure you have your bash profile configured similar to my own as seen in the attached picture.

View attachment 137066

This is not working for me, I'm still getting the "
It literally says what to do in the error message. Run the command 'export DEVKITPRO=[path]' where [path] is the devkit pro install directory


Any other useful idea? I also tried the .bash_profile thing and nothing...

upload_2021-1-18_11-13-16.png


note that changing $DEVKITPRO with /opt/devkitpro or ${DEVKITPRO} doesn't make any difference.

Also tried to add the exports in ~/.zshrc, ~/.bashrc,~/.bash_profile as well as template folder/those files.

Also, $DEVKITARM seems to work...
 
Last edited by Manurocker95,
View attachment 242324

p.S: Yes, I rebooted the terminal, the mac after saving changes for those files and nothing...
Hello ! Did you figured out how to resolve you problem ? I think I face the same issue,

I installed devkit with the devkitpro-pacman-installer.pkg file (which I found at the devkitPro/pacman Github repository), installed the wii-dev package (I plan to work on Brainslug), restarted my computer but whatever I do, when I try to make the Brainslug folder I get this error:
1728469636618.png


Which is kind of strange because when I print the devkitPPC env variable, my shell tells me that it is set.
1728469712002.png


I you want to know, I'm on macOS Sonoma and my shell is ZSH.

Thank you :)
 
Hey guys, I figured out what was happening and I share it in case somebody faces the same situation as me:

Simply, I was running make with sudo because of some restrictions but the env variables with sudo aren't the same as the regular (I didn't know this twist before, I understood what was happening by running make without sudo by accident).

1728486068079.png


So, to solve this problem I just had to pass the -E (or --preserve-env) param to sudo, which indicate to preserve the user environment variables.
1728486142048.png


Also, even if I had already solved my problem, thanks draftguy123 for your help :)
 
  • Like
Reactions: emcintosh
I admit I'm very raw when it comes to compiling. I have managed to clone a few GitHub projects into my projects folder on OS X, but when I run "make" I get the following error:

Makefile:6: *** "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>/devkitpro".

Anyone can shed some light on what to do next or what I'm doing wrong? Thanks in advance :)
i made a video a year ago. im a newbie account so cant add links but you can paste them in your browser
youtube[dot]com/watch?v=raMW6wLBUBc
 

Site & Scene News

Popular threads in this forum