简体   繁体   中英

Global environment variables in Eclipse and Yosemite

I'm trying to get a setup working for developing mpi programs using Eclipse on OSX Yosemite. My mpi installation was done via homebrew and I have added /usr/local/bin to my path via .bash_profile.

My problem is, that when I open Eclipse mpicc is not in my path. I could manually add it to the project configurations or add a PATH environment variable to the project and that would compile, but I can't use Eclipse PTP tools because it still can't find the mpi binaries.

So my question is, how do I configure Eclipse to include /usr/local/bin into it's path?

Any help would be greatly appreciated.

亚历山大·奥玛拉(Alexander O'Mara)提供的答案是正确的,因此对于任何关注此问题的人,请参考设置了环境变量的启动mac eclipse

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM