Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install TBB (Thread Building Blocks) from Intel onto my Mac. However, no matter where I look, I can't find the .profile file that I require to modify to use TBB.

Any advice or hints on where I could find it?

If it's hidden, how can I unhide it? (I'm new to OS X)

I have read some articles that say I could make my own .profile file but I don't think it's what I need to install the TBB.

share|improve this question
up vote 7 down vote accepted

There is no ~/.profile by default.

When you start your, it loads a shell – in your case Bash. Shells can have configuration files, and .profile is one of these. They are read when the shell starts up, in a specific order. You can read man bash, section "Invocation", for more details.*

Anyway, you can simply create the file if it doesn't exist and open it in a text editor.

touch ~/.profile
open -e !$

Save it, and the next time you start a new instance of Bash (e.g. by opening a new Terminal window), your ~/.profile will be read and all commands therein will be executed.

* Note that once you create a file called ~/.bash_profile, your ~/.profile will not be read anymore.

share|improve this answer
I tried this but got a syntax error message, with a pointer at the "~", any suggestions? – Stuart Jeckel Nov 17 '15 at 20:26
@StuartJeckel What error exactly? There shouldn't be a problem with this.. are you sure you've copy-pasted exactly as shown? – slhck Nov 18 '15 at 10:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .