0

I'm working on installing the flow-project and I'm getting a message to add some things into my bashrc. Not sure if it matters but I'm on macOS.

This is the message it reads: https://i.stack.imgur.com/EbP3j.png

~/flow
Add the following to your ~/.bashrc:

export SUMO_HOME="$HOME/sumo_binaries/bin"
export PATH="$SUMO_HOME:$PATH"

I've looked in other threads too, I've added it manually as well as the "echo >> ~/.bashrc" method. It's definitely in the txt file. Thanks!

Edit: Question wasn't made clear, but I have tried putting the export ... into my .bashrc file but the thing I'm trying to install doesn't recognize that I've done that.

  • What's your question? – Cyrus Aug 11 '22 at 16:38
  • Oh sorry, I've tried putting the following commands into my .bashrc file but I don't think my installation recognizes it. – vanillamochi Aug 11 '22 at 16:58
  • 3
    How did you test? Did you start a new window? Are you sure your terminal is _actually using bash_ as it shell? (That latter is important: MacOS uses zsh by default now; the corresponding file is `.zshrc`). – Charles Duffy Aug 11 '22 at 17:20
  • Don't add environment variables to `.bashrc` (`.zshrc`) anyway; add them to `.bash_profile` (`.zprofile`). – chepner Aug 11 '22 at 18:18
  • Okay thanks for the infos! I've put the following commands into my .zprofile, but to my demise it still doesn't recognize it. I get the same prompt. – vanillamochi Aug 11 '22 at 19:08

1 Answers1

0

Verify what's exported with:

export -p

as per help

export: export [-nf] [name[=value] ...] or export -p
    NAMEs are marked for automatic export to the environment of
    subsequently executed commands.  If the -f option is given,
    the NAMEs refer to functions.  If no NAMEs are given, or if `-p'
    is given, a list of all names that are exported in this shell is
    printed.  An argument of `-n' says to remove the export property
    from subsequent NAMEs.  An argument of `--' disables further option
    processing.
Diego Torres Milano
  • 65,697
  • 9
  • 111
  • 134