Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
0

Radiance commands not found on Mac OS (suggestions searched and tried)

asked 2020-01-10 22:42:11 -0600

oatcracker gravatar image

updated 2020-01-12 18:15:48 -0600

1
I installed the latest Radiance 5.2 for Mac OS using the dmg file provided on GitHub, and it is installed at:
/usr/local/radiance

2
I added the following path to the hidden file ~/.bash_profile in my user directory:
export PATH=$PATH:.:/usr/local/radiance/bin
export RAYPATH=.:/usr/local/radiance/lib

export MANPATH=$MANPATH:/usr/local/radiance/man

3
However, I'm still unable to locate Radiance commands in Terminal, even after restarting the computer:
$ where gensky
gensky not found

4
I also tried adding the paths to ~/.profile (I don't have this file, so I duplicated one from the .bash_profile), and it still didn't work...

5
I also tried source ~/.bash_profile. However, it only works for the current shell session, as pointed out in a post listed below.

6
Could it be that the ~/.bash_profile is not loaded automatically every time I log in?
May I ask how to solve this Radiance commands not found issue, if I missed something important here?

7
I read the tried the suggestions in these posts:
https://unmethours.com/question/31026...
https://unmethours.com/question/31041...
https://unmethours.com/question/27561...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-01-12 13:59:38 -0600

Are you using Catalina? Apple switched default shells from bash to zsh with the release of catalina. If you started with a fresh install of catalina (instead of upgrading from a previous mac os) your shell is probably zsh.

You can either change the default to bash as described here: https://www.howtogeek.com/444596/how-...

or you can add everything you put in .bash_profile to .zshrc and continue to use zsh.

edit flag offensive delete link more

Comments

Yes, Andyrew, I later found out that the Radiance paths should be put in ~/.zprofile because, as you pointed out, that the default shell has been changed from bash to zsh in the latest Mac OS Catalina. I have replied my own question previously, but somehow it was not shown here, strangely...

oatcracker gravatar imageoatcracker ( 2020-01-13 23:53:34 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2020-01-10 22:42:11 -0600

Seen: 25 times

Last updated: Jan 12